Add Traefik Grafana dashboard #407
Reference in New Issue
Block a user
Delete Branch "benvin/traefik-dashboard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Traefik metrics (traefik_entrypoint_requests_total, traefik_service_*, etc.) are now flowing into VictoriaMetrics with the relabeled
traefik_instancelabel, but there is no dashboard to view them.Changes
apps/base/grafana/dashboards/traefik.yaml: GrafanaDashboard CR mirroring the redis.yaml sibling (gzipJson embed,instanceSelector dashboards: grafana,resyncPeriod: 5m,allowCrossNamespaceImport: false)__inputs/__requires/__elementsand theDS_PROMETHEUSdatasource variabledet2y55dac4jkcinstancetemplate variable overtraefik_instanceand filter every query withtraefik_instance=~"$instance"so traefik-internal / traefik-external are switchableapps/base/grafana/kustomization.yamlValidated: gzipJson decode roundtrip,
kustomize build, kubeconform.Reviewed on its own merits (diff + body).
apps/base/grafana/dashboards/traefik.yaml(new) + one added line inapps/base/grafana/kustomization.yaml.redis.yamlexactly (apiVersion,instanceSelector.matchLabels.dashboards: "grafana",resyncPeriod: 5m,allowCrossNamespaceImport: false); onlymetadata.namediffers, as expected.__inputs/__requires/__elements, no leftoverDS_PROMETHEUS/${DS_*}references. All datasource uids aredet2y55dac4jkc(the only other uid present is the built-in-- Grafana --annotations datasource, which is standard/expected).instancevariable: present (label_values(traefik_entrypoint_requests_total, traefik_instance)), and all 14 panel-target exprs containtraefik_instance=~"$instance". Theentrypoint/servicechained variables are also filtered throughtraefik_instance=~"$instance".traefik_entrypoint_requests_total,traefik_entrypoint_request_duration_seconds_{bucket,count},traefik_service_requests_total,traefik_service_request_duration_seconds_{bucket,count,sum},traefik_service_requests_bytes_total,traefik_service_responses_bytes_total,traefik_open_connections,traefik_config_reloads_total).kustomize build apps/base/grafanasucceeds cleanly on the branch; new resource renders in the output; new line is correctly alphabetized in the resources list.success(kubeconform, pre-commit, vector-test), matching the PR's own "CI: ✓ ✓ ✓".VERDICT: CLEAN