Skip to content

Commit

Permalink
add a request counter per cluster and backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal authored and FlorentinDUBOIS committed Jul 13, 2022
1 parent 194908f commit 67b98d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ macro_rules! record_backend_metrics (
if let Some(t) = $backend_connection_time {
m.receive_metric("backend_connection_time", Some(cluster_id), Some(backend_id), MetricData::Time(t.whole_milliseconds() as usize));
}

m.receive_metric("requests", Some(cluster_id), Some(backend_id), MetricData::Count(1));
});
}
);
Expand Down

0 comments on commit 67b98d0

Please sign in to comment.