Skip to content

fix(monitoring): open the SRE dashboard on the Service namespace #4728

Closed as not planned

Description

@dan-petty

Problem or Motivation

sre-service.json opens on namespace 'default', which holds only 13 GPU feature discovery DaemonSet pods in 7 d; the Service is in 'devops' (255 Job and 182 ReplicaSet pods in 7 d). The pod variable has allValue '.*', so All matches every Job pod. Panels 7 to 10 draw usage, limit and request for each pod: 247 CPU pod series and 332 limit series in 7 d for 6 container names. Panels 9, 13 and 15 use a fixed [5m], which reads one third of each 15 min step at 7 d. The heatmap's $service holds Pyroscope names, and its All value matches 9 Traefik services; the Traefik default buckets (0.1, 0.3, 1.2, 5 s) put 2,184 of 2,301 Service requests (95 %) in the lowest bucket, so the heatmap is one bright row. The Golden Signals row has no traffic or error panel. Panel 2 counts running containers, not pods.

Proposed Solution & Architectural Design

Namespace default 'devops'. Pod variable from kube_pod_info{namespace=~'$namespace', created_by_kind!='Job'} with no allValue. Service variable single select, default roadmap-service. Panels 7 to 10 sum by container (6 lines) plus one namespace total; the per-pod limit and request lines go (panel 13 shows the percent of the limit). [$__rate_interval] in every rate. Replace the heatmap with p50, p95 and p99 lines of traefik_service_request_duration_seconds_bucket{service=~'${namespace}-.*@kubernetes'}, and set finer Traefik buckets in k8s/ingress/traefik-values.yaml (metrics.prometheus.buckets 0.005 to 10 s, about 11 buckets). Add a request rate by code panel and a 5xx share panel, so the row shows latency, traffic, errors and saturation. Panel 2 counts pods in phase Running.

Scope: queries, panel types, units, legends and defaults only. Keep the default Grafana colors. The project design study owns colors and type.

Target Subsystem

Kubernetes & Minikube Automation (Grafana dashboards and telemetry).

Existing Tool Considered

The Traefik Prometheus metrics with the chart setting metrics.prometheus.buckets, and built-in Grafana panel types. No new code.

Acceptance Criteria

  • The dashboard opens with namespace devops and one service.
  • Harness cases (tests/fixtures/dashboard_queries/sre-service.yaml): panel 7 over 3 pods of one container gives one line; the p95 query returns the fixture quantile.
  • No time series target holds [5m] or a by (pod) over the limit or request series.
  • Live at 7 d in namespace devops: panel 7 shows at most 7 lines (today 247 usage and 332 limit series).
  • Live: count(count by (le) (traefik_service_request_duration_seconds_bucket)) is 8 or more.

Files

  • k8s/monitoring/dashboards/sre-service.json
  • k8s/ingress/traefik-values.yaml
  • tests/fixtures/dashboard_queries/sre-service.yaml

Dependencies

#4680.

Source: #4675

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/bug
    scope/monitoring
    status/new
    value/medium
    effort/medium
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/monitoring. The (monitoring) scope of the title gives the scope.
    • Priority: P2-Medium. The dashboard shows wrong data and missing panels, but it does not break production workloads or block other work.
    • Value: Medium. Correct observability for the SRE team, but it does not change user-facing behaviour.
    • Effort: Medium. Multiple panels, variables, a Traefik config change, new panels, and test fixtures must all be updated.
    • Related: feat(telemetry): add properly labeled sum and average lines to service and cluster grafana graphs #968, which asks for a different change. Both change aggregation on panels 7 to 10 of sre-service.json, but #968 adds sum and average lines while the candidate replaces per-pod series with per-container sums and fixes namespace, variables, and time windows.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    PR #5280 deleted k8s/monitoring/dashboards/sre-service.json. The template now generates devops-sre-service.json from services.toml. In the generated dashboard, the namespace and service defaults come from the service entry, and the panels follow the golden-signals layout of docs/DESIGN.md. This issue is about the deleted file, so I close it as superseded. If a defect stays in the generated dashboard, file it against the template.

  6. removed
    status/new
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/monitoringsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions