Grafana dashboard: tier variable + filtered overview #2

Closed
opened 2026-05-29 12:05:33 +00:00 by ldraney · 1 comment
Owner

Type

Feature

Lineage

Depends on ldraney/DORA#1 (exporter must emit the tier label first).

Repo

forgejo_admin/pal-e-platform

User Story

As a platform operator
I want playground repos excluded from DORA composite scores
So that metrics reflect real production health

Context

The current Grafana DORA dashboard has a $repo variable that shows every Forgejo repo. Once the exporter emits a tier label (#1), the dashboard needs a tier dropdown so overview panels aggregate only production repos by default.

File Targets

Files the agent should modify or create:

  • terraform/dashboards/dora-dashboard.json — add tier variable, update overview panel queries

Files the agent should NOT touch:

  • terraform/modules/monitoring/main.tf — no infra changes needed

Acceptance Criteria

  • Dashboard has a tier dropdown: Tier 1 (Production), Tier 1+2 (All Tracked), All
  • Overview stat panels filter by tier=~"$tier"
  • Default selection is Tier 1 (Production)

Test Expectations

  • Manual: verify dropdown appears and filters panels correctly in Grafana

Constraints

  • Dashboard JSON is managed in Terraform — changes must be applied via tofu apply
  • Must not break existing $repo variable functionality

Checklist

  • PR opened
  • Tests pass
  • No unrelated changes
  • dora-metrics — project this affects
  • ldraney/DORA#1 — dependency
### Type Feature ### Lineage Depends on `ldraney/DORA#1` (exporter must emit the tier label first). ### Repo `forgejo_admin/pal-e-platform` ### User Story As a platform operator I want playground repos excluded from DORA composite scores So that metrics reflect real production health ### Context The current Grafana DORA dashboard has a `$repo` variable that shows every Forgejo repo. Once the exporter emits a `tier` label (#1), the dashboard needs a tier dropdown so overview panels aggregate only production repos by default. ### File Targets Files the agent should modify or create: - `terraform/dashboards/dora-dashboard.json` — add tier variable, update overview panel queries Files the agent should NOT touch: - `terraform/modules/monitoring/main.tf` — no infra changes needed ### Acceptance Criteria - [ ] Dashboard has a `tier` dropdown: Tier 1 (Production), Tier 1+2 (All Tracked), All - [ ] Overview stat panels filter by `tier=~"$tier"` - [ ] Default selection is Tier 1 (Production) ### Test Expectations - [ ] Manual: verify dropdown appears and filters panels correctly in Grafana ### Constraints - Dashboard JSON is managed in Terraform — changes must be applied via `tofu apply` - Must not break existing `$repo` variable functionality ### Checklist - [ ] PR opened - [ ] Tests pass - [ ] No unrelated changes ### Related - `dora-metrics` — project this affects - `ldraney/DORA#1` — dependency
Author
Owner
Migrated to ldraney/pal-e-platform#427
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/DORA#2
No description provided.