Increment the retired metric instead of spawned (#4269)

This commit is contained in:
Sergei Shulepov authored and GitHub committed 2021-11-12 18:16:08 +01:00
1 parent fa1080a03a
commit 1cf07b2162
1 file changed
+1 -1
+1 -1
View File
@@ -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();
}
}
}