Skip to content

Grafana metrics dashboard generator for all Lighthouse metrics #7769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jimmygchen
Copy link
Member

@jimmygchen jimmygchen commented Jul 22, 2025

Issue Addressed

This PR adds a ``metrics_dashboard_generator` binary that

  • Automatically scans the Lighthouse codebase for all Prometheus metrics
  • Parses metric definitions from metrics.rs files across all crates
  • Generates a comprehensive Grafana dashboard JSON with panels organized by crate

I've labelled this as do-not-merge because I'm not sure if we want to officially maintain this, but it may be a useful tool to experiment with.

Potential improvements:

  • Infer the correct unit from the metric name

Usage

cargo run --bin metrics_dashboard_generator

This eliminates the need to manually maintain dashboard configurations and ensures all metrics are discoverable and visualized automatically as the codebase evolves.

Output from unstable

image image

@jimmygchen
Copy link
Member Author

Closing this PR as this is not something we will maintain.

@jimmygchen jimmygchen closed this Aug 13, 2025
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.

1 participant