From a046765c3d309b98e4c017896598b8899f434e5a Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Tue, 28 May 2024 20:14:06 +0100 Subject: [PATCH] Correct metrics names Suffix counter metrics with `_total`. --- adapter/src/metrics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter/src/metrics.rs b/adapter/src/metrics.rs index a0967b0..d7d2b19 100644 --- a/adapter/src/metrics.rs +++ b/adapter/src/metrics.rs @@ -4,10 +4,10 @@ use tracing::info; use metrics::describe_counter; use metrics_exporter_prometheus::{BuildError, PrometheusBuilder}; -pub(crate) static REQUESTS: &str = "emf_schedule_adapter_requests"; +pub(crate) static REQUESTS: &str = "emf_schedule_adapter_requests_total"; pub(crate) static ENDPOINT_LABEL: &str = "endpoint"; -pub(crate) static UPSTREAM_API_FAILURES: &str = "emf_schedule_adapter_upstream_api_failures"; +pub(crate) static UPSTREAM_API_FAILURES: &str = "emf_schedule_adapter_upstream_api_failures_total"; pub(super) fn init(address: SocketAddr) -> Result<(), BuildError> { info!("Starting observability server on {address}");