Commit graph

816 commits

Author SHA1 Message Date
Joe Handzik e213ccbc57 ZFS Collector: Refactor to use maps/slices and fewer globals
Removed all global types that were unnecessary, and refactored to use constructor-created values and inline values instead of globals.

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-27 14:02:28 -06:00
Johannes 'fish' Ziemke 0a7f124fe8 Merge pull request #434 from prometheus/bjk/mountstats_mountpoint
Handle multiple NFS device mounts
2017-01-26 20:28:16 +01:00
Ben Kochie ae34006f68 Merge pull request #436 from moorereason/readme1
Add missing collectors to README
2017-01-26 03:30:17 -05:00
Cameron Moore f4d24e5044 Add missing collectors to README 2017-01-25 21:06:10 -06:00
Ben Kochie 5a6db5c8d2 Handle multiple NFS device mounts
It's possible to mount an NFS share in multiple locations.
* Duplicates contain the same metric values, so they can be ignored.
* Update fixture.
2017-01-24 13:44:08 +01:00
Joe Handzik 1dde3ec31b README.md: Remove note about ZFS being limited to ARC
Because it's not true after this PR goes up.

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-23 16:41:15 -06:00
Joe Handzik 94fb93a9f3 ZFS Collector: Add dmu_tx functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-23 16:41:15 -06:00
Joe Handzik 07c7ae733a ZFS Collector: Add fm functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-23 16:31:22 -06:00
Joe Handzik 05048c067d ZFS Collector: Add xuio_stats functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-23 16:30:37 -06:00
Joe Handzik 3c9e779989 ZFS Collector: Add vdev_cache_stats functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-23 16:29:50 -06:00
Joe Handzik a02ca9502c ZFS Collector: Add zil functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-23 16:29:00 -06:00
Joe Handzik a3125ab4d9 ZFS Collector: Add zfetchstats functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-23 16:28:11 -06:00
Brian Brazil 8d4f36aa42 Point to WMI exporter (#431)
There's a slow trickle of people trying to use the node exporter on windows, so point them in the right direction.
2017-01-23 19:57:08 +00:00
Ben Kochie acb495ccab Merge pull request #425 from mdlayher/wifi-update
Update vendored wifi, handle stations with missing info
2017-01-20 08:43:44 -05:00
Ben Kochie 2a0c80cbe2 Fix example.rules typos.
Thanks for spotting those @grobie.
2017-01-17 21:52:59 +01:00
Tobias Schmidt 0429a4ffbe Merge pull request #427 from mdlayher/hwmon-silent-fail
Allow graceful failure in hwmon collector
2017-01-17 11:45:59 -05:00
Matt Layher dfd661a633
Allow graceful failure in hwmon collector 2017-01-17 11:24:28 -05:00
Matt Layher ca3f07feef
Update vendored wifi, handle stations with missing info 2017-01-17 00:54:18 -05:00
Ben Kochie 92537020a3 Fix runit collector flag typo. 2017-01-16 23:41:33 +01:00
Ben Kochie adb8904784 Merge pull request #422 from prometheus/superq/example_rules
Add an example rules file
2017-01-16 12:44:03 -05:00
Ben Kochie 5a07f4173d Merge pull request #423 from prometheus/superq/v0.14.0-rc.1
Release v0.14.0-rc.1.
2017-01-16 10:55:48 -05:00
Ben Kochie 0d4e881389 Release v0.14.0-rc.1.
* Update CHANGELOG
* Update VERSION
2017-01-15 18:31:20 +01:00
Ben Kochie c2cf0b15c0 Merge pull request #420 from prometheus/bjk/go_1.7
Use go 1.7
2017-01-14 20:20:52 -05:00
Ben Kochie d8e31f3ebd Add an example rules file
Add some useful examples for CPU metrics.
2017-01-14 16:24:29 +01:00
Julius Volz 276112c7ef Merge pull request #418 from mdlayher/wifi-graceful-fail
Make wifi collector fail gracefully if metrics not available
2017-01-13 20:31:21 -05:00
Matt Layher d3089f2ce8
Make wifi collector fail gracefully if metrics not available 2017-01-13 13:35:20 -05:00
Ben Kochie d20cb0f910 Use go 1.7
Update travis/circle CI builds to use Go 1.7.
2017-01-12 20:07:22 +01:00
Ben Kochie 9698b97ed1 Merge pull request #419 from mdlayher/zfs-fail-debug
Make ZFS collector fail gracefully when not available
2017-01-12 13:07:23 -05:00
Matt Layher 1e1775e761
Make ZFS collector fail gracefully when not available 2017-01-12 12:54:16 -05:00
Johannes 'fish' Ziemke 2884181cce Merge pull request #415 from mdlayher/mountstats-nfs-additional
Add NFS event metrics to mountstats collector
2017-01-12 14:08:21 +01:00
Johannes 'fish' Ziemke 3b6b5dfb92 Merge pull request #413 from mdlayher/wifi
Add initial wifi collector
2017-01-12 14:07:37 +01:00
Matt Layher e3f99e13b9
Add NFS event metrics to mountstats collector 2017-01-11 11:41:13 -05:00
Matt Layher efa25665ec
Add initial wifi collector, bump netlink to fix 32-bit builds 2017-01-11 10:08:44 -05:00
Johannes 'fish' Ziemke 8ee7f5bad2 Merge pull request #412 from mdlayher/vendor-wifi
Vendor github.com/mdlayher/wifi and dependencies
2017-01-10 23:04:34 +01:00
Matt Layher 82a2b8fc02
Vendor github.com/mdlayher/wifi and dependencies 2017-01-10 11:29:00 -05:00
Johannes 'fish' Ziemke 55170e8feb Merge pull request #411 from discordianfish/hwmon-move-label-metrics
Use filename as label, move 'label' to own metric
2017-01-10 12:21:18 +01:00
Ben Kochie 12f8494a83 Merge pull request #324 from prometheus/superq/edac_mc
Add collector for Linux EDAC
2017-01-10 10:41:59 +01:00
Ben Kochie 38a4a36061 Update end-to-end test. 2017-01-10 10:23:16 +01:00
Ben Kochie b4fa10ca9d Add collector for Linux EDAC
Collect "Error detection and correction" metrics from memory
controllers.
* Supported on Linux only.
* Add basic fixtures.
* Enabled by default.
2017-01-10 10:14:19 +01:00
Johannes 'fish' Ziemke e9cea11553 Merge pull request #410 from joehandzik/master
Add ZFS collector + review feedback from PRs 213 and 369
2017-01-09 18:40:54 +01:00
Johannes 'fish' Ziemke 6aef20f8d8 Use filename as label, move 'label' to own metric
This closes #406
2017-01-09 18:33:31 +01:00
Joe Handzik dd3e1d6283 AUTHORS.md: Update authors from ZFS plugin commit
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-08 11:13:35 -06:00
Joe Handzik e7442d6517 end-to-end-test.sh: Add zfs plugin
Enables fixture test and updates e2e-output.txt.

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-08 11:13:35 -06:00
Corey Stewart 10ba27bf2c Remove FreeBSD support for zfs plugin.
This also involves removing zfs_zpool code for now.

Signed-Off-By: Corey Stewart <stewa169@purdue.edu>
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
2017-01-08 11:13:35 -06:00
Corey Stewart a8c94d48e6 Style changes and cleanup
This patch makes stylistic changes to error strings, unexports method names by lower casing them, removes unused dataSetMetric, and adds copyright/licence information.

Signed-Off-By: Corey Stewart <stewa169@purdue.edu>
2017-01-08 10:23:58 -06:00
Christian Schwarz c95bfa705e Enable ZFS exporter by default and update README. 2017-01-08 10:23:58 -06:00
Christian Schwarz f29f3873ea Add a collector for ZFS, currently focussed on ARC stats.
It is tested on FreeBSD 10.2-RELEASE and Linux (ZFS on Linux 0.6.5.4).

On FreeBSD, Solaris, etc. ZFS metrics are exposed through sysctls.
ZFS on Linux exposes the same metrics through procfs `/proc/spl/...`.

In addition to sysctl metrics, 'computed metrics' are exposed by
the collector, which are based on several sysctl values.
There is some conditional logic involved in computing these metrics
which cannot be easily mapped to PromQL.

Not all 92 ARC sysctls are exposed right now but this can be changed
with one additional LOC each.
2017-01-08 10:23:58 -06:00
Johannes 'fish' Ziemke dde59014b8 Merge pull request #409 from discordianfish/use-promhttp-set-logger
Use promhttp and setup logger
2017-01-06 16:33:57 +01:00
Johannes 'fish' Ziemke 2e47fcb8c5 Only store relevant e2e output
This makes commits ligher/more readable when updating the output.
2017-01-06 12:36:26 +01:00
Johannes 'fish' Ziemke 17e71b0a16 Update client_golang 2017-01-06 12:33:21 +01:00