Skip to content

Commit

Permalink
Metrics: Exclude /render/version from duration and inflight metrics (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AgnesToulet authored Jan 16, 2025
1 parent 4607ff4 commit 122374c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/service/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export const setupHttpServerMetrics = (app: express.Express, config: MetricsConf
config.requestDurationBuckets.join(',')
);

const excludeRegExp = /^((?!(render)).)*$/;
// Exclude all non-rendering endpoints:
// - endpoints that do not include render
// - /render/version
const excludeRegExp = /^(((?!(render)).)*|.*version.*)$/;

const opts = {
httpDurationMetricName: 'grafana_image_renderer_service_http_request_duration_seconds',
Expand Down

0 comments on commit 122374c

Please sign in to comment.