Skip to content

Feat/traefik router metrics#204

Merged
Dhanrajkshirsagar merged 2 commits into
mainfrom
feat/traefik-router-metrics
Jun 1, 2026
Merged

Feat/traefik router metrics#204
Dhanrajkshirsagar merged 2 commits into
mainfrom
feat/traefik-router-metrics

Conversation

@Dhanrajkshirsagar

Copy link
Copy Markdown
Contributor

No description provided.

Dhanraj and others added 2 commits June 1, 2026 21:54
…oise

Traefik entrypoint metrics are aggregate across all traffic including
unmatched requests (catchall@internal), inflating the error rate.

Add CollectRouters which scrapes traefik_router_requests_total and
traefik_router_request_duration_seconds_* per router, skipping all
@internal routers. Each router maps 1:1 to a deployed app so the
error rate reflects real app traffic only.

Sends as metric_type: traefik.router with router_name and
entrypoint_name attributes for correlation with deployed apps.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
CollectRouters was added to the Collector interface but the mock
was missing the method, causing compilation failure in tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Dhanrajkshirsagar Dhanrajkshirsagar merged commit 570b976 into main Jun 1, 2026
1 check failed
@Dhanrajkshirsagar Dhanrajkshirsagar deleted the feat/traefik-router-metrics branch June 1, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant