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
| alertmanager.​serviceMonitor.​metricRelabelings | list |`[]`||
137
137
| alertmanager.​serviceMonitor.​relabelings | list |`[]`||
138
-
| alertmanager.​sidecar | object |`{"containerSecurityContext":{"enabled":true,"readOnlyRootFilesystem":true},"defaultFolderName":null,"enableUniqueFilenames":false,"enabled":false,"folder":"/data","folderAnnotation":null,"image":{"repository":"quay.io/kiwigrid/k8s-sidecar","sha":"","tag":"1.10.7"},"imagePullPolicy":"IfNotPresent","label":"cortex_alertmanager","labelValue":null,"resources":{},"searchNamespace":null,"skipTlsVerify":false,"watchMethod":null}`| Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders |
139
-
| alertmanager.​sidecar.​skipTlsVerify | bool |`false`| skipTlsVerify Set to true to skip tls verification for kube api calls |
| alertmanager.​sidecar.​defaultFolderName | string |`""`| The default folder name, it will create a subfolder under the `folder` and put rules in there instead |
141
+
| alertmanager.​sidecar.​enableUniqueFilenames | bool |`false`| A value of true will produce unique filenames to avoid issues when duplicate data keys exist between ConfigMaps and/or Secrets within the same or multiple Namespaces. |
142
+
| alertmanager.​sidecar.​enabled | bool |`false`| Enable sidecar that collect the configmaps with specified label and stores the included files them into the respective folders |
143
+
| alertmanager.​sidecar.​folder | string |`"/data"`| Folder where the files should be placed. |
144
+
| alertmanager.​sidecar.​folderAnnotation | string |`"k8s-sidecar-target-directory"`| The annotation the sidecar will look for in ConfigMaps and/or Secrets to override the destination folder for files. If the value is a relative path, it will be relative to FOLDER |
| alertmanager.​sidecar.​label | string |`"cortex_alertmanager"`| Label that should be used for filtering |
150
+
| alertmanager.​sidecar.​labelValue | string |`""`| The value for the label you want to filter your resources on. Don't set a value to filter by any value |
151
+
| alertmanager.​sidecar.​resource | string |`"both"`| The resource type that the operator will filter for. Can be configmap, secret or both |
| alertmanager.​sidecar.​searchNamespace | string |`""`| The Namespace(s) from which resources will be watched. For multiple namespaces, use a comma-separated string like "default,test". If not set or set to ALL, it will watch all Namespaces. |
154
+
| alertmanager.​sidecar.​skipTlsVerify | bool |`false`| Set to true to skip tls verification for kube api calls |
155
+
| alertmanager.​sidecar.​watchMethod | string |`""`| Determines how kopf-k8s-sidecar will run. If WATCH it will run like a normal operator forever. If LIST it will gather the matching configmaps and secrets currently present, write those files to the destination directory and die |
140
156
| alertmanager.​startupProbe.​failureThreshold | int |`10`||
| ruler.​serviceMonitor.​metricRelabelings | list |`[]`||
639
655
| ruler.​serviceMonitor.​relabelings | list |`[]`||
640
-
| ruler.​sidecar | object |`{"containerSecurityContext":{"enabled":true,"readOnlyRootFilesystem":true},"defaultFolderName":null,"enableUniqueFilenames":false,"enabled":false,"folder":"/tmp/rules","folderAnnotation":null,"image":{"repository":"quay.io/kiwigrid/k8s-sidecar","sha":"","tag":"1.10.7"},"imagePullPolicy":"IfNotPresent","label":"cortex_rules","labelValue":null,"resources":{},"searchNamespace":null,"watchMethod":null}`| Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders |
641
-
| ruler.​sidecar.​defaultFolderName | string |`nil`| The default folder name, it will create a subfolder under the `folder` and put rules in there instead |
642
-
| ruler.​sidecar.​folder | string |`"/tmp/rules"`| folder in the pod that should hold the collected rules (unless `defaultFolderName` is set) |
643
-
| ruler.​sidecar.​folderAnnotation | string |`nil`| If specified, the sidecar will look for annotation with this name to create folder and put graph here. You can use this parameter together with `provider.foldersFromFilesStructure`to annotate configmaps and create folder structure. |
| ruler.​sidecar.​defaultFolderName | string |`""`| The default folder name, it will create a subfolder under the `folder` and put rules in there instead |
659
+
| ruler.​sidecar.​enableUniqueFilenames | bool |`false`| A value of true will produce unique filenames to avoid issues when duplicate data keys exist between ConfigMaps and/or Secrets within the same or multiple Namespaces. |
660
+
| ruler.​sidecar.​enabled | bool |`false`| Enable sidecar that collect the configmaps with specified label and stores the included files them into the respective folders |
661
+
| ruler.​sidecar.​folder | string |`"/tmp/rules"`| Folder where the files should be placed. |
662
+
| ruler.​sidecar.​folderAnnotation | string |`"k8s-sidecar-target-directory"`| The annotation the sidecar will look for in ConfigMaps and/or Secrets to override the destination folder for files. If the value is a relative path, it will be relative to FOLDER |
| ruler.​sidecar.​label | string |`"cortex_rules"`| label that the configmaps with rules are marked with |
645
-
| ruler.​sidecar.​labelValue | string |`nil`| value of label that the configmaps with rules are set to |
646
-
| ruler.​sidecar.​searchNamespace | string |`nil`| If specified, the sidecar will search for rules config-maps inside this namespace. Otherwise the namespace in which the sidecar is running will be used. It's also possible to specify ALL to search in all namespaces |
668
+
| ruler.​sidecar.​labelValue | string |`""`| The value for the label you want to filter your resources on. Don't set a value to filter by any value |
669
+
| ruler.​sidecar.​resource | string |`"both"`| The resource type that the operator will filter for. Can be configmap, secret or both |
| ruler.​sidecar.​searchNamespace | string |`""`| The Namespace(s) from which resources will be watched. For multiple namespaces, use a comma-separated string like "default,test". If not set or set to ALL, it will watch all Namespaces. |
672
+
| ruler.​sidecar.​skipTlsVerify | bool |`false`| Set to true to skip tls verification for kube api calls |
673
+
| ruler.​sidecar.​watchMethod | string |`""`| Determines how kopf-k8s-sidecar will run. If WATCH it will run like a normal operator forever. If LIST it will gather the matching configmaps and secrets currently present, write those files to the destination directory and die |
647
674
| ruler.​startupProbe.​failureThreshold | int |`10`||
Copy file name to clipboardExpand all lines: docs/guides/configure_rules_via_sidecar.markdown
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,14 @@ Cortex can be configured to use a sidecar container in the Ruler and AlertManage
10
10
Put ConfigMaps into the specified namespace, and they are automatically detected and added as files to the Ruler and/or AlertManager containers, both of which are polling for changes on the filesystem and will make the new configurations go live dynamically.
11
11
This feature is disabled by default. Here is a simple example:
12
12
13
+
*Please not that this is only supported with the local or filesystem backend. Otherwise cortex will overwrite what the operator puts in the folder with what is in s3/gcs/azure/swift. Cortex does not 2-way sync the files*
0 commit comments