Skip to content

Metrics profile generator#162

Draft
afcollins wants to merge 2 commits into
cloud-bulldozer:grafana-foundation-sdkfrom
afcollins:metrics-profile-generator
Draft

Metrics profile generator#162
afcollins wants to merge 2 commits into
cloud-bulldozer:grafana-foundation-sdkfrom
afcollins:metrics-profile-generator

Conversation

@afcollins

Copy link
Copy Markdown
Member

Type of change

  • Refactor

Description

Introduces a framework to programmatically build prometheus queries.

Also introduces a query tracker that allows for

  • easy extraction of all source metrics,
  • generation of metrics profiles to collect data to reproduce the dashboards, and
  • generation of dashboards using source or recorded metrics

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

Testing

cd go
go run .
# Import the rendered ocp-performance.json dashboard into grafana and browse data

Add some SNR / NHC panels

Added remaining panels, some light refactoring

Co-Authored-By: Claude Opus 4.6
Signed-off-by: Andrew Collins <ancollin@redhat.com>
Add panelTracker interface, rawTracker, and collected-dashboard support

Add tracker unit and integration tests; fix extractRawMetrics noise

Convert all node rows to unified ocpNodeRow; complete metrics profile coverage

Deduplicate metrics profile; drop role suffix from track names

Update CLAUDE.md and README with Go builder and tracker system docs

Add tracker pattern to etcd dashboard; emit metrics profiles

Add profile merge utility; update CLAUDE.md and README

Fix identRe to capture uppercase metrics like ALERTS

Capture variable query metrics via trackVarQuery

Co-Authored-By: Claude Sonnet 4.6
Signed-off-by: Andrew Collins <ancollin@redhat.com>
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