mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-30 13:24:52 +02:00
Clarify next planned connection for publication.
This commit is contained in:
@@ -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
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user