From e324034394d7e81030110d988db8ecbbd9c90c9d Mon Sep 17 00:00:00 2001 From: Vladimir Gorkavenko <32727352+vgorkavenko@users.noreply.github.com> Date: Wed, 28 Jun 2023 15:39:25 +0400 Subject: [PATCH] fix: add label to metric (#178) --- src/common/prometheus/prometheus.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/prometheus/prometheus.service.ts b/src/common/prometheus/prometheus.service.ts index 81e7beb4..97471f85 100644 --- a/src/common/prometheus/prometheus.service.ts +++ b/src/common/prometheus/prometheus.service.ts @@ -449,7 +449,7 @@ export class PrometheusService implements OnApplicationBootstrap { public totalBalance24hDifference = this.getOrCreateMetric('Gauge', { name: METRIC_TOTAL_BALANCE_24H_DIFFERENCE, help: 'Total balance difference (24 hours)', - labelNames: [], + labelNames: ['nos_module_id'], }); public operatorBalance24hDifference = this.getOrCreateMetric('Gauge', {