An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 3.3% on proxy.golang.org
Top 0.8% dependent packages on proxy.golang.org
Top 0.6% dependent repos on proxy.golang.org
Top 7.1% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org

proxy.golang.org : github.com/illumos/go-kstat

Package kstat provides a Go interface to the Solaris/OmniOS kstat(s) system for user-level access to a lot of kernel statistics. For more documentation on kstats, see kstat(1) and kstat(3kstat). The package can retrieve what are called 'named' kstat statistics, IO statistics, and the most common additional types of 'raw' statistics, which covers almost all kstats you will normally find in the kernel. You can see the names and types of other kstats, but not currently retrieve data for them. Named statistics are the most common type for general information; IO statistics are exported by disks and some other things. Supported additional raw kstats are unix:0:sysinfo, unix:0:vminfo, unix:0:var, and mnt:*:mntinfo. General usage for named statistics: call Open() to obtain a Token, then call GetNamed() on it to obtain Named(s) for specific statistics. Note that this always gives you the very latest value for the statistic. If you want a number of statistics from the same module:inst:name triplet (eg several network counters from the same network interface) and you want them to all have been gathered at the same time, you need to call .Lookup() to obtain a KStat and then repeatedly call its .GetNamed() (this is also slightly more efficient). The short version: a kstat is a collection of some related statistics, eg various network counters for a particular network interface. A Token is a handle for a collection of kstats. You go collection (Token) -> kstat (KStat) -> specific statistic (Named) in order to retrieve the value of a specific statistic. (IO stats are retrieved all at once with GetIO(), because they come to us from the kernel as one single struct so that's what you get.) This is a cgo-based package. Cross compilation is up to you. Goroutine safety is in no way guaranteed because the underlying C kstat library is probably not thread or goroutine safe (and there are some all-Go concurrency races involving .Close()). This package may leak memory, especially since the Solaris kstat manpage is not clear on the requirements here. However I believe it's reasonably memory safe. It's possible to totally corrupt memory with use-after-free errors if you do operations on kstats after calling Token.Close(), although we try to avoid that. NOTE: this package is quite young. The API may well change as I (and other people) gain more experience with it. In general this is not going to be as lean and mean as calling C directly, partly because of intrinsic CGo overheads and partly because we do more memory allocation and deallocation than a C program would (partly because we prioritize not leaking memory). We support named kstats and IO kstats (KSTAT_TYPE_NAMED and KSTAT_TYPE_IO / kstat_io_t respectively). kstat(1) also knows about a number of magic specific 'raw' stats (which are generally custom C structs); of these we support unix:0:sysinfo, unix:0:vminfo, unix:0:var, and mnt:*:mntinfo for NFS filesystem mounts. In theory kstat supports general timer and interrupt stats. In practice there is no use of KSTAT_TYPE_TIMER in the current Illumos kernel source and very little use of KSTAT_TYPE_INTR (mostly by very old hardware drivers, although the vioif driver uses it too). Since I can't test KSTAT_TYPE_INTR stats, we don't currently support it. There are also a few additional KSTAT_TYPE_RAW raw stats that we don't support, mostly because they seem to be effectively obsolete. These specific raw stats can be found listed in the Illumos source code in cmd/stat/kstat/kstat.h in the ks_raw_lookup array. See cmd/stat/kstat/kstat.c for how they're interpreted. If you need access to one of these kstats, the KStat.CopyTo() and KStat.Raw() methods give you an escape hatch to roll your own. You'll probably need to use cgo to generate an appropriate Go struct that matches the C struct you need. My notes on this process may be helpful: https://utcc.utoronto.ca/~cks/space/blog/programming/GoCGoCompatibleStructs Author: Chris Siebenmann https://github.com/siebenmann/go-kstat Copyright: standard Go copyright. (If you're reading this documentation on a non-Solaris platform, you're probably not seeing the detailed API documentation for constants, types, and so on because of tooling limitations in godoc et al.)

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/illumos/go-kstat
Keywords: golang , illumos , kstat
License: BSD-3-Clause
Latest release: about 4 years ago
First release: about 4 years ago
Namespace: github.com/illumos
Dependent packages: 34
Dependent repositories: 87
Stars: 21 on GitHub
Forks: 8 on GitHub
Docker dependents: 1
Docker downloads: 62,417,970
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago

Top 9.0% on proxy.golang.org
github.com/blockopsnetwork/telescope v0.2.33
Node Monitoring Platform for blockchain nodes
27 versions - Latest release: about 1 year ago - 6 stars on GitHub
Top 6.7% on proxy.golang.org
github.com/pstibrany/node_exporter v1.8.1
Exporter for machine metrics
39 versions - Latest release: about 1 year ago - 0 stars on GitHub
Top 9.2% on proxy.golang.org
github.phpd.cn/prometheus/node_exporter v1.8.1
39 versions - Latest release: about 1 year ago
Top 9.0% on proxy.golang.org
git.wxl.best/prometheus/node_exporter v1.8.1
39 versions - Latest release: about 1 year ago
Top 9.1% on proxy.golang.org
github.xiaoq7.com/prometheus/node_exporter v1.8.1
39 versions - Latest release: about 1 year ago
Top 8.2% on proxy.golang.org
k0s.io/pkg/exporter v0.1.14
Kubernot is not Kubernetes
12 versions - Latest release: over 1 year ago - 10 dependent packages - 2 dependent repositories - 5 stars on GitHub
Top 6.1% on proxy.golang.org
source.monogon.dev v0.0.0-20240123171041-961a7cc7f479
The Monogon Monorepo. May contain traces of peanuts and a ✨pure Go Linux userland✨
115 versions - Latest release: over 1 year ago - 61 stars on GitHub
Top 9.2% on proxy.golang.org
github.skymusic.top/prometheus/node_exporter v1.7.0
37 versions - Latest release: over 1 year ago
Top 9.2% on proxy.golang.org
github.imxd.top/prometheus/node_exporter v1.7.0
37 versions - Latest release: over 1 year ago
Top 9.0% on proxy.golang.org
github.com/dnwe/node_exporter v1.7.0
Exporter for machine metrics
37 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/fsyyft-fork/node_exporter v1.6.1
Exporter for machine metrics
36 versions - Latest release: almost 2 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/mdlayher/homelab/gokrazy v0.0.0-20230619132508-14968b174436
Configuration management for Matt Layher's machines. MIT Licensed.
7 versions - Latest release: about 2 years ago - 78 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/kamelnetworks/sonic_exporter v0.3.0
Prometheus exporter for the SONiC NOS
18 versions - Latest release: about 2 years ago - 3 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/edgecloudx/node-exporter v1.5.0
34 versions - Latest release: over 2 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/npapoutsis/node_exporter v1.5.0
34 versions - Latest release: over 2 years ago - 0 stars on GitHub
Top 9.7% on proxy.golang.org
github.com/zl21st/node_exporter v1.5.0
37 versions - Latest release: over 2 years ago
Top 7.4% on proxy.golang.org
arhat.dev/arhat v0.0.0-20220915063131-b463ae7ab7f5
Cloud native successor to ssh
1 version - Latest release: almost 3 years ago - 6 stars on
Top 9.0% on proxy.golang.org
github.com/cuijianguo/node_exporter v1.3.2
Exporter for machine metrics
31 versions - Latest release: about 3 years ago - 0 stars on GitHub
Top 7.8% on proxy.golang.org
github.com/snltd/illumos-telegraf-plugins v0.5.0
A collection of Telegraf plugins for Illumos
8 versions - Latest release: about 3 years ago - 2 stars on GitHub
Top 2.6% on proxy.golang.org
github.com/grafana/agent v1.3.191
Vendor-neutral programmable observability pipelines.
154 versions - Latest release: about 3 years ago - 2 dependent packages - 1 dependent repositories - 1,064 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/ducesoft/node_exporter v1.3.7
Exporter for machine metrics
37 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/gitlabcty/node_exporter_public v1.3.1
Exporter for machine metrics
30 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/qijianbo010/node_exporter v1.3.1
Exporter for machine metrics
30 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/septblast/node_exporter v1.3.1
Exporter for machine metrics
31 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/mbialon/node_exporter v1.3.1
Exporter for machine metrics
30 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 6.1% on proxy.golang.org
github.com/percona/node_exporter v1.3.1
Exporter for machine metrics
31 versions - Latest release: over 3 years ago - 14 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/shawnxiaos/nodeexporter v1.3.1
30 versions - Latest release: over 3 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com.cnpmjs.org/prometheus/node_exporter.git v1.3.1
30 versions - Latest release: over 3 years ago
Top 8.2% on proxy.golang.org
github.com/rlankfo/node_exporter v1.3.0
Exporter for machine metrics
29 versions - Latest release: over 3 years ago - 1 stars on GitHub
Past Dependents
Include Past Dependents

Check this option to include packages that no longer depend on this package in their latest version but previously did.