mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 18:44:54 +08:00

* new refactored panel docs * fixed links * removed xtra sharing link, added links to panel display option tasks * fixed typo * add aliases * incorporate PM feedback * intermediate commit to resolve merge conflict * final changes to resolve merge conflicts
33 lines
1.5 KiB
Markdown
33 lines
1.5 KiB
Markdown
+++
|
|
title = "Add a threshold to a legacy graph panel"
|
|
weight = 40
|
|
aliases = ["/docs/sources/panels/specify-thresholds/add-threshold-to-graph/"]
|
|
+++
|
|
|
|
# Add a threshold to a legacy graph panel
|
|
|
|
In the Graph panel visualization, thresholds enable you to add lines or sections to a graph to make it easier to recognize when the graph crosses a threshold.
|
|
|
|
## Before you begin
|
|
|
|
- [Add a panel to a dashboard]({{< relref "../working-with-panels/add-panel.md" >}}).
|
|
|
|
**To add a threshold to a graph panel**:
|
|
|
|
1. Navigate to the graph panel to which you want to add a threshold.
|
|
1. On the **Panel** tab, click **Thresholds**.
|
|
1. Click **Add threshold**.
|
|
1. Complete the following fields:
|
|
- **T1 -** Both values are required to display a threshold.
|
|
- **lt** or **gt** - Select **lt** for less than or **gt** for greater than to indicate what the threshold applies to.
|
|
- **Value -** Enter a threshold value. Grafana draws a threshold line along the Y-axis at that value.
|
|
- **Color -** Choose a condition that corresponds to a color, or define your own color.
|
|
- **custom -** You define the fill color and line color.
|
|
- **critical -** Fill and line color are red.
|
|
- **warning -** Fill and line color are yellow.
|
|
- **ok -** Fill and line color are green.
|
|
- **Fill -** Controls whether the threshold fill is displayed.
|
|
- **Line -** Controls whether the threshold line is displayed.
|
|
- **Y-Axis -** Choose **left** or **right**.
|
|
1. Click **Save** to save the changes in the dashboard.
|