1
0
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:
Mateusz Kwasniewski 2024-06-25 12:42:43 +02:00 committed by GitHub
parent 7e5ce08ea8
commit 388fe2dbd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -279,7 +279,7 @@ export default class MetricsMonitor {
help: 'Duration of mapFeaturesForClient function',
});
const featureLifecycleStageDuration = createHistogram({
const featureLifecycleStageDuration = createGauge({
name: 'feature_lifecycle_stage_duration',
labelNames: ['stage', 'project_id'],
help: 'Duration of feature lifecycle stages',
@ -334,7 +334,7 @@ export default class MetricsMonitor {
stage: stage.stage,
project_id: stage.project,
})
.observe(stage.duration);
.set(stage.duration);
});
stageCountByProject.reset();