Skip to content

Commit

Permalink
fix: remove unsued metric 'optimal304DiffingCounter' (#5810)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivarconr authored Jan 9, 2024
1 parent dcb8b5b commit 6d4a727
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/lib/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit 6d4a727

Please sign in to comment.