Fix Prometheus: event counters are exported with incorrect metric names

This commit is contained in:
Maurus Decimus
2026-06-28 18:53:45 +02:00
parent 8d229d6c9b
commit 7e7e254328
2 changed files with 3 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If
- DANE: Treat DNSSEC `bogus` as a temporary failures to prevent downgrade attacks.
- OIDC: `ECDSA` private key support for `SEC1` format.
- PostgreSQL: Include error chain in error messages.
- Prometheus: event counters are exported with incorrect metric names.
## [0.16.11] - 2026-06-25

View File

@@ -8,7 +8,7 @@ use std::sync::atomic::Ordering;
use atomics::{array::AtomicU32Array, gauge::AtomicGauge, histogram::AtomicHistogram};
use ipc::{
collector::{Collector, EVENT_TYPES, GlobalInterests},
collector::{Collector, GlobalInterests},
subscriber::Interests,
};
@@ -216,7 +216,7 @@ impl Collector {
let value = value.load(Ordering::Relaxed);
if value > 0 {
Some(EventCounter {
id: EVENT_TYPES[event_id],
id: EventType::from_id(event_id as u16)?,
value,
})
} else {