Actually disable push metrics when disabled.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8b99a1f487
commit
b0dafe4739
@ -42,6 +42,7 @@ fn push_metrics(push_gateway_addr: &str, instance: String, start_time: &DateTime
|
||||
|
||||
if push_gateway_addr.is_empty() {
|
||||
info!("Logging stats to push gateway disabled");
|
||||
return;
|
||||
}
|
||||
|
||||
if let Err(err) = prometheus::push_metrics(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user