You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/grafana/README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,16 @@ to `global.imageRegistry`. If you were not previously setting `global.image.regi
53
53
is required on upgrade. If you were previously setting `global.image.registry`, you will
54
54
need to instead set `global.imageRegistry`.
55
55
56
+
### To 10.0.0
57
+
58
+
Static alerting resources now support Helm templating. This means that alerting resources loaded from external files (`alerting.*.files`) are now processed by the Helm template engine.
59
+
60
+
If you already use template expressions intended for Alertmanager (for example, `{{ $labels.instance }}`), these must now be escaped to avoid unintended Helm evaluation. To escape them, wrap the braces with an extra layer like this:
61
+
62
+
`{{ "{{" }} $labels.instance {{ "}}" }}`
63
+
64
+
This ensures the expressions are preserved for Alertmanager instead of being rendered by Helm.
65
+
56
66
## Configuration
57
67
58
68
| Parameter | Description | Default |
@@ -168,7 +178,7 @@ need to instead set `global.imageRegistry`.
168
178
|`lifecycleHooks`| Lifecycle hooks for podStart and preStop [Example](https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/#define-poststart-and-prestop-handlers)|`{}`|
@@ -681,7 +691,7 @@ The two possibilities for static alerting resource provisioning are:
681
691
* The format of the files is defined in the [Grafana documentation](https://grafana.com/docs/grafana/next/alerting/set-up/provision-alerting-resources/file-provisioning/) on file provisioning.
682
692
* The chart supports importing YAML and JSON files.
683
693
* The filename must be unique, otherwise one volume mount will overwrite the other.
684
-
* In case of inlining, double curly braces that arise from the Grafana configuration format and are not intended as templates for the chart must be escaped.
694
+
* Alerting configurations support Helm templating. Double curly braces that arise from the Grafana configuration format and are not intended as templates for the chart must be escaped.
685
695
* The number of total files under `alerting:` is not limited. Each file will end up as a volume mount in the corresponding provisioning folder of the deployed Grafana instance.
686
696
* The file size for each import is limited by what the function `.Files.Get` can handle, which suffices for most cases.
0 commit comments