Actually disable push metrics when disabled.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bill Thiede 2019-10-11 08:05:27 -07:00
parent 8b99a1f487
commit b0dafe4739

View File

@ -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(