mirror of
https://github.com/grafana/grafana.git
synced 2026-02-19 02:30:53 -05:00
Dashboard Validator App - Prometheus support Validates dashboard compatibility with Prometheus datasources. The app analyzes dashboard queries against available metrics to produce a compatibility score. Backend (Go): - App scaffolding with grafana-app-sdk, custom `/check` endpoint - Prometheus validator: parses PromQL queries, fetches available metrics, and computes per-query and per-datasource compatibility - Metric caching, input validation, request timeouts, and structured error handling (not found, unreachable, auth, timeout) - Custom authorizer with role-based access control - Datasource-scoped validation and variable interpolation support Frontend (React/TypeScript): - API client for the validator backend - Compatibility badge inline on community dashboards - Detail modal showing per-datasource and per-query results - Gated behind dashboardValidatorApp feature flag Tests: - Go unit tests for parser, fetcher, validator, and JSON serialization - Dashboard query extraction tests |
||
|---|---|---|
| .. | ||
| doc.go | ||
| instrumentation_service.go | ||
| instrumentation_service_test.go | ||
| memberlist.go | ||
| module_registerer.go | ||
| module_runner.go | ||
| module_server.go | ||
| module_server_test.go | ||
| operator.go | ||
| ring.go | ||
| runner.go | ||
| search_server_distributor_test.go | ||
| server.go | ||
| server_test.go | ||
| service.go | ||
| test_env.go | ||
| wire.go | ||
| wire_gen.go | ||
| wireexts_oss.go | ||