Fix Prometheus: event counters are exported with incorrect metric names
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user