Skip to content

Commit

Permalink
Revert "fix: Add metrics for old proxy forward (#6695)"
Browse files Browse the repository at this point in the history
This reverts commit d065905.
  • Loading branch information
ivarconr committed Mar 26, 2024
1 parent dc64a81 commit a6643e4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/lib/metrics.ts
Expand Up @@ -103,11 +103,6 @@ export default class MetricsMonitor {
help: 'Number of times a feature toggle has been used',
labelNames: ['toggle', 'active', 'appName'],
});
const oldEmbeddedProxyForwardCounter = createCounter({
name: 'old_embedded_proxy_forward_total',
help: 'Number of times we forwarded old embedded proxy requests',
labelNames: ['path', 'method'],
});
const featureTogglesTotal = createGauge({
name: 'feature_toggles_total',
help: 'Number of feature toggles',
Expand Down Expand Up @@ -605,11 +600,6 @@ export default class MetricsMonitor {
}
});

// On purpose a hard-coded string. Will we removed when we are done migrating.
eventBus.on('OLD_EMBEDDED_PROXY_REQUEST', ({ path, method }) => {
oldEmbeddedProxyForwardCounter.labels({ path, method }).inc();
});

await this.configureDbMetrics(db, eventBus, schedulerService);

return Promise.resolve();
Expand Down

0 comments on commit a6643e4

Please sign in to comment.