zfs_exporter | Prometheus ZFS exporter | Time Series Database library
kandi X-RAY | zfs_exporter Summary
kandi X-RAY | zfs_exporter Summary
Prometheus ZFS exporter
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of zfs_exporter
zfs_exporter Key Features
zfs_exporter Examples and Code Snippets
usage: zfs_exporter []
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
--collector.dataset-filesystem
Enable the dataset-filesystem collector (default: enabled
go get -u github.com/pdf/zfs_exporter
version=latest # or a specific version tag
go install github.com/pdf/zfs_exporter@$version
Community Discussions
Trending Discussions on zfs_exporter
QUESTION
I am collecting ZFS metrics in Prometheus v.2.19 from Linux servers using ZFS Exporter. The data is being collected from all targets and the values are correct, however there is this strange issue: I want to calculate the percentage of the ratio of ARC misses vs. ARC hits, so I use the following formula:
...ANSWER
Answered 2020-Jul-24 at 17:49Prometheus divides one metric by another only if all the labels with their values for both metrics are identical. In this case metrics on the left side of /
have label {stat='misses'}
, while metrics on the right side have different value for stat
label: {stat='hits'}
. Prometheus provides ignoring
and on
operations, which may be applied to any binary operator (i.e. /
, +
, -
, etc.). See the corresponding docs for details.
So in you case you must tell Prometheus to ignore stat
label when performing calculations:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zfs_exporter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page