Skip to content

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