Skip to content

Commit

Permalink
Prometheus edit service names (#3322)
Browse files Browse the repository at this point in the history
  • Loading branch information
varsha888 committed Apr 25, 2023
1 parent fe1d84d commit 2c26aec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fog/ingest/server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use mc_util_metrics::ServiceMetrics;

lazy_static::lazy_static! {
/// Generates service metrics for tracking
pub static ref SVC_COUNTERS: ServiceMetrics = ServiceMetrics::new_and_registered("fog_ingest");
pub static ref SVC_COUNTERS: ServiceMetrics = ServiceMetrics::new_and_registered("fog_ingest_service");
}

// Helper to format a sequence as a comma-separated list
Expand Down
2 changes: 1 addition & 1 deletion fog/ledger/server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod untrusted_tx_out_service;
use mc_util_metrics::ServiceMetrics;

lazy_static::lazy_static! {
pub static ref SVC_COUNTERS: ServiceMetrics = ServiceMetrics::new_and_registered("fog_ledger");
pub static ref SVC_COUNTERS: ServiceMetrics = ServiceMetrics::new_and_registered("fog_ledger_service");
}

/// State that we want to expose from the db poll thread
Expand Down
2 changes: 1 addition & 1 deletion fog/report/server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ use mc_util_metrics::ServiceMetrics;

lazy_static::lazy_static! {
/// Generates service metrics for tracking
pub static ref SVC_COUNTERS: ServiceMetrics = ServiceMetrics::new_and_registered("fog_report");
pub static ref SVC_COUNTERS: ServiceMetrics = ServiceMetrics::new_and_registered("fog_report_service");
}
2 changes: 1 addition & 1 deletion fog/view/server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ mod router_request_handler;
mod shard_responses_processor;

lazy_static::lazy_static! {
pub static ref SVC_COUNTERS: ServiceMetrics = ServiceMetrics::new_and_registered("fog_view");
pub static ref SVC_COUNTERS: ServiceMetrics = ServiceMetrics::new_and_registered("fog_view_service");
}

0 comments on commit 2c26aec

Please sign in to comment.