Robert Clark
413e5af502
Skip metric files that don't exist
...
In case a metric file within the InfiniBand collector doesn't exist, skip the metric in order to allow collection of the remaining valid InfiniBand metrics.
Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
8 years ago
Derek Marcotte
72d8576185
Refactor meminfo_bsd.go to use sysctl_bsd.go ( #501 )
...
* Refactor meminfo_bsd.go to use sysctl_bsd.go
* Fixed spelling.
8 years ago
Ben Kochie
5d22d41ed7
Merge pull request #484 from prometheus/grobie/update-vendored-packages
...
Update vendored packages
8 years ago
Derek Marcotte
bdc2131332
Added node_memory_buffer, node_memory_swaptotal to meminfo_bsd ( #451 )
8 years ago
Tobias Schmidt
ce117d7a40
Update vendored packages
8 years ago
Tobias Schmidt
84eaa8fecd
Remove more unnecessarily named return values
8 years ago
Derek Marcotte
5c28ab044d
Add BSD exec statistics collector ( #457 )
...
* First pass of a sysctl_bsd source, exec_bsd + exec metrics
* Incorportate PR feedback, including removing pre-build descriptions, unit conversion callback.
* Remove redundant cached_description field, per PR feedback
* Incorporate PR feedback
8 years ago
Tobias Schmidt
1bd94074dd
Delete unused code
8 years ago
Tobias Schmidt
922e74d58f
Remove unnecessarily named return variables
...
Named return variables should only be used to describe the returned type
further, e.g. `err error` doesn't add any new information and is just
stutter.
8 years ago
Tobias Schmidt
084e585c2a
Fix scanner usage without error handling
8 years ago
Tobias Schmidt
d1dfda86ee
Fix wrong end-to-end expectation
8 years ago
Tobias Schmidt
abdebef47c
Fix gofmt -s and spelling issues
8 years ago
Tobias Schmidt
195b4d596c
Merge pull request #480 from prometheus/grobie/gosimple
...
Simplify go code
8 years ago
Tobias Schmidt
694294baf5
Remove unnecessary conversions
8 years ago
Tobias Schmidt
21e13c7f52
Simplify code
8 years ago
Tobias Schmidt
c703435790
Fix all open go lint and vet issues
8 years ago
Ben Kochie
38cd07ebb9
Merge pull request #450 from roclark/add-infiniband
...
infiniband: Add new collector for InfiniBand statistics
8 years ago
Ben Kochie
a097dd36b3
Merge pull request #459 from joehandzik/wip-zpool-io-cherrypick
...
ZFS Collector: Add zpool IO statistics
8 years ago
Thorhallur Sverrisson
19813d3e02
Changing datastructure for BuddyInfo
8 years ago
Thorhallur Sverrisson
5ab285e098
Adding buddyinfo to end to end test.
8 years ago
Thorhallur Sverrisson
55417d7688
Moving buddyinfo logic to procfs
8 years ago
Thorhallur Sverrisson
492c96f6b6
Moving buddyinfo_test.go to procfs library
8 years ago
Thorhallur Sverrisson
3ba15c1ddb
Adding support for /proc/buddyinfo for linux free memory fragmentation.
...
/prod/buddyinfo returns data on the free blocks fragments available
for use from the kernel. This data is useful when diagnosing
possible memory fragmentation.
More info can be found in:
* https://lwn.net/Articles/7868/
* https://andorian.blogspot.com/2014/03/making-sense-of-procbuddyinfo.html
8 years ago
Joe Handzik
bb8b3fca88
ZFS Collector: Add zpool IO statistics
...
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Robert Clark
36f81282b7
Add unit tests for InfiniBand collector
...
Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
8 years ago
Robert Clark
4866adcb71
Add new collector for InfiniBand statistics
...
Add new metrics for the InfiniBand network protocol including the amount of packets sent and received, the number of times the link has been downed and how many times the link has recovered from an error state.
Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
8 years ago
Joe Handzik
8c23f5ff54
ZFS Collector: Convert dashes to underscores for metrics
...
This fixes #442 , and prevents other ZFS metrics from slipping through in the future.
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Ben Kochie
7cfa5e75b8
Merge pull request #439 from mdlayher/collector-staticcheck
...
Fix two staticcheck issues in IPVS collector tests
8 years ago
Ben Kochie
71362d45eb
Merge pull request #432 from joehandzik/wip-zfs-zfetchstats
...
Update ZFS Collector with most non-zpool metrics
8 years ago
Joe Handzik
e5ee274a32
ZFS Collector: Move from camelcase to underscores for metric prefixes
...
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Matt Layher
c8e546926a
Fix two staticcheck issues in IPVS collector tests
8 years ago
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>
8 years ago
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.
8 years ago
Joe Handzik
94fb93a9f3
ZFS Collector: Add dmu_tx functionality
...
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Joe Handzik
07c7ae733a
ZFS Collector: Add fm functionality
...
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Joe Handzik
05048c067d
ZFS Collector: Add xuio_stats functionality
...
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Joe Handzik
3c9e779989
ZFS Collector: Add vdev_cache_stats functionality
...
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Joe Handzik
a02ca9502c
ZFS Collector: Add zil functionality
...
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Joe Handzik
a3125ab4d9
ZFS Collector: Add zfetchstats functionality
...
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
8 years ago
Ben Kochie
acb495ccab
Merge pull request #425 from mdlayher/wifi-update
...
Update vendored wifi, handle stations with missing info
8 years ago
Matt Layher
dfd661a633
Allow graceful failure in hwmon collector
8 years ago
Matt Layher
ca3f07feef
Update vendored wifi, handle stations with missing info
8 years ago
Ben Kochie
92537020a3
Fix runit collector flag typo.
8 years ago
Julius Volz
276112c7ef
Merge pull request #418 from mdlayher/wifi-graceful-fail
...
Make wifi collector fail gracefully if metrics not available
8 years ago
Matt Layher
d3089f2ce8
Make wifi collector fail gracefully if metrics not available
8 years ago
Matt Layher
1e1775e761
Make ZFS collector fail gracefully when not available
8 years ago
Johannes 'fish' Ziemke
2884181cce
Merge pull request #415 from mdlayher/mountstats-nfs-additional
...
Add NFS event metrics to mountstats collector
8 years ago
Matt Layher
e3f99e13b9
Add NFS event metrics to mountstats collector
8 years ago
Matt Layher
efa25665ec
Add initial wifi collector, bump netlink to fix 32-bit builds
8 years ago
Johannes 'fish' Ziemke
55170e8feb
Merge pull request #411 from discordianfish/hwmon-move-label-metrics
...
Use filename as label, move 'label' to own metric
8 years ago