Skip to content

All Rules

The Grafana lexicon provides 20 rules: 2 lint rules and 18 post-synth checks.

IDSeverityCategoryDescription
GRAF001errorcorrectnessa uid Grafana rejects, or a variable name queries cannot reference.
GRAF002errorsecuritya datasource or contact point secret written as a literal.

Post-synth checks validate the serialized output after the build pipeline completes.

IDDescription
GRAF101A panel, query, variable or annotation uses a datasource no Datasource or ExternalDatasource in the build declares, or one the build deletes
GRAF102A query is sent to a datasource of another plugin type
GRAF103A query, title, datasource or repeat uses a variable the dashboard does not declare
GRAF104Two dashboards, datasources, folders, panels, variables or queries share an id
GRAF105A panel does not fit the 24-column grid, or overlaps another panel
GRAF106A dashboard, folder or datasource uid Grafana rejects, or a dashboard with no title
GRAF107A dashboard does not match the pinned Grafana schema
GRAF108A query sent to Prometheus is not valid PromQL
GRAF109Dashboard provisioning puts a dashboard somewhere other than its declared folder, or loads it twice
GRAF110A panel or row repeats over a variable that cannot give it more than one value
GRAF111An alert rule’s condition, expression inputs or refIds do not fit together
GRAF112An alert rule queries a datasource the build does not declare, or of another type
GRAF113Alerting routes to a contact point or mute timing the build does not declare, or a policy matcher does not parse
GRAF114An alerting uid, name, title or interval Grafana rejects, or one declared twice
GRAF115A panel unit Grafana doesn’t know, which it shows as a literal suffix
GRAF116A query sent to Loki is not valid LogQL
GRAF117A query sent to Tempo is not valid TraceQL
GRAF118A panel reads a connector metric no collector in the build emits