Whoops have remove the ip lables from the metric definitions too

This commit is contained in:
Jeremy Wall 2021-01-05 21:37:39 -05:00
parent 8d30bc61e0
commit 301bbe14fe

View File

@ -118,10 +118,10 @@ fn main() -> anyhow::Result<()> {
)
.unwrap();
let ping_latency_vec =
IntGaugeVec::new(Opts::new("ping_latency", "ICMP Ping latency"), &["domain", "ip"]).unwrap();
IntGaugeVec::new(Opts::new("ping_latency", "ICMP Ping latency"), &["domain"]).unwrap();
let ping_counter_vec = CounterVec::new(
Opts::new("ping_counter", "Ping Request Counter"),
&["result", "domain", "ip"],
&["result", "domain"],
)
.unwrap();
r.register(Box::new(stun_counter_vec.clone()))