mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: change lifecycle stage duration metric type (#7444)
This commit is contained in:
parent
7e5ce08ea8
commit
388fe2dbd3
@ -279,7 +279,7 @@ export default class MetricsMonitor {
|
|||||||
help: 'Duration of mapFeaturesForClient function',
|
help: 'Duration of mapFeaturesForClient function',
|
||||||
});
|
});
|
||||||
|
|
||||||
const featureLifecycleStageDuration = createHistogram({
|
const featureLifecycleStageDuration = createGauge({
|
||||||
name: 'feature_lifecycle_stage_duration',
|
name: 'feature_lifecycle_stage_duration',
|
||||||
labelNames: ['stage', 'project_id'],
|
labelNames: ['stage', 'project_id'],
|
||||||
help: 'Duration of feature lifecycle stages',
|
help: 'Duration of feature lifecycle stages',
|
||||||
@ -334,7 +334,7 @@ export default class MetricsMonitor {
|
|||||||
stage: stage.stage,
|
stage: stage.stage,
|
||||||
project_id: stage.project,
|
project_id: stage.project,
|
||||||
})
|
})
|
||||||
.observe(stage.duration);
|
.set(stage.duration);
|
||||||
});
|
});
|
||||||
|
|
||||||
stageCountByProject.reset();
|
stageCountByProject.reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user