Skip to content
Snippets Groups Projects
Commit 1cf07b21 authored by Sergey Pepyakin's avatar Sergey Pepyakin Committed by GitHub
Browse files

Increment the retired metric instead of spawned (#4269)

parent fa1080a0
No related merge requests found
......@@ -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();
}
}
}
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