Crates.io | freebsd-geom-exporter |
lib.rs | freebsd-geom-exporter |
version | 0.1.1 |
source | src |
created_at | 2024-04-17 22:40:14.480213 |
updated_at | 2024-04-18 00:12:49.345934 |
description | Proemtheus exporter for FreeBSD's GEOM device statistics |
homepage | |
repository | https://github.com/asomers/gstat-rs |
max_upload_size | |
id | 1211854 |
size | 37,695 |
The is a Prometheus exporter for FreeBSD's GEOM statistics. These are the same underlying statistics reported by gstat(8).
In terms of accuracy, accessing these metrics via Prometheus is less accurate than using gstat directly, for two reasons:
Prometheus records all metrics as 64-bit floating point values. But gstat
uses devstat(3), which uses long double
internally.
Prometheus timestamps data points according to the time that they are ingested into the database. So computing rates with Prometheus will suffer due to the jitter involved in ingesting the data. But devstat(3) uses timestamps that are recorded by the kernel at the moment the kernel generates a devstat snapshot. So those rate computations are much more accurate.
cargo install freebsd-geom-exporter
daemon geom-exporter
Note that the FreeBSD port of this exporter (net-mgmt/geom-exporter) comes with an rc(8) service script.
freebsd-geom-exporter does not guarantee any specific MSRV. Rather, it guarantees compatibility with the oldest rustc shipped in the latest quarterly branch of the FreeBSD ports collection.
freebsd-geom-exporter
is primarily distributed under the terms of both the
MIT license and the Apache License (Version 2.0).