All Rules
The Grafana lexicon provides 20 rules: 2 lint rules and 18 post-synth checks.
Lint Rules
Section titled “Lint Rules”| ID | Severity | Category | Description |
|---|---|---|---|
GRAF001 | error | correctness | a uid Grafana rejects, or a variable name queries cannot reference. |
GRAF002 | error | security | a datasource or contact point secret written as a literal. |
Post-Synth Checks
Section titled “Post-Synth Checks”Post-synth checks validate the serialized output after the build pipeline completes.
| ID | Description |
|---|---|
GRAF101 | A panel, query, variable or annotation uses a datasource no Datasource or ExternalDatasource in the build declares, or one the build deletes |
GRAF102 | A query is sent to a datasource of another plugin type |
GRAF103 | A query, title, datasource or repeat uses a variable the dashboard does not declare |
GRAF104 | Two dashboards, datasources, folders, panels, variables or queries share an id |
GRAF105 | A panel does not fit the 24-column grid, or overlaps another panel |
GRAF106 | A dashboard, folder or datasource uid Grafana rejects, or a dashboard with no title |
GRAF107 | A dashboard does not match the pinned Grafana schema |
GRAF108 | A query sent to Prometheus is not valid PromQL |
GRAF109 | Dashboard provisioning puts a dashboard somewhere other than its declared folder, or loads it twice |
GRAF110 | A panel or row repeats over a variable that cannot give it more than one value |
GRAF111 | An alert rule’s condition, expression inputs or refIds do not fit together |
GRAF112 | An alert rule queries a datasource the build does not declare, or of another type |
GRAF113 | Alerting routes to a contact point or mute timing the build does not declare, or a policy matcher does not parse |
GRAF114 | An alerting uid, name, title or interval Grafana rejects, or one declared twice |
GRAF115 | A panel unit Grafana doesn’t know, which it shows as a literal suffix |
GRAF116 | A query sent to Loki is not valid LogQL |
GRAF117 | A query sent to Tempo is not valid TraceQL |
GRAF118 | A panel reads a connector metric no collector in the build emits |