1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

feat: using impact metrics with flags

This commit is contained in:
kwasniew 2025-07-14 16:12:14 +02:00
parent 34feef990e
commit 5c641e155d
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560

View File

@ -1145,6 +1145,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(