Skip to content

Commit

Permalink
Always set datastore_partitioned gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-cattermole committed May 13, 2024
1 parent ae58875 commit 984ffab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions limitador-server/src/prometheus_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ impl PrometheusMetrics {
describe_counter!("limited_calls", "Limited calls");
describe_gauge!("limitador_up", "Limitador is running");
gauge!("limitador_up").set(1);
describe_gauge!(
"datastore_partitioned",
"Limitador is partitioned from backing datastore"
);
gauge!("datastore_partitioned").set(0);
Self {
use_limit_name_label,
prometheus_handle,
Expand Down

0 comments on commit 984ffab

Please sign in to comment.