From 6d4a727bdfbe79d727e1557e4892fdb50c10c16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 9 Jan 2024 18:54:28 +0100 Subject: [PATCH] fix: remove unsued metric 'optimal304DiffingCounter' (#5810) This metric was used while developing the optimal304 feature. The feature flag has been removed and this data is not longer being collected and this will remove the metric from Prometheus. --- src/lib/metrics.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lib/metrics.ts b/src/lib/metrics.ts index 87eba0901e60..e9de062ca947 100644 --- a/src/lib/metrics.ts +++ b/src/lib/metrics.ts @@ -195,12 +195,6 @@ export default class MetricsMonitor { labelNames: ['sdk_name', 'sdk_version'], }); - const optimal304DiffingCounter = new client.Counter({ - name: 'optimal_304_diffing', - help: 'Count the Optimal 304 diffing with status', - labelNames: ['status'], - }); - const productionChanges30 = new client.Gauge({ name: 'production_changes_30', help: 'Changes made to production environment last 30 days', @@ -361,10 +355,6 @@ export default class MetricsMonitor { schedulerDuration.labels(jobId).observe(time); }); - eventBus.on('optimal304Differ', ({ status }) => { - optimal304DiffingCounter.labels(status).inc(); - }); - eventBus.on(events.DB_TIME, ({ store, action, time }) => { dbDuration.labels(store, action).observe(time); });