Clarify next planned connection for publication.

This commit is contained in:
Tim Bruijnzeels
2021-09-13 13:32:22 +02:00
parent 9eaa921720
commit 1ebe63e4bc
+3 -3
View File
@@ -604,14 +604,14 @@ pub async fn metrics(req: Request) -> RoutingResult {
}
res.push('\n');
res.push_str("# HELP krill_ca_repo_next_before_time unix timestamp in seconds of next planned CA to Publication Server connection\n");
res.push_str("# TYPE krill_ca_repo_next_before_time gauge\n");
res.push_str("# HELP krill_ca_repo_next_planned_time unix timestamp in seconds of next planned CA to Publication Server connection (unless e.g. ROAs are changed)\n");
res.push_str("# TYPE krill_ca_repo_next_planned_time gauge\n");
for (ca, status) in ca_repo_status.iter() {
// skip the ones for which we have no status yet, i.e it was really only just added
// and no attempt to connect has yet been made.
let timestamp = status.next_exchange_before();
res.push_str(&format!(
"krill_ca_repo_next_before_time{{ca=\"{}\"}} {}\n",
"krill_ca_repo_next_planned_time{{ca=\"{}\"}} {}\n",
ca, timestamp
));
}