Add kstat-based Solaris metrics (#1197)

* collector/loadavg_solaris.go: Use libkstat to gather load averages.
* go.mod: Added go-kstat.
* boot_time_solaris.go: Added.
* cpu_solaris.go: Added.
* README.md: Updated entries for Solaris.
* collector/zfs_solaris.go: Added.
* CHANGELOG.md: Added note about kstat-based Solaris metrics.

Signed-off-by: Jonathan Davies <jpds@protonmail.com>
This commit is contained in:
Jon Davies 2019-01-12 12:33:56 +00:00 committed by Ben Kochie
commit e766485286
9 changed files with 583 additions and 14 deletions

2
vendor/modules.txt vendored
View file

@ -50,6 +50,8 @@ github.com/prometheus/procfs/nfs
github.com/prometheus/procfs/sysfs
github.com/prometheus/procfs/xfs
github.com/prometheus/procfs/internal/util
# github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745
github.com/siebenmann/go-kstat
# github.com/sirupsen/logrus v1.1.1
github.com/sirupsen/logrus
# github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a