get domain for a service

This commit is contained in:
2025-09-09 09:46:00 -04:00
parent a0884950d7
commit b9e04d21da
7 changed files with 18 additions and 16 deletions

View File

@@ -50,7 +50,7 @@ impl<
.await
.map(|ns| ns.name.clone())
.unwrap_or_else(|| self.application.name());
let domain = topology.get_domain().await.unwrap();
let domain = topology.get_domain("ntfy".into()).await.unwrap();
let mut alerting_score = ApplicationMonitoringScore {
sender: CRDPrometheus {
@@ -62,7 +62,7 @@ impl<
};
let ntfy = NtfyScore {
namespace: namespace.clone(),
host: format!("ntfy.{domain}"),
host: domain,
};
ntfy.interpret(&Inventory::empty(), topology)
.await