set hostname

This commit is contained in:
Robin Appelman 2021-12-12 15:53:48 +01:00
commit 946eb20e67

View file

@ -69,7 +69,7 @@ async fn main() -> Result<()> {
let mdns = Responder::spawn(&Handle::current())?;
let _svc = mdns.register(
"_prometheus-http._tcp".into(),
"Palantir prometheus exporter".into(),
hostname::get()?.into_string().unwrap(),
host_port,
&[&"/metrics"],
);