2022-04-23 21:29:16 +08:00
---
aliases:
2022-12-10 00:36:04 +08:00
- ../panels/
- ../panels/configure-thresholds/
- ../panels/specify-thresholds/about-thresholds/
- ../panels/specify-thresholds/add-a-threshold/
- ../panels/specify-thresholds/add-threshold-to-graph/
- ../panels/specify-thresholds/delete-a-threshold/
- ../panels/thresholds/
2023-12-14 05:24:26 +08:00
description: Configure thresholds in your visualizations
Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
labels:
products:
- cloud
- enterprise
- oss
2022-10-12 04:31:20 +08:00
menuTitle: Configure thresholds
title: Configure thresholds
2023-11-28 04:00:57 +08:00
weight: 100
2024-05-21 23:16:47 +08:00
refs:
2024-05-22 22:40:20 +08:00
table:
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/table/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/table/
2024-05-21 23:16:47 +08:00
histogram:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/histogram/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/histogram/
2024-05-22 22:40:20 +08:00
bar-chart:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/bar-chart/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/bar-chart/
time-series:
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/time-series/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/time-series/
2024-05-21 23:16:47 +08:00
trend:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/trend/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/trend/
2024-05-22 22:40:20 +08:00
geomap:
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/geomap/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/geomap/
stat:
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/stat/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/stat/
state-timeline:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/state-timeline/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/state-timeline/
2024-05-21 23:16:47 +08:00
gauge:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/gauge/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/gauge/
2024-05-22 22:40:20 +08:00
bar-gauge:
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/bar-gauge/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/bar-gauge/
canvas:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/canvas/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/canvas/
candlestick:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/candlestick/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/candlestick/
status-history:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/status-history/
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
2024-05-22 22:40:20 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/status-history/
2022-04-23 21:29:16 +08:00
---
2022-10-12 04:31:20 +08:00
# Configure thresholds
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
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.
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
Using thresholds, you can color grid lines and regions in a time series visualization:

2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
You can color the background or value text in a stat visualization:

2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
You can define regions and region colors in a state timeline:

2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
You can also use thresholds to:
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
- Color lines in a time series visualization
- Color the gauge and threshold markers in a gauge
- Color markers in a geomap
- Color cell text or background in a table
2022-04-23 21:29:16 +08:00
2024-04-16 05:16:04 +08:00
{{< docs / play title = "Threshold example" url = "https://play.grafana.org/d/000000167/" > }}
2024-02-03 00:06:36 +08:00
## Supported visualizations
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
You can set thresholds in the following visualizations:
2024-11-27 23:21:33 +08:00
{{< column-list > }}
- [Bar chart ](ref:bar-chart )
- [Bar gauge ](ref:bar-gauge )
- [Candlestick ](ref:candlestick )
- [Canvas ](ref:canvas )
- [Gauge ](ref:gauge )
- [Geomap ](ref:geomap )
- [Histogram ](ref:histogram )
- [Stat ](ref:stat )
- [State timeline ](ref:state-timeline )
- [Status history ](ref:status-history )
- [Table ](ref:table )
- [Time series ](ref:time-series )
- [Trend ](ref:trend )
{{< / column-list > }}
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
## Default thresholds
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
On visualizations that support thresholds, Grafana has the following default threshold settings:
2022-04-23 21:29:16 +08:00
- 80 = red
- Base = green
- Mode = Absolute
2024-12-13 15:42:30 +08:00
- Show thresholds = Off (for some visualizations); for more information, see the [Show thresholds ](#show-thresholds ) option.
2024-02-03 00:06:36 +08:00
## Thresholds options
You can set the following options to further define how thresholds look.
### Threshold value
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.
### Thresholds mode
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
There are two threshold modes:
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
- **Absolute** thresholds are defined by a number. For example, 80 on a scale of 1 to 150.
- **Percentage** thresholds are defined relative to minimum or maximum. For example, 80 percent.
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
### Show thresholds
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
{{< admonition type = "note" > }}
This option is supported for the bar chart, candlestick, time series, and trend visualizations.
{{< / admonition > }}
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
Set if and how thresholds are shown with the following options.
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
| 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" > }} |
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
## Add a threshold
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
You can add as many thresholds to a visualization as you want. Grafana automatically sorts thresholds values from highest to lowest.
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
1. Navigate to the panel you want to update.
1. Hover over any part of the panel you want to work on to display the menu on the top right corner.
1. Click the menu and select **Edit** .
1. Scroll to the **Thresholds** section or enter `thresholds` in the search bar at the top of the panel edit pane.
1. Click ** + Add threshold**.
1. Enter a new threshold value or use the up and down arrows at the right side of the field to increase or decrease the value incrementally.
1. Click the colored circle to the left of the threshold value to open the color picker, where you can update the threshold color.
1. Under **Thresholds mode** , select either **Absolute** or **Percentage** .
1. Under **Show thresholds** , set how the threshold is displayed or turn it off.
2024-06-20 21:53:21 +08:00
1. Click **Save dashboard** .
1. Click **Back to dashboard** and then **Exit edit** .
2022-04-23 21:29:16 +08:00
2024-02-03 00:06:36 +08:00
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.