Unverified Commit e26984f2 authored by Sergey Pepyakin's avatar Sergey Pepyakin Committed by GitHub
Browse files

Increment the retired metric instead of spawned (#4269)

parent c18d42d4
Pipeline #165766 canceled with stages
in 1 minute and 48 seconds
......@@ -208,7 +208,7 @@ impl<'a> WorkerRelatedMetrics<'a> {
/// When the worker was killed or died.
pub(crate) fn on_retired(&self) {
if let Some(metrics) = &self.metrics.0 {
metrics.worker_spawned.with_label_values(&[self.flavor.as_label()]).inc();
metrics.worker_retired.with_label_values(&[self.flavor.as_label()]).inc();
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment