From f464ee7b3acc957476ab0256f4adf343901217ec Mon Sep 17 00:00:00 2001 From: anastasiiaVashchuk Date: Thu, 5 Oct 2023 12:08:53 +0300 Subject: [PATCH] use gauge instead histogram --- core/lib/circuit_breaker/src/replication_lag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/circuit_breaker/src/replication_lag.rs b/core/lib/circuit_breaker/src/replication_lag.rs index df8e886258be..244c53349cee 100644 --- a/core/lib/circuit_breaker/src/replication_lag.rs +++ b/core/lib/circuit_breaker/src/replication_lag.rs @@ -20,7 +20,7 @@ impl CircuitBreaker for ReplicationLagChecker { .get_replication_lag_sec() .await; - metrics::histogram!("circuit_breaker.replication_lag", lag as f64); + metrics::gauge!("circuit_breaker.replication_lag", lag as f64); match self.replication_lag_limit_sec { Some(replication_lag_limit_sec) if lag > replication_lag_limit_sec => Err( CircuitBreakerError::ReplicationLag(lag, replication_lag_limit_sec),