A queryless experience for browsing Prometheus-compatible metrics. Quickly find related metrics without writing PromQL queries.
Grafana Metrics Drilldown transforms how you explore Prometheus-compatible metrics by providing an intuitive, queryless interface. Instead of writing complex PromQL queries, simply click through your metrics to discover insights and relationships.
- π Queryless Exploration: Browse metrics without writing PromQL
- π·οΈ Smart Segmentation: Filter and segment metrics by labels to spot anomalies
- π Auto-Visualization: Optimal chart types selected automatically (gauge vs counter)
- π Metric Relationships: Discover related metrics effortlessly
- π Telemetry Pivoting: Seamlessly jump between metrics and logs
- β‘ Advanced Filtering: Filter by metric name prefixes/suffixes and group by labels
- π± Modern UI: Collapsible sidebar and enhanced user experience
grafana cli plugins install grafana-metricsdrilldown-app
One-click installation available through the Grafana Cloud marketplace.
- Download the latest release from GitHub Releases
- Extract to your Grafana plugins directory (default:
/var/lib/grafana/plugins
) - Restart Grafana
- Enable the plugin in Grafana's plugin configuration
- Navigate to Configuration > Plugins in Grafana
- Find "Grafana Metrics Drilldown" in the Apps section
- Click Config and then Enable
- Navigate to the Metrics Drilldown app in Grafana
- Select a Prometheus-compatible data source
- Filter metrics using the sidebar controls
- Segment data by labels to identify patterns
- Drill down into specific metrics for detailed analysis
- Export or share your findings
- Prefix/Suffix Filtering: Leverage metric naming conventions
- Label Grouping: Group metrics by specific label names
- Pattern Matching: Find metrics matching specific patterns
- Automatic chart type selection based on metric type
- Native histogram support for enhanced detail
- Exemplar integration for trace correlation
Requirement: Prometheus or Prometheus-compatible data sources only
Solution: Ensure your data source supports PromQL queries
- GitHub Issues: Report bugs or request features
- Grafana Community: Community forums
- Grafana Cloud Support: Open a support ticket for urgent issues
- Documentation: Official plugin docs
- Node.js 22+ (required)
- Docker Desktop (or alternative like OrbStack)
- Git
-
Clone the repository
git clone https://github.com/grafana/metrics-drilldown.git cd metrics-drilldown
-
Install dependencies
npm install
-
Start development environment
# Start Grafana server (default port 3001) npm run server # In another terminal, run plugin in watch mode npm run dev
-
Access the plugin Visit
http://localhost:3001/a/grafana-metricsdrilldown-app
Customize the Grafana port via a .env
file:
GRAFANA_PORT=3001
# Run tests in watch mode
npm run tdd
# Run all tests with coverage
npm run test
# End-to-end tests
npm run e2e
# Type checking
npm run typecheck
# Linting
npm run lint
npm run lint:fix
# Build
npm run build
npm run analyze # Bundle analysis
metrics-drilldown/
βββ src/
β βββ WingmanDataTrail/ # Main metrics exploration interface
β βββ autoQuery/ # Automatic query generation for different metric types
β βββ Breakdown/ # Label breakdown and search functionality
β βββ MetricSelect/ # Metric selection interface
β βββ TrailStore/ # State persistence and bookmarks
β βββ tracking/ # Analytics and telemetry (Faro/Rudderstack)
β βββ App/ # Main app components and routing
β βββ utils/ # Shared utilities
βββ e2e/ # Playwright end-to-end tests
βββ docs/ # Documentation
βββ scripts/ # Build and utility scripts
βββ provisioning/ # Grafana/Docker configuration
βββ README.md
We welcome contributions!
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Make your changes following the existing code style
- Test your changes thoroughly
- Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follow TypeScript best practices
- Write tests for new functionality
- Update documentation as needed
- Ensure all tests pass before submitting
- Use meaningful commit messages
- TypeScript (98.7% of codebase)
- ESLint configuration provided
- Prettier formatting enforced
For VSCode users, here's a handy project configuration:
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.validate": ["typescript", "typescriptreact"]
}
This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.
- Plugin Page: Grafana Plugins
- Documentation: Official Docs
- Demo: Grafana Play
- Blog: What's New in Metrics Drilldown
Note: Grafana Metrics Drilldown comes preinstalled by default in all Grafana 12+ instances.
Maintained by Grafana Labs with β€οΈ from the community