From cd6c165b70ef405c3ba7602fd03c3072c47fcafa Mon Sep 17 00:00:00 2001 From: Sander Steffann Date: Thu, 26 Oct 2023 12:38:08 +0200 Subject: [PATCH] Fix prometheus type for krill_cas_bgp_roas_total --- src/daemon/http/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/http/server.rs b/src/daemon/http/server.rs index b70839ac8..40ee3c1fd 100644 --- a/src/daemon/http/server.rs +++ b/src/daemon/http/server.rs @@ -803,7 +803,7 @@ pub async fn metrics(req: Request) -> RoutingResult { res.push('\n'); res.push_str("# HELP krill_cas_bgp_roas_total total number of ROAs for this CA\n"); - res.push_str("# TYPE krill_cas_bgp_roas_stale gauge\n"); + res.push_str("# TYPE krill_cas_bgp_roas_total gauge\n"); for (ca, nr) in all_bgp_stats.roas_total.iter() { res.push_str(&format!("krill_cas_bgp_roas_total{{ca=\"{}\"}} {}\n", ca, nr)); }