mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-28 17:55:15 +02:00
feat: Using impact metrics with flags (#10355)
This commit is contained in:
parent
34feef990e
commit
998834245c
@ -792,7 +792,11 @@ export function registerPrometheusMetrics(
|
|||||||
appName,
|
appName,
|
||||||
})
|
})
|
||||||
.observe(time);
|
.observe(time);
|
||||||
config.flagResolver.impactMetrics?.incrementCounter(REQUEST_COUNT);
|
config.flagResolver.impactMetrics?.incrementCounter(
|
||||||
|
REQUEST_COUNT,
|
||||||
|
1,
|
||||||
|
{ flagNames: ['consumptionModel'], context: {} },
|
||||||
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1145,6 +1149,7 @@ export function registerPrometheusMetrics(
|
|||||||
config.flagResolver.impactMetrics?.updateGauge(
|
config.flagResolver.impactMetrics?.updateGauge(
|
||||||
HEAP_MEMORY_TOTAL,
|
HEAP_MEMORY_TOTAL,
|
||||||
process.memoryUsage().heapUsed,
|
process.memoryUsage().heapUsed,
|
||||||
|
{ flagNames: ['consumptionModel'], context: {} },
|
||||||
);
|
);
|
||||||
featureTogglesArchivedTotal.reset();
|
featureTogglesArchivedTotal.reset();
|
||||||
featureTogglesArchivedTotal.set(
|
featureTogglesArchivedTotal.set(
|
||||||
|
Loading…
Reference in New Issue
Block a user