---
title: "panel-units | Grafana documentation"
description: "Checks that every dashboard panel has a valid unit set."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# `panel-units`

Checks that every panel has a unit specified, and that the unit is valid per the [current list](https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts) 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.
