Skip to content

Commit

Permalink
Fix prometheus type for krill_cas_bgp_roas_total
Browse files Browse the repository at this point in the history
  • Loading branch information
steffann authored and Tim Bruijnzeels committed Oct 26, 2023
1 parent 0cf0b38 commit cd6c165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit cd6c165

Please sign in to comment.