diff options
| author | tv <tv@krebsco.de> | 2026-10-25 13:07:48 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-25 13:07:48 +0100 |
| commit | 3af7c116d41c06822006fb447211e3792862fd7c (patch) | |
| tree | 52b9cdc0630fbd7b811e6b6e20a1f61624806ee8 /src/api/stats/prometheus.rs | |
| parent | d6620dc266b593e9ed269bcb7e65d3d8c9710d27 (diff) | |
add disk I/O stats
Diffstat (limited to 'src/api/stats/prometheus.rs')
| -rw-r--r-- | src/api/stats/prometheus.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs index f68ca85..ea97bd2 100644 --- a/src/api/stats/prometheus.rs +++ b/src/api/stats/prometheus.rs @@ -297,6 +297,32 @@ pub(super) async fn render(state: &AppState, stats: &StatsResponse) -> String { stats.stale_hello_replies as f64, ); + let disk = &stats.disk; + out.single( + "disk_reads_total", + "counter", + "Files this node read for itself (state file, backup).", + disk.reads as f64, + ); + out.single( + "disk_read_bytes_total", + "counter", + "Bytes of those files.", + disk.read_bytes as f64, + ); + out.single( + "disk_writes_total", + "counter", + "Files this node wrote for itself (state file).", + disk.writes as f64, + ); + out.single( + "disk_written_bytes_total", + "counter", + "Bytes of those files.", + disk.written_bytes as f64, + ); + let propagation = &stats.propagation; out.family( "propagation_delay_seconds", |
