[release-12.0.2] docs(alerting): Examples of dynamic labels and dynamic thresholds (#106087)
docs(alerting): Examples of dynamic labels and dynamic thresholds (#105776)
* docs(alerting): Add dynamic thresholds example
* update intro
* docs(alerting): Example of dynamic labels
* fix template example
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-thresholds.md
* Update docs/sources/alerting/best-practices/dynamic-thresholds.md
* Update docs/sources/alerting/best-practices/dynamic-thresholds.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* Update docs/sources/alerting/best-practices/dynamic-labels.md
* fix typo
* fix typo
* Add section `CSV data with Infinity` in Table data example
* Link dynamic threshold example to tabular data requirements
* minor copy changes
* minor heading fix
* Add links (admonition) to Grafana Play examples
* Use `Caveat` instead of `Gotcha`
* Dynamic thresholds: caution message when Math operates on missing series
* Exampleof latency threshold based on traffic
---------
(cherry picked from commit c84388f550)
Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
Co-authored-by: Johnny Kartheiser <140559259+JohnnyK-Grafana@users.noreply.github.com>
This commit is contained in:
co-authored by
Pepe Cano
Johnny Kartheiser
parent
54200ca1cc
commit
22b6da78a8
@@ -0,0 +1,10 @@
|
||||
---
|
||||
labels:
|
||||
products:
|
||||
- oss
|
||||
title: 'Math example'
|
||||
---
|
||||
|
||||
- `$A` returns series `{host="web01"} 30` and `{host="web02"} 20`.
|
||||
- `$B` returns series `{host="web01"} 10` and `{host="web02"} 0`.
|
||||
- `$A + $B` returns `{host="web01"} 40` and `{host="web02"} 20`.
|
||||
@@ -5,10 +5,4 @@ labels:
|
||||
title: 'Note Dynamic labels'
|
||||
---
|
||||
|
||||
{{% admonition type="note" %}}
|
||||
|
||||
An alert instance is uniquely identified by its set of labels.
|
||||
|
||||
- Avoid displaying query values in labels, as this can create numerous alert instances—one for each distinct label set. Instead, use annotations for query values.
|
||||
- If a templated label's value changes, it maps to a different alert instance, and the previous instance transitions to the `No data` state when its label value is no longer present.
|
||||
{{% /admonition %}}
|
||||
Pending
|
||||
|
||||
Reference in New Issue
Block a user