Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
fixed labels for MetricKey2
Browse files Browse the repository at this point in the history
  • Loading branch information
khodzha committed Oct 24, 2020
1 parent df2521a commit 1e692c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/app/metrics/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ impl<'a, C: GlobalContext> Collector<'a, C> {
append_dynamic_stats(&mut metrics, self.context, now)?;

append_janus_stats(&mut metrics, self.context, now)?;
{}

Ok(metrics)
}
Expand Down
12 changes: 6 additions & 6 deletions src/app/metrics/metric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ impl From<MetricKey> for MetricKey2 {
impl std::fmt::Display for MetricKey2 {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
MetricKey2::IncomingQueueRequests => write!(f, "incoming_queue_requests_total"),
MetricKey2::IncomingQueueResponses => write!(f, "incoming_queue_responses_total"),
MetricKey2::IncomingQueueEvents => write!(f, "incoming_queue_events_total"),
MetricKey2::OutgoingQueueRequests => write!(f, "outgoing_queue_responses_total"),
MetricKey2::OutgoingQueueResponses => write!(f, "outgoing_queue_responses_total"),
MetricKey2::OutgoingQueueEvents => write!(f, "outgoing_queue_events_total"),
MetricKey2::IncomingQueueRequests => write!(f, "incoming_requests_total"),
MetricKey2::IncomingQueueResponses => write!(f, "incoming_responses_total"),
MetricKey2::IncomingQueueEvents => write!(f, "incoming_events_total"),
MetricKey2::OutgoingQueueRequests => write!(f, "outgoing_responses_total"),
MetricKey2::OutgoingQueueResponses => write!(f, "outgoing_responses_total"),
MetricKey2::OutgoingQueueEvents => write!(f, "outgoing_events_total"),
MetricKey2::DbConnections => write!(f, "db_connections_total"),
MetricKey2::IdleDbConnections => write!(f, "idle_db_connections_total"),
MetricKey2::RedisConnections => write!(f, "redis_connections_total"),
Expand Down

0 comments on commit 1e692c1

Please sign in to comment.