From 8429ac0e645555ace57cd8471ec71c709bde437a Mon Sep 17 00:00:00 2001 From: Alexandre Allard Date: Mon, 3 May 2021 11:36:24 +0200 Subject: [PATCH] docs: Add `release` label to prometheusRule example This label is mandatory as it is use by Prometheus to find the rules. Refs: #3293 --- docs/operation/cluster_and_service_configuration.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/operation/cluster_and_service_configuration.rst b/docs/operation/cluster_and_service_configuration.rst index 7247ea1977..474cb46078 100644 --- a/docs/operation/cluster_and_service_configuration.rst +++ b/docs/operation/cluster_and_service_configuration.rst @@ -379,6 +379,7 @@ In order to add Alert rules, a new ``PrometheusRule`` manifest must be created. labels: app: prometheus-operator app.kubernetes.io/name: prometheus-operator + release: prometheus-operator name: namespace: spec: @@ -394,6 +395,11 @@ In order to add Alert rules, a new ``PrometheusRule`` manifest must be created. labels: severity: warning +.. note:: + + All the labels in the example above are mandatory for Prometheus + to take the new rules into account. + Then this manifest must be applied. .. code-block:: shell