Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/ai-tools/gcx/resources/linter-rules/dashboard/panel-units.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/ai-tools/gcx/resources/linter-rules/dashboard/panel-units/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
panel-units
Checks that every panel has a unit specified, and that the unit is valid per the current list defined in Grafana.
Best Practice
All panels should have an apprioriate unit set.
Possible exceptions
This rule is automatically excluded when:
- Value mappings are set in a panel.
- A Stat panel is configured to show non-numeric values (like label’s value), for that ‘Fields options’ are configured to any value other than ‘Numeric fields’ (which is default).
Also, a panel may be visualizing something which does not have a predefined unit, or which is self explanatory from the vizualization title. In this case you may wish to create a lint exclusion for this rule.
Was this page helpful?
Related resources from Grafana Labs


