forked from NationTech/harmony
get domain for a service
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user