Skip to content

Commit

Permalink
Correct metrics names
Browse files Browse the repository at this point in the history
Suffix counter metrics with `_total`.
  • Loading branch information
DanNixon committed May 28, 2024
1 parent c255755 commit a046765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit a046765

Please sign in to comment.