Skip to content

Conversation

juev
Copy link
Contributor

@juev juev commented Aug 18, 2025

Added new grafana-dashboards linters:

  • Deprecated Panel Types
  • Deprecated Intervals
  • Legacy Alert Rules
  • Datasource Validation
  • Template Variables

Example:

🐒 [grafana (#templates)]
     Message:      Panel 'Incoming Request Duration By Source' uses deprecated type 'graph', consider using
                   'timeseries'
     Module:       istio
     FilePath:     /deckhouse/modules/110-istio/monitoring/grafana-dashboards/istio/service.json

🐒 [grafana (#templates)]
     Message:      Panel 'Incoming Success Rate (non-5xx responses) By Source' uses deprecated type 'graph', consider
                   using 'timeseries'
     Module:       istio
     FilePath:     /deckhouse/modules/110-istio/monitoring/grafana-dashboards/istio/service.json

🐒 [grafana (#templates)]
     Message:      Panel 'Incoming Success Rate (non-5xx responses) By Destination Workload' uses deprecated type
                   'graph', consider using 'timeseries'
     Module:       istio
     FilePath:     /deckhouse/modules/110-istio/monitoring/grafana-dashboards/istio/service.json

🐒 [grafana (#templates)]
     Message:      Panel 'Incoming Request Duration By Service Workload' uses deprecated type 'graph', consider using
                   'timeseries'
     Module:       istio
     FilePath:     /deckhouse/modules/110-istio/monitoring/grafana-dashboards/istio/service.json

- Updated gjson version in go.mod and go.sum.
- Added comprehensive validation rules for Grafana dashboards, including checks for deprecated panel types, intervals, legacy alert rules, and datasource validation.
- Introduced tests for the new validation rules to ensure correctness and reliability.
@juev juev requested a review from ldmonster August 18, 2025 12:58
@juev juev self-assigned this Aug 18, 2025
- Removed outdated gjson version 1.14.4.
- Updated to the latest gjson version 1.18.0 for improved functionality and security.
@juev juev marked this pull request as ready for review August 18, 2025 13:03
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