docs/sources/visualizations/panels-visualizations/configure-thresholds/index.md
In dashboards, a threshold is a value or limit you set for a metric that's reflected visually when it's met or exceeded. Thresholds are one way you can conditionally style and color your visualizations based on query results.
Using thresholds, you can color grid lines and regions in a time series visualization:
You can color the background or value text in a stat visualization:
You can define regions and region colors in a state timeline:
You can also use thresholds to:
{{< docs/play title="Threshold example" url="https://play.grafana.org/d/000000167/" >}}
You can set thresholds in the following visualizations:
{{< column-list >}}
{{< /column-list >}}
On visualizations that support thresholds, Grafana has the following default threshold settings:
You can set the following options to further define how thresholds look.
This number is the value that triggers the threshold. You can also set the color associated with the threshold in this field.
The Base value represents minus infinity. By default, it's set to the color green, which is generally the “good” color.
There are two threshold modes:
{{< admonition type="note" >}} This option is supported for the bar chart, candlestick, time series, and trend visualizations. {{< /admonition>}}
Set if and how thresholds are shown with the following options.
| Option | Example |
|---|---|
| Off | |
| As lines | {{< figure max-width="500px" src="/media/docs/grafana/panels-visualizations/screenshot-thresholds-lines-v10.4.png" alt="Visualization with threshold as a line" >}} |
| As lines (dashed) | {{< figure max-width="500px" src="/media/docs/grafana/panels-visualizations/screenshot-thresholds-dashed-lines-v10.4.png" alt="Visualization with threshold as a dashed line" >}} |
| As filled regions | {{< figure max-width="500px" src="/media/docs/grafana/panels-visualizations/screenshot-thresholds-regions-v10.4.png" alt="Visualization with threshold as a region" >}} |
| As filled regions and lines | {{< figure max-width="500px" src="/media/docs/grafana/panels-visualizations/screenshot-thresholds-lines-regions-v10.4.png" alt="Visualization with threshold as a region and line" >}} |
| As filled regions and lines (dashed) | {{< figure max-width="500px" src="/media/docs/grafana/panels-visualizations/screenshot-thresholds-dashed-lines-regions-v10.4.png" alt="Visualization with threshold as a region and dashed line" >}} |
You can add as many thresholds to a visualization as you want. Grafana automatically sorts thresholds values from highest to lowest.
thresholds in the search bar at the top of the panel edit pane.To delete a threshold, navigate to the panel that contains the threshold and click the trash icon next to the threshold you want to remove.