Skip to content

[Traefik Mesh] Fix Traefik Mesh dashboard service tag#23613

Open
agarov wants to merge 4 commits intoDataDog:masterfrom
agarov:fix-traefik-mesh-dashboard-service-tag
Open

[Traefik Mesh] Fix Traefik Mesh dashboard service tag#23613
agarov wants to merge 4 commits intoDataDog:masterfrom
agarov:fix-traefik-mesh-dashboard-service-tag

Conversation

@agarov
Copy link
Copy Markdown

@agarov agarov commented May 6, 2026

What does this PR do?

Fixes the Traefik Mesh overview dashboard to use the traefik_service tag instead of the reserved service tag.

The Traefik Mesh integration renames the OpenMetrics label service to traefik_service via RENAME_LABELS in metrics.py:

RENAME_LABELS = {
    'version': 'go_version',
    'service': 'traefik_service',
}

However, the bundled dashboard still filters and groups several widgets using service, which does not match the emitted metric tag.

Motivation

When Traefik exposes metrics such as:

traefik_router_request_duration_seconds_bucket{...,service="my-service@kubernetes",...}

the Datadog Agent ingests the service label as traefik_service, so dashboard widgets using $service or by {service} do not work as expected.

Additional Notes

Also fixes a small query typo:

$routercode:3*

to:

$router,code:3*

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

@buraizu buraizu self-assigned this May 6, 2026
buraizu
buraizu previously approved these changes May 6, 2026
Copy link
Copy Markdown
Contributor

@buraizu buraizu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with one minor update requested for formatting consistency

Comment thread traefik_mesh/assets/dashboards/traefik_mesh_overview.json Outdated
Remove extra blank

Co-authored-by: Bryce Eadie <bryce.eadie@datadoghq.com>
@temporal-github-worker-1 temporal-github-worker-1 Bot dismissed buraizu’s stale review May 7, 2026 07:44

Review from buraizu is dismissed. Related teams and files:

  • documentation
    • traefik_mesh/assets/dashboards/traefik_mesh_overview.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants