1# Default values for kube-prometheus-stack.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
5## Provide a name in place of kube-prometheus-stack for `app:` labels
8## Override the deployment namespace
11## Provide a k8s version to auto dashboard import script example: kubeTargetVersionOverride: 1.26.6
13kubeTargetVersionOverride: ""
14## Allow kubeVersion to be overridden while creating the ingress
16kubeVersionOverride: ""
17## Provide a name to substitute for the full names of resources
20## Labels to apply to all resources
26## Install Prometheus Operator CRDs
30 ## The CRD upgrade job mitigates the limitation of helm not being able to upgrade CRDs.
31 ## The job will apply the CRDs to the cluster before the operator is deployed, using helm hooks.
32 ## It deploys a corresponding clusterrole, clusterrolebinding and serviceaccount to apply the CRDs.
33 ## This feature is in preview, off by default and may change in the future.
36 ## Force apply the CRDs, taking ownership from the manager that installed them (e.g. helm).
37 ## Required for the job to actually upgrade CRDs whose schema/version changed.
42 repository: chainguard-private/busybox
43 tag: glibc-1.38.0-r4@sha256:c9bf20fc544edce1905f6679822ca672c33e89576b8e5483f0da1cfb335b9af0
45 pullPolicy: IfNotPresent
48 repository: chainguard-private/kubectl
50 sha: sha256:c912ad3f0c21d72422db5614e88ca8bd7967039116d95fb91c74162d1968a841
51 pullPolicy: IfNotPresent
53 ## Define resources requests and limits for single Pods.
54 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
60 ## Additional volume mounts
63 ## Define which Nodes the Pods are scheduled on.
64 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
67 kubernetes.io/os: linux
68 ## Assign custom affinity rules to the upgrade-crd job
69 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
73 # requiredDuringSchedulingIgnoredDuringExecution:
76 # - key: kubernetes.io/e2e-az-name
82 ## If specified, the pod's tolerations.
83 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
89 # effect: "NoSchedule"
91 ## If specified, the pod's topology spread constraints.
92 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
94 topologySpreadConstraints: []
96 # topologyKey: topology.kubernetes.io/zone
97 # whenUnsatisfiable: DoNotSchedule
102 # ## Labels to add to the upgrade-crd job
105 ## Annotations to add to the upgrade-crd job
108 ## Labels to add to the upgrade-crd pod
111 ## Annotations to add to the upgrade-crd pod
114 ## Service account for upgrade crd job to use.
115 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
122 automountServiceAccountToken: true
123 ## Automounting API credentials for upgrade crd job pod.
125 automountServiceAccountToken: true
126 ## Container-specific security context configuration
127 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
129 containerSecurityContext:
130 allowPrivilegeEscalation: false
131 readOnlyRootFilesystem: true
135 ## SecurityContext holds pod-level security attributes and common container settings.
136 ## This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false
137 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
146## Custom rules to override "for" and "severity" in defaultRules
149# AlertmanagerFailedReload:
151# AlertmanagerMembersInconsistent:
155## Create default rules for monitoring the cluster
162 configReloaders: true
164 k8sContainerCpuUsageSecondsTotal: true
165 k8sContainerMemoryCache: true
166 k8sContainerMemoryRss: true
167 k8sContainerMemorySwap: true
168 k8sContainerResource: true
169 k8sContainerMemoryWorkingSetBytes: true
171 kubeApiserverAvailability: true
172 kubeApiserverBurnrate: true
173 kubeApiserverHistogram: true
174 kubeApiserverSlos: true
175 kubeControllerManager: true
178 kubePrometheusGeneral: true
179 kubePrometheusNodeRecording: true
181 kubernetesResources: true
182 kubernetesStorage: true
183 kubernetesSystem: true
184 kubeSchedulerAlerting: true
185 kubeSchedulerRecording: true
186 kubeStateMetrics: true
189 nodeExporterAlerting: true
190 nodeExporterRecording: true
192 prometheusOperator: true
194 # Defines the operator for namespace selection in rules
195 # Use "=~" to include namespaces matching the pattern (default)
196 # Use "!~" to exclude namespaces matching the pattern
197 appNamespacesOperator: "=~"
198 ## Reduce app namespace alert scope
199 appNamespacesTarget: ".*"
200 ## Set keep_firing_for for all alerts
202 ## Labels for default rules
204 ## Annotations for default rules
206 ## Additional labels for PrometheusRule alerts
207 additionalRuleLabels: {}
208 ## Additional annotations for specific PrometheusRule alerts by alert name
209 additionalRuleAnnotations: {}
210 ## Additional labels for specific PrometheusRule alert groups
211 additionalRuleGroupLabels:
216 k8sContainerCpuUsageSecondsTotal: {}
217 k8sContainerMemoryCache: {}
218 k8sContainerMemoryRss: {}
219 k8sContainerMemorySwap: {}
220 k8sContainerResource: {}
222 kubeApiserverAvailability: {}
223 kubeApiserverBurnrate: {}
224 kubeApiserverHistogram: {}
225 kubeApiserverSlos: {}
226 kubeControllerManager: {}
229 kubePrometheusGeneral: {}
230 kubePrometheusNodeRecording: {}
232 kubernetesResources: {}
233 kubernetesStorage: {}
235 kubeSchedulerAlerting: {}
236 kubeSchedulerRecording: {}
240 nodeExporterAlerting: {}
241 nodeExporterRecording: {}
243 prometheusOperator: {}
244 ## Additional annotations for specific PrometheusRule alert groups
245 additionalRuleGroupAnnotations:
250 k8sContainerCpuUsageSecondsTotal: {}
251 k8sContainerMemoryCache: {}
252 k8sContainerMemoryRss: {}
253 k8sContainerMemorySwap: {}
254 k8sContainerResource: {}
256 kubeApiserverAvailability: {}
257 kubeApiserverBurnrate: {}
258 kubeApiserverHistogram: {}
259 kubeApiserverSlos: {}
260 kubeControllerManager: {}
263 kubePrometheusGeneral: {}
264 kubePrometheusNodeRecording: {}
266 kubernetesResources: {}
267 kubernetesStorage: {}
269 kubeSchedulerAlerting: {}
270 kubeSchedulerRecording: {}
274 nodeExporterAlerting: {}
275 nodeExporterRecording: {}
277 prometheusOperator: {}
278 additionalAggregationLabels: []
279 ## Prefix for runbook URLs. Use this to override the first part of the runbookURLs that is common to all rules.
280 runbookUrl: "https://runbooks.prometheus-operator.dev/runbooks"
281 ## Thresholds for kubelet certificate expiration alerts (in seconds)
282 kubeletServerCertificateExpiration:
283 warning: 604800 # 7 days
284 critical: 86400 # 1 day
285 kubeletClientCertificateExpiration:
286 warning: 604800 # 7 days
287 critical: 86400 # 1 day
289 fsSelector: 'fstype!=""'
290 # fsSelector: 'fstype=~"ext[234]|btrfs|xfs|zfs"'
291 diskDeviceSelector: 'device=~"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)"'
292 ## Disabled PrometheusRule alerts
295 # NodeRAIDDegraded: true
296## Deprecated way to provide custom recording or alerting rules to be deployed into the cluster.
298# additionalPrometheusRules: []
299# - name: my-rule-file
304# expr: 100 * my_record
306## Provide custom recording or alerting rules to be deployed into the cluster.
308additionalPrometheusRulesMap: {}
314# expr: 100 * my_record
320 ## Create ClusterRoles that extend the existing view, edit and admin ClusterRoles to interact with prometheus-operator CRDs
321 ## Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
322 createAggregateClusterRoles: false
323 ## Global image registry to use if it needs to be overridden for some specific use cases (e.g. local registries, custom images, ...)
326 ## Reference to one or more secrets to be used when pulling images
327 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
330 # - name: "image-pull-secret"
332 # - "image-pull-secret"
334 ## Deploys the windows-exporter and Windows-specific dashboards and rules (job name must be 'windows-exporter')
336## Configuration for prometheus-windows-exporter
337## ref: https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-windows-exporter
339prometheus-windows-exporter:
340 ## Enable ServiceMonitor and set Kubernetes label to use as a job label
347 ## Set job label to 'windows-exporter' as required by the default Prometheus rules and Grafana dashboards
350 jobLabel: windows-exporter
351 ## Enable memory and container metrics as required by the default Prometheus rules and Grafana dashboards
355 enabled: '[defaults],memory,container'
356## Configuration for alertmanager
357## ref: https://prometheus.io/docs/alerting/alertmanager/
360 ## Deploy alertmanager
363 # Optional: Override the namespace where Alertmanager will be deployed.
364 namespaceOverride: ""
365 ## Annotations for Alertmanager
368 ## Additional labels for Alertmanager
371 ## API that Prometheus will use to communicate with alertmanager. Possible values are v1, v2
374 ## @param alertmanager.enableFeatures Enable access to Alertmanager disabled features.
377 ## Create dashboard configmap even if alertmanager deployment has been disabled
379 forceDeployDashboards: false
380 ## Network Policy configuration
383 # -- Enable network policy for Alertmanager
385 # -- Define policy types. If egress is enabled, both Ingress and Egress will be used
386 # Valid values are ["Ingress"] or ["Ingress", "Egress"]
390 # -- Gateway (formerly ingress controller) configuration
393 # -- Gateway namespace
396 # -- Gateway pod labels
399 # app.kubernetes.io/name: ingress-nginx
400 # -- Additional custom ingress rules
402 additionalIngress: []
404 # - namespaceSelector:
406 # name: another-namespace
413 # app.kubernetes.io/name: loki
418 # -- Configure egress rules
421 # -- Enable egress rules. When enabled, policyTypes will include Egress
424 # -- Custom egress rules
428 # - namespaceSelector: {}
435 # -- Enable rules for alertmanager cluster traffic
437 enableClusterRules: true
438 # -- Configure monitoring component rules
441 # -- Enable ingress from Prometheus
444 # -- Enable ingress for config reloader metrics
447 ## Service account for Alertmanager to use.
448 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
454 automountServiceAccountToken: true
455 ## Configure pod disruption budgets for Alertmanager
456 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
462 unhealthyPodEvictionPolicy: AlwaysAllow
463 ## Enable vertical pod autoscaler support for Alertmanager
464 ## ref: https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler
466 verticalPodAutoscaler:
468 # Recommender responsible for generating recommendation for the object.
469 # List should be empty (then the default recommender will generate the recommendation)
470 # or contain exactly one recommender.
472 # - name: custom-recommender-performance
474 # List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
475 controlledResources: []
476 # Specifies which resource values should be controlled: RequestsOnly or RequestsAndLimits.
477 # controlledValues: RequestsAndLimits
479 # Define the max allowed resources for the pod
483 # Define the min allowed resources for the pod
489 # Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
490 # are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "InPlaceOrRecreate".
492 ## Alertmanager configuration directives
493 ## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file
494 ## https://prometheus.io/webtools/alerting/routing-tree-editor/
501 - 'severity = critical'
503 - 'severity =~ warning|info'
508 - 'severity = warning'
515 - 'alertname = InfoInhibitor'
521 - 'alertname = InfoInhibitor'
523 group_by: ['namespace']
531 - alertname = "Watchdog"
535 - '/etc/alertmanager/config/*.tmpl'
536 ## Alertmanager configuration directives (as string type, preferred over the config hash map)
537 ## stringConfig will be used only if tplConfig is true
538 ## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file
539 ## https://prometheus.io/webtools/alerting/routing-tree-editor/
542 ## Pass the Alertmanager configuration directives through Helm's templating
543 ## engine. If the Alertmanager configuration contains Alertmanager templates,
544 ## they'll need to be properly escaped so that they are not interpreted by
546 ## ref: https://helm.sh/docs/developing_charts/#using-the-tpl-function
547 ## https://prometheus.io/docs/alerting/configuration/#tmpl_string
548 ## https://prometheus.io/docs/alerting/notifications/
549 ## https://prometheus.io/docs/alerting/notification_examples/
551 ## Alertmanager template files to format alerts
552 ## By default, templateFiles are placed in /etc/alertmanager/config/ and if
553 ## they have a .tmpl file suffix will be loaded. See config.templates above
554 ## to change, add other suffixes. If adding other suffixes, be sure to update
555 ## config.templates above to include those suffixes.
556 ## ref: https://prometheus.io/docs/alerting/notifications/
557 ## https://prometheus.io/docs/alerting/notification_examples/
561 ## An example template:
562 # template_1.tmpl: |-
563 # {{ define "cluster" }}{{ .ExternalURL | reReplaceAll ".*alertmanager\\.(.*)" "$1" }}{{ end }}
565 # {{ define "slack.myorg.text" }}
567 # {{ range .Alerts }}
568 # *Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}`
569 # *Cluster:* {{ template "cluster" $root }}
570 # *Description:* {{ .Annotations.description }}
571 # *Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:>
572 # *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:>
574 # {{ range .Labels.SortedPairs }} - *{{ .Name }}:* `{{ .Value }}`
584 ## Override ingress to a different defined port on the service
586 ## Override ingress to a different service then the default, this is useful if you need to
587 ## point to a specific instance of the alertmanager (eg kube-prometheus-stack-alertmanager-0)
588 # serviceName: kube-prometheus-stack-alertmanager-0
590 ## Hosts must be provided if Ingress is enabled.
593 # - alertmanager.domain.com
595 ## Paths to use for ingress rules - one path should match the alertmanagerSpec.routePrefix
600 ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
601 ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
602 # pathType: ImplementationSpecific
604 ## TLS configuration for Alertmanager Ingress
605 ## Secret must be manually created in the namespace
608 # - secretName: alertmanager-general-tls
610 # - alertmanager.example.com
611 # -- BETA: Configure the gateway routes for the chart here.
612 # More routes can be added by adding a dictionary key like the 'main' route.
613 # Be aware that this is an early beta of this feature,
614 # kube-prometheus-stack does not guarantee this works and is subject to change.
615 # Being BETA this can/will change in the future without notice, do not use unless you want to take that risk
616 # [[ref]](https://gateway-api.sigs.k8s.io/reference/api-spec/main/spec/#gatewaynetworkingk8siov1alpha2)
619 # -- Enables or disables the route
621 # -- Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
622 apiVersion: gateway.networking.k8s.io/v1
623 # -- Set the route kind
624 # Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
629 # - my-filter.example.com
633 # -- create http route for redirect (https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/#http-to-https-redirects)
634 ## Take care that you only enable this on the http listener of the gateway to avoid an infinite redirect.
635 ## matches, filters and additionalRules will be ignored if this is set to true. Be are
641 ## Filters define the filters that are applied to requests that match this rule.
643 ## Timeouts for the generated HTTPRoute backend rule.
644 ## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
647 # backendRequest: 60s
649 ## Session persistence configuration for the route rule.
650 sessionPersistence: {}
653 # absoluteTimeout: 12h
655 # lifetimeType: Permanent
657 ## Additional custom rules that can be added to the route
659 ## Configuration for Alertmanager secret
663 ## Configuration for creating an Ingress that will map to each Alertmanager replica service
664 ## alertmanager.servicePerReplica must be enabled
671 ## Final form of the hostname for each per replica ingress is
672 ## {{ ingressPerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ ingressPerReplica.hostDomain }}
674 ## Prefix for the per replica ingress that will have `-$replicaNumber`
675 ## appended to the end
677 ## Domain that will be used for the per replica ingress
679 ## Paths to use for ingress rules
684 ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
685 ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
686 # pathType: ImplementationSpecific
688 ## Secret name containing the TLS certificate for alertmanager per replica ingress
689 ## Secret must be manually created in the namespace
691 ## Separated secret for each per replica Ingress. Can be used together with cert-manager
695 ## Final form of the secret for each per replica ingress is
696 ## {{ tlsSecretPerReplica.prefix }}-{{ $replicaNumber }}
698 prefix: "alertmanager"
699 ## Configuration for creating a Gateway API route that will map to each Alertmanager replica service
700 ## alertmanager.servicePerReplica must be enabled
704 # -- Enables or disables the routePerReplica
706 # -- Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
707 apiVersion: gateway.networking.k8s.io/v1
708 # -- Set the route kind
709 # Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
713 ## Final form of the hostname for each per replica route is
714 ## {{ routePerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ routePerReplica.hostDomain }}
716 ## Prefix for the per replica route that will have `-$replicaNumber` appended to the end
718 ## Domain that will be used for the per replica route
723 # -- create http route for redirect (https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/#http-to-https-redirects)
724 ## Take care that you only enable this on the http listener of the gateway to avoid an infinite redirect.
725 ## matches, filters and additionalRules will be ignored if this is set to true.
727 ## Filters define the filters that are applied to requests that match this rule.
733 ## Timeouts for the generated HTTPRoute backend rule.
734 ## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
737 # backendRequest: 60s
739 ## Session persistence configuration for the route rule.
740 sessionPersistence: {}
743 # absoluteTimeout: 12h
745 # lifetimeType: Permanent
747 ## Additional custom rules that can be added to the route
749 ## Configuration for Alertmanager service
758 ipFamilies: ["IPv6", "IPv4"]
759 ipFamilyPolicy: "PreferDualStack"
760 ## Port for Alertmanager Service to listen on
763 ## Port for Alertmanager cluster communication
766 ## To be used with a proxy extraContainer port
769 ## Port to expose on each node
770 ## Only used if service.type is 'NodePort'
773 ## List of IP addresses at which the Prometheus server service is available
774 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
777 ## Additional ports to open for Alertmanager service
780 # - name: oauth-proxy
783 # - name: oauth-metrics
789 loadBalancerSourceRanges: []
790 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
792 externalTrafficPolicy: Cluster
793 ## If you want to make sure that connections from a particular client are passed to the same Pod each time
794 ## Accepts 'ClientIP' or 'None'
796 sessionAffinity: None
797 ## If you want to modify the ClientIP sessionAffinity timeout
798 ## The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP"
800 sessionAffinityConfig:
802 timeoutSeconds: 10800
803 ## Preference for routing traffic to the Service's endpoints, e.g. PreferClose to keep traffic in the client's zone
804 ## Requires Kubernetes >= 1.31; newer versions also accept PreferSameZone and PreferSameNode. Not rendered when empty
805 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
807 trafficDistribution: ""
811 ## Configuration for creating a separate Service for each statefulset Alertmanager replica
816 ## Port for Alertmanager Service per replica to listen on
819 ## To be used with a proxy extraContainer port
821 ## Port to expose on each node
822 ## Only used if servicePerReplica.type is 'NodePort'
825 ## Loadbalancer source IP ranges
826 ## Only used if servicePerReplica.type is "LoadBalancer"
827 loadBalancerSourceRanges: []
828 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
830 externalTrafficPolicy: Cluster
834 ## Configuration for creating a ServiceMonitor for AlertManager
837 ## If true, a ServiceMonitor will be created for the AlertManager service.
840 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
846 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
847 ## If not set, the default scrape class (if any) is used.
850 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
853 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
856 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
859 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
861 labelNameLengthLimit: 0
862 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
864 labelValueLengthLimit: 0
865 ## proxyUrl: URL of a proxy that should be used for scraping.
868 ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
870 ## enableHttp2: Whether to enable HTTP2.
871 ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
873 ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
874 ## Of type: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#tlsconfig
877 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
878 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
880 metricRelabelings: []
882 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
883 # sourceLabels: [__name__]
885 ## RelabelConfigs to apply to samples before scraping
886 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
889 # - sourceLabels: [__meta_kubernetes_pod_node_name]
892 # targetLabel: nodename
896 ## Additional Endpoints
898 additionalEndpoints: []
899 # - port: oauth-metrics
901 ## Settings affecting alertmanagerSpec
902 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#alertmanagerspec
905 ## Statefulset's persistent volume claim retention policy
906 ## whenDeleted and whenScaled determine whether
907 ## statefulset's PVCs are deleted (true) or retained (false)
908 ## on scaling down and deleting statefulset, respectively.
909 ## Requires Kubernetes version 1.27.0+.
910 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
911 persistentVolumeClaimRetentionPolicy: {}
912 # whenDeleted: Retain
915 ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
916 ## Metadata Labels and Annotations gets propagated to the Alertmanager pods.
921 ## Image of Alertmanager
925 repository: chainguard-private/prometheus-alertmanager
927 sha: sha256:090c0e73fc3e07922eae361769e86a6a8bbb7544e69ce0d2bef8f164008fb3fa
928 pullPolicy: IfNotPresent
929 ## If true then the user will be responsible to provide a secret with alertmanager configuration
930 ## So when true the config part will be ignored (including templateFiles) and the one in the secret will be used
932 useExistingSecret: false
933 ## Secrets is a list of Secrets in the same namespace as the Alertmanager object, which shall be mounted into the
934 ## Alertmanager Pods. The Secrets are mounted into /etc/alertmanager/secrets/.
937 ## Whether to mount a service account token into the Alertmanager Pods.
938 ## Alertmanager and its config-reloader do not call the Kubernetes API, so no token is mounted by default.
939 ## Set to true if you add containers to the Pods that need API credentials.
941 automountServiceAccountToken: false
942 ## ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods.
943 ## The ConfigMaps are mounted into /etc/alertmanager/configmaps/.
946 ## ConfigSecret is the name of a Kubernetes Secret in the same namespace as the Alertmanager object, which contains configuration for
947 ## this Alertmanager instance. Defaults to 'alertmanager-' The secret is mounted into /etc/alertmanager/config.
951 ## WebTLSConfig defines the TLS parameters for HTTPS
952 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#alertmanagerwebspec
954 ## AlertmanagerConfigs to be selected to merge and configure Alertmanager with.
956 alertmanagerConfigSelector: {}
957 ## Example which selects all alertmanagerConfig resources
958 ## with label "alertconfig" with values any of "example-config" or "example-config-2"
959 # alertmanagerConfigSelector:
967 ## Example which selects all alertmanagerConfig resources with label "role" set to "example-config"
968 # alertmanagerConfigSelector:
970 # role: example-config
972 ## Namespaces to be selected for AlertmanagerConfig discovery. If nil, only check own namespace.
974 alertmanagerConfigNamespaceSelector: {}
975 ## Example which selects all namespaces
976 ## with label "alertmanagerconfig" with values any of "example-namespace" or "example-namespace-2"
977 # alertmanagerConfigNamespaceSelector:
979 # - key: alertmanagerconfig
982 # - example-namespace
983 # - example-namespace-2
985 ## Example which selects all namespaces with label "alertmanagerconfig" set to "enabled"
986 # alertmanagerConfigNamespaceSelector:
988 # alertmanagerconfig: enabled
990 ## AlermanagerConfig to be used as top level configuration
992 alertmanagerConfiguration: {}
993 ## Example with select a global alertmanagerconfig
994 # alertmanagerConfiguration:
995 # name: global-alertmanager-Configuration
997 ## Defines how the operator handles AlertmanagerConfig resources that reference the
998 ## Alertmanager container's filesystem rather than a secret key, such as a Telegram receiver
999 ## using botTokenFile. Anyone able to create an AlertmanagerConfig could otherwise read files
1000 ## out of the container. One of AllowAll, FromAlertmanagerConfigMatcherStrategy or DenyAll.
1001 ## Leave empty to use the operator's own default.
1003 alertmanagerConfigFileSystemMode: ""
1004 ## Defines the strategy used by AlertmanagerConfig objects to match alerts. eg:
1006 alertmanagerConfigMatcherStrategy: {}
1007 ## Example with use OnNamespace strategy
1008 # alertmanagerConfigMatcherStrategy:
1011 ## Additional command line arguments to pass to Alertmanager (in addition to those generated by the chart)
1013 ## Define Log Format
1014 # Use logfmt (default) or json logging
1016 ## Log level for Alertmanager to be configured with.
1019 ## Size is the expected size of the alertmanager cluster. The controller will eventually make the size of the
1020 ## running cluster equal to the expected size.
1022 ## Time duration Alertmanager shall retain data for. Default is '120h', and must match the regular expression
1023 ## [0-9]+(ms|s|m|h) (milliseconds seconds minutes hours).
1026 ## Storage is the definition of how storage will be used by the Alertmanager instances.
1027 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/platform/storage.md
1030 # volumeClaimTemplate:
1032 # storageClassName: gluster
1033 # accessModes: ["ReadWriteOnce"]
1039 ## The external URL the Alertmanager instances will be available under. This is necessary to generate correct URLs. This is necessary if Alertmanager is not served from root of a DNS name. string false
1042 ## The route prefix Alertmanager registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true,
1043 ## but the server serves requests under a different route prefix. For example for use with kubectl proxy.
1046 ## scheme: HTTP scheme to use. Can be used with `tlsConfig` for example if using istio mTLS.
1048 ## tlsConfig: TLS configuration to use when connect to the endpoint. For example if using istio mTLS.
1049 ## Of type: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#tlsconfig
1051 ## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
1054 ## Define which Nodes the Pods are scheduled on.
1055 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
1058 kubernetes.io/os: linux
1059 ## Define resources requests and limits for single Pods.
1060 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
1066 ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
1067 ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
1068 ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
1069 ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
1071 podAntiAffinity: "soft"
1072 ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
1073 ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
1075 podAntiAffinityTopologyKey: kubernetes.io/hostname
1076 ## Assign custom affinity rules to the alertmanager instance
1077 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1081 # requiredDuringSchedulingIgnoredDuringExecution:
1082 # nodeSelectorTerms:
1083 # - matchExpressions:
1084 # - key: kubernetes.io/e2e-az-name
1090 ## If specified, the pod's tolerations.
1091 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
1097 # effect: "NoSchedule"
1099 ## If specified, the pod's topology spread constraints.
1100 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
1102 topologySpreadConstraints: []
1104 # topologyKey: topology.kubernetes.io/zone
1105 # whenUnsatisfiable: DoNotSchedule
1110 ## SecurityContext holds pod-level security attributes and common container settings.
1111 ## This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false
1112 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1120 type: RuntimeDefault
1121 ## Use the host's user namespace for Alertmanager pods.
1122 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/
1124 ## DNS configuration for Alertmanager.
1125 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.PodDNSConfig
1127 ## DNS policy for Alertmanager.
1128 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#dnspolicystring-alias
1130 ## Enable hostNetwork for Alertmanager.
1132 ## ListenLocal makes the Alertmanager server listen on loopback, so that it does not bind against the Pod IP.
1133 ## Note this is only for the Alertmanager UI, not the gossip communication.
1136 ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an Alertmanager pod.
1140 # - name: oauth-proxy
1141 # image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.6
1143 # - --upstream=http://127.0.0.1:9093
1144 # - --http-address=0.0.0.0:8081
1145 # - --metrics-address=0.0.0.0:8082
1148 # - containerPort: 8081
1151 # - containerPort: 8082
1152 # name: oauth-metrics
1156 # Additional volumes on the output StatefulSet definition.
1158 # Additional VolumeMounts on the output StatefulSet definition.
1160 ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
1161 ## (permissions, dir tree) on mounted volumes before starting prometheus
1163 ## Priority class assigned to the Pods
1165 priorityClassName: ""
1166 ## AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.
1169 ## PortName to use for Alert Manager.
1171 portName: "http-web"
1172 ## ClusterAdvertiseAddress is the explicit address to advertise in cluster. Needs to be provided for non RFC1918 [1] (public) addresses. [1] RFC1918: https://tools.ietf.org/html/rfc1918
1174 clusterAdvertiseAddress: false
1175 ## clusterGossipInterval determines interval between gossip attempts.
1176 ## Needs to be specified as GoDuration, a time duration that can be parsed by Go's time.ParseDuration() (e.g. 45ms, 30s, 1m, 1h20m15s)
1177 clusterGossipInterval: ""
1178 ## clusterPeerName defines the name this instance advertises to other cluster peers, defaulting to the pod name.
1179 ## Literal values and references to environment variables available in the container (e.g. "$(POD_NAME).$(NAMESPACE)") are both accepted.
1180 ## Requires Alertmanager >= v0.30.0.
1182 ## clusterPeerTimeout determines timeout for cluster peering.
1183 ## Needs to be specified as GoDuration, a time duration that can be parsed by Go's time.ParseDuration() (e.g. 45ms, 30s, 1m, 1h20m15s)
1184 clusterPeerTimeout: ""
1185 ## clusterPushpullInterval determines interval between pushpull attempts.
1186 ## Needs to be specified as GoDuration, a time duration that can be parsed by Go's time.ParseDuration() (e.g. 45ms, 30s, 1m, 1h20m15s)
1187 clusterPushpullInterval: ""
1188 ## clusterLabel defines the identifier that uniquely identifies the Alertmanager cluster.
1190 ## ForceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.
1191 ## Use case is e.g. spanning an Alertmanager cluster across Kubernetes clusters with a single replica in each.
1192 forceEnableClusterMode: false
1193 ## Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to
1194 ## be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).
1196 ## Pod management policy. Kubernetes default is OrderedReady but prometheus-operator default is Parallel.
1197 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
1198 podManagementPolicy: ""
1199 ## Update strategy for the StatefulSet.
1200 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1202 # type: RollingUpdate
1206 ## Duration in seconds the pod needs to terminate gracefully.
1207 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination
1208 terminationGracePeriodSeconds: ~
1209 ## EnableServiceLinks indicates whether information about services should be injected into the
1210 ## pod's environment variables. Uses the operator/Kubernetes default when left unset (~).
1211 enableServiceLinks: ~
1212 ## Set the scheduler name to use for the Alertmanager pods.
1214 ## Pods' hostAliases configuration
1215 ## ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1221 ## Limits defines the Alertmanager limits command line flags. Requires Alertmanager >= v0.28.0.
1222 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.AlertmanagerLimitsSpec
1225 # maxPerSilenceBytes: 1MB
1227 ## ClusterTLS defines the mutual TLS configuration for the Alertmanager cluster's gossip protocol.
1228 ## Requires Alertmanager >= v0.24.0.
1229 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.ClusterTLSConfig
1231 ## Additional configuration which is not covered by the properties above. (passed through tpl)
1232 additionalConfig: {}
1233 ## Additional configuration which is not covered by the properties above.
1234 ## Useful, if you need advanced templating inside alertmanagerSpec.
1235 ## Otherwise, use alertmanager.alertmanagerSpec.additionalConfig (passed through tpl)
1236 additionalConfigString: ""
1237 ## ExtraSecret can be used to store various data in an extra secret
1238 ## (use it for example to store hashed basic auth credentials)
1240 ## if not set, name will be auto generated
1245 # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
1246 # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
1247## Using default values from https://github.com/grafana-community/helm-charts/blob/main/charts/grafana/values.yaml
1251 namespaceOverride: ""
1252 ## ForceDeployDatasources Create datasource configmap even if grafana deployment has been disabled
1254 forceDeployDatasources: false
1255 ## ForceDeployDashboard Create dashboard configmap even if grafana deployment has been disabled
1257 forceDeployDashboards: false
1258 ## Deploy default dashboards
1260 defaultDashboardsEnabled: true
1261 ## Deploy GrafanaDashboard CRDs that reference dashboards from ConfigMaps when grafana-operator is used
1262 ## These settings control how dashboards are integrated with the Grafana Operator
1263 ## Note: With operator.datasourcesEnabled disabled, end users still need to create their own
1264 ## kind: GrafanaDatasource for Prometheus
1266 ## apiVersion: grafana.integreatly.org/v1beta1
1267 ## kind: GrafanaDatasource
1272 ## allowCrossNamespaceImport: true
1273 ## instanceSelector:
1280 ## url: http://prometheus-operated.prometheus-stack.svc.cluster.local:9090
1283 ## "tlsSkipVerify": true
1284 ## "timeInterval": "5s"
1287 ## Enable references to ConfigMaps containing dashboards in GrafanaDashboard CRs
1288 ## Set to true to allow dashboards to be loaded from ConfigMap references
1289 dashboardsConfigMapRefEnabled: false
1290 ## Provision GrafanaDatasource CRs instead of a file-based datasource ConfigMap
1291 ## Covers the default Prometheus datasource, the per-replica Prometheus datasources, the
1292 ## Alertmanager datasource and every entry of grafana.additionalDataSources
1293 ## An entry of grafana.additionalDataSources may carry `valuesFrom` and `plugins`, both are
1294 ## moved from the datasource to the CR spec
1295 ## grafana.additionalDataSourcesString, grafana.deleteDatasources and grafana.prune have no CR
1296 ## equivalent and keep using the ConfigMap
1297 datasourcesEnabled: false
1298 ## Annotations for GrafanaDashboard Cr
1301 ## Labels that should be matched kind: Grafana instance
1302 ## Example: { app: grafana, category: dashboard }
1305 ## How frequently the operator should resync resources (in duration format)
1306 ## Controls how often dashboards are reconciled by the operator
1309 ## Which folder contains all dashboards in Grafana
1310 ## This folder will be created on the Root level
1311 ## Only one of 'folder', 'folderUID' or 'folderRef' can be set
1314 ## Which UID of the target folder contains all dashboards in Grafana
1315 ## This allows you to use subfolder hierarchy
1316 ## Only one of 'folder', 'folderUID' or 'folderRef' can be set
1319 ## Which GrafanaFolder reference contains all dashboards in Grafana
1320 ## This allows you to use subfolder hierarchy.
1321 ## Only one of 'folder', 'folderUID' or 'folderRef' can be set
1324 ## Timezone for the default dashboards
1325 ## Other options are: browser or a specific timezone, i.e. Europe/Luxembourg
1327 defaultDashboardsTimezone: utc
1328 ## Editable flag for the default dashboards
1330 defaultDashboardsEditable: true
1331 ## Default interval for Grafana dashboards
1333 defaultDashboardsInterval: 1m
1334 # Administrator credentials when not using an existing secret (see below)
1336 # adminPassword: strongpassword
1338 # Use an existing secret for the admin user.
1340 ## Name of the secret. Can be templated.
1343 passwordKey: admin-password
1345 ## If true, Grafana PSPs will be created
1349 ## If true, Grafana Ingress will be created
1352 ## IngressClassName for Grafana Ingress.
1353 ## Should be provided if Ingress is enable.
1355 # ingressClassName: nginx
1357 ## Annotations for Grafana Ingress
1360 # kubernetes.io/ingress.class: nginx
1361 # kubernetes.io/tls-acme: "true"
1363 ## Labels to be added to the Ingress
1367 ## Must be provided if Ingress is enable.
1370 # - grafana.domain.com
1372 ## Path for grafana ingress
1374 ## TLS configuration for grafana Ingress
1375 ## Secret must be manually created in the namespace
1378 # - secretName: grafana-general-tls
1380 # - grafana.example.com
1381 # # To make Grafana persistent (Using Statefulset)
1386 # storageClassName: "storageClassName"
1391 # - kubernetes.io/pvc-protection
1398 label: grafana_dashboard
1400 # Allow discovery in all namespaces for dashboards
1401 searchNamespace: ALL
1402 # Support for new table panels, when enabled grafana auto migrates the old table panels to newer table panels
1403 enableNewTablePanelSyntax: false
1404 ## Annotations for Grafana dashboard configmaps
1407 ## Annotation the sidecar reads to decide in which Grafana folder a dashboard
1408 ## is stored. Requires `provider.foldersFromFilesStructure` to be enabled.
1409 ## ref: https://github.com/grafana/helm-charts/tree/main/charts/grafana#sidecar-for-dashboards
1411 # folderAnnotation: grafana_folder
1418 allowUiUpdates: false
1419 ## Let Grafana replicate the dashboard folder structure created by the sidecar,
1420 ## so dashboards are grouped into folders instead of the default one.
1421 ## Required when using `folderAnnotation` above.
1423 # foldersFromFilesStructure: true
1426 defaultDatasourceEnabled: true
1427 isDefaultDatasource: true
1430 ## Extra jsonData properties to add to the datasource
1432 # prometheusType: Prometheus
1434 ## URL of prometheus datasource
1436 # url: http://prometheus-stack-prometheus:9090/
1438 ## Prometheus request timeout in seconds
1441 ## Query parameters to add, as a URL-encoded string,
1442 ## to query Prometheus
1443 # customQueryParameters: ""
1445 # If not defined, will use prometheus.prometheusSpec.scrapeInterval or its default
1446 # defaultDatasourceScrapeInterval: 15s
1448 ## Annotations for Grafana datasource configmaps
1451 ## Set method for HTTP to send query to datasource
1453 ## Create datasource for each Pod of Prometheus StatefulSet;
1454 ## this uses by default the headless service `prometheus-operated` which is
1455 ## created by Prometheus Operator. In case you deployed your own Service for your
1456 ## Prometheus instance, you can specify it with the field `prometheusServiceName`
1457 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/0fee93e12dc7c2ea1218f19ae25ec6b893460590/pkg/prometheus/statefulset.go#L255-L286
1458 createPrometheusReplicasDatasources: false
1459 prometheusServiceName: prometheus-operated
1460 label: grafana_datasource
1462 ## Field with internal link pointing to existing data source in Grafana.
1463 ## Can be provisioned via additionalDataSources
1464 exemplarTraceIdDestinations: {}
1465 # datasourceUid: Jaeger
1466 # traceIdLabelName: trace_id
1467 # urlDisplayLabel: View traces
1472 handleGrafanaManagedAlerts: false
1473 implementation: prometheus
1474 extraConfigmapMounts: []
1475 # - name: certs-configmap
1476 # mountPath: /etc/grafana/ssl/
1477 # configMap: certs-configmap
1480 deleteDatasources: []
1481 # - name: example-datasource
1484 ## Configure additional grafana datasources (passed through tpl)
1485 ## ref: https://grafana.com/docs/grafana/latest/administration/provisioning/#datasources
1486 additionalDataSources: []
1487 # - name: prometheus-sample
1491 # basicAuthPassword: pass
1492 # basicAuthUser: daco
1495 # tlsSkipVerify: true
1498 # url: https://{{ printf "%s-prometheus.svc" .Release.Name }}:9090
1501 ## Configure additional grafana datasources as a templated string (passed through tpl)
1502 ## Useful when you need Helm flow control or templating inside the datasource definition
1503 additionalDataSourcesString: ""
1504 # Flag to mark provisioned data sources for deletion if they are no longer configured.
1505 # It takes no effect if data sources are already listed in the deleteDatasources section.
1506 # ref: https://grafana.com/docs/grafana/latest/administration/provisioning/#example-data-source-configuration-file
1508 ## Passed to grafana subchart and used by servicemonitor below
1515 # If true, a ServiceMonitor CRD is created for a prometheus operator
1516 # https://github.com/prometheus-operator/prometheus-operator
1519 # Path to use for scraping metrics. Might be different if server.root_url is set
1523 # namespace: monitoring (defaults to use the namespace this chart is deployed to)
1525 # labels for the ServiceMonitor
1528 # Extra scrape settings.
1532 # scrapeTimeout: 30s
1534 ## RelabelConfigs to apply to samples before scraping
1535 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1538 # - sourceLabels: [__meta_kubernetes_pod_node_name]
1541 # targetLabel: nodename
1544## Flag to disable all the kubernetes component scrapers
1546kubernetesServiceMonitors:
1548## Component scraping the kube api server
1552 ## TLS configuration of the ServiceMonitor endpoint. Rendered as-is, so any field of the
1553 ## Prometheus Operator SafeTLSConfig type can be set here.
1554 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeTLSConfig
1557 serverName: kubernetes
1558 insecureSkipVerify: false
1561 name: kube-root-ca.crt
1565 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
1568 ## Bearer credentials used to scrape this component. Rendered as-is, so any field of the
1569 ## Prometheus Operator SafeAuthorization type can be set here. Set to null to scrape without
1571 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
1576 name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
1578 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
1579 ## If not set, the default scrape class (if any) is used.
1582 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
1585 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
1588 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1591 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1593 labelNameLengthLimit: 0
1594 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1596 labelValueLengthLimit: 0
1597 ## proxyUrl: URL of a proxy that should be used for scraping.
1603 component: apiserver
1604 provider: kubernetes
1605 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
1606 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1609 # Drop excessively noisy apiserver buckets.
1611 regex: (etcd_request|apiserver_request_slo|apiserver_request_sli|apiserver_request)_duration_seconds_bucket;(0\.15|0\.2|0\.3|0\.35|0\.4|0\.45|0\.6|0\.7|0\.8|0\.9|1\.25|1\.5|1\.75|2|3|3\.5|4|4\.5|6|7|8|9|15|20|40|45|50)(\.0)?
1615 # Drop every other bucket of the watch event dispatch histogram (Kubernetes 1.37+),
1616 # keeping 0.0001, 0.001, 0.01, 0.1, 1, 5 and +Inf.
1618 regex: apiserver_watch_events_dispatch_duration_seconds_bucket;(0\.0005|0\.005|0\.025|0\.05|0\.25|0\.5|2\.5)
1623 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
1624 # sourceLabels: [__name__]
1626 ## RelabelConfigs to apply to samples before scraping
1627 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1631 # - __meta_kubernetes_namespace
1632 # - __meta_kubernetes_service_name
1633 # - __meta_kubernetes_endpoint_port_name
1635 # regex: default;kubernetes;https
1636 # - targetLabel: __address__
1637 # replacement: kubernetes.default.svc:443
1639 ## Additional labels
1641 additionalLabels: {}
1644 ## defines the labels which are transferred from the associated Kubernetes Service object onto the ingested metrics.
1645 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor
1647 ## Override the job label used for the apiserver.
1648 ## This allows users who scrape apiserver metrics under a different job name (e.g. k3s-server via PushProx)
1649 ## to align the recording rules and alerts with their actual job label.
1651## Component scraping the kubelet and kubelet-hosted cAdvisor
1655 namespace: kube-system
1656 # Overrides the job selector in Grafana dashboards and Prometheus rules
1657 # For k3s clusters, change to k3s-server
1661 ## Enable scraping /metrics from kubelet's service
1663 ## Attach metadata to discovered targets. Requires Prometheus v2.45 for endpoints created by the operator.
1667 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
1670 ## If true, Prometheus use (respect) labels provided by exporter.
1673 ## If true, Prometheus ingests metrics with timestamp provided by exporter. If false, Prometheus ingests metrics with timestamp of scrape.
1675 honorTimestamps: true
1676 ## If true, defines whether Prometheus tracks staleness of the metrics that have an explicit timestamp present in scraped data. Has no effect if `honorTimestamps` is false.
1677 ## We recommend enabling this if you want the best possible accuracy for container_ metrics scraped from cadvisor.
1678 ## For more details see: https://github.com/prometheus-community/helm-charts/pull/5063#issuecomment-2545374849
1679 trackTimestampsStaleness: true
1680 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
1681 ## If not set, the default scrape class (if any) is used.
1684 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
1687 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
1690 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1693 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1695 labelNameLengthLimit: 0
1696 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1698 labelValueLengthLimit: 0
1699 ## proxyUrl: URL of a proxy that should be used for scraping.
1702 ## Enable scraping the kubelet over https. For requirements to enable this see
1703 ## https://github.com/prometheus-operator/prometheus-operator/issues/926
1706 ## Bearer credentials used to scrape this component. Rendered as-is, so any field of the
1707 ## Prometheus Operator SafeAuthorization type can be set here. Set to null to scrape without
1709 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
1714 name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
1716 ## TLS configuration of the ServiceMonitor endpoint. Only applies when scraping over https.
1717 ## Rendered as-is, so any field of the Prometheus Operator SafeTLSConfig type can be set here.
1718 ## insecureSkipVerify is enabled by default because the kubelet serving certificate deployed by
1719 ## kubeadm is self-signed.
1720 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#kubelet-serving-certs
1721 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeTLSConfig
1724 insecureSkipVerify: true
1727 name: kube-root-ca.crt
1729 ## Enable scraping /metrics/probes from kubelet's service
1732 ## Enable scraping /metrics/resource from kubelet's service
1733 ## This is disabled by default because container metrics are already exposed by cAdvisor
1736 # From kubernetes 1.18, /metrics/resource/v1alpha1 renamed to /metrics/resource
1737 resourcePath: "/metrics/resource/v1alpha1"
1738 ## Configure the scrape interval for resource metrics. This is configured to the default Kubelet cAdvisor
1739 ## minimum housekeeping interval in order to avoid missing samples. Note, this value is ignored
1740 ## if kubelet.serviceMonitor.interval is not empty.
1741 resourceInterval: 10s
1742 ## Enable scraping /metrics/cadvisor from kubelet's service
1745 ## Configure the scrape interval for cAdvisor. This is configured to the default Kubelet cAdvisor
1746 ## minimum housekeeping interval in order to avoid missing samples. Note, this value is ignored
1747 ## if kubelet.serviceMonitor.interval is not empty.
1748 cAdvisorInterval: 10s
1749 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
1750 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1752 cAdvisorMetricRelabelings:
1753 # Drop less useful container CPU metrics.
1754 - sourceLabels: [__name__]
1756 regex: 'container_cpu_(cfs_throttled_seconds_total|load_average_10s|system_seconds_total|user_seconds_total)'
1757 # Drop less useful container / always zero filesystem metrics.
1758 - sourceLabels: [__name__]
1760 regex: 'container_fs_(io_current|io_time_seconds_total|io_time_weighted_seconds_total|reads_merged_total|sector_reads_total|sector_writes_total|writes_merged_total)'
1761 # Drop less useful container memory metrics. container_memory_swap is kept because the
1762 # k8s.rules.container_memory_swap recording rule and the "Memory Usage (Swap)" columns
1763 # of the Compute Resources dashboards are built on it.
1764 - sourceLabels: [__name__]
1766 regex: 'container_memory_mapped_file'
1767 # Drop less useful container process metrics.
1768 - sourceLabels: [__name__]
1770 regex: 'container_(file_descriptors|tasks_state|threads_max)'
1771 # Drop container_memory_failures_total{scope="hierarchy"} metrics,
1772 # we only need the container scope.
1773 - sourceLabels: [__name__, scope]
1775 regex: 'container_memory_failures_total;hierarchy'
1776 # Drop container_network_... metrics that match various interfaces that
1777 # correspond to CNI and similar interfaces. This avoids capturing network
1778 # metrics for host network containers.
1779 - sourceLabels: [__name__, interface]
1781 regex: 'container_network_.*;(cali|cilium|cni|lxc|nodelocaldns|tunl).*'
1782 # Drop container spec metrics that overlap with kube-state-metrics.
1783 - sourceLabels: [__name__]
1785 regex: 'container_spec.*'
1786 # Drop cgroup metrics with no pod.
1787 - sourceLabels: [id, pod]
1790 # - sourceLabels: [__name__, image]
1792 # regex: container_([a-z_]+);
1795 # - sourceLabels: [__name__]
1797 # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
1801 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
1802 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1804 probesMetricRelabelings: []
1805 # - sourceLabels: [__name__, image]
1807 # regex: container_([a-z_]+);
1810 # - sourceLabels: [__name__]
1812 # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
1816 ## RelabelConfigs to apply to samples before scraping
1817 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1819 ## metrics_path is required to match upstream rules and charts
1820 cAdvisorRelabelings:
1822 sourceLabels: [__metrics_path__]
1823 targetLabel: metrics_path
1824 # - sourceLabels: [__meta_kubernetes_pod_node_name]
1827 # targetLabel: nodename
1831 ## RelabelConfigs to apply to samples before scraping
1832 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1836 sourceLabels: [__metrics_path__]
1837 targetLabel: metrics_path
1838 # - sourceLabels: [__meta_kubernetes_pod_node_name]
1841 # targetLabel: nodename
1845 ## RelabelConfigs to apply to samples before scraping
1846 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1848 resourceRelabelings:
1850 sourceLabels: [__metrics_path__]
1851 targetLabel: metrics_path
1852 # - sourceLabels: [__meta_kubernetes_pod_node_name]
1855 # targetLabel: nodename
1859 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
1860 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1863 # Reduce bucket cardinality of kubelet storage operations.
1865 sourceLabels: [__name__, le]
1866 regex: (csi_operations|storage_operation_duration)_seconds_bucket;(0.25|2.5|15|25|120|600)(\.0)?
1867 # - sourceLabels: [__name__, image]
1869 # regex: container_([a-z_]+);
1872 # - sourceLabels: [__name__]
1874 # regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
1878 ## RelabelConfigs to apply to samples before scraping
1879 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1881 ## metrics_path is required to match upstream rules and charts
1884 sourceLabels: [__metrics_path__]
1885 targetLabel: metrics_path
1886 # - sourceLabels: [__meta_kubernetes_pod_node_name]
1889 # targetLabel: nodename
1893 ## Additional labels
1895 additionalLabels: {}
1898 ## defines the labels which are transferred from the associated Kubernetes Service object onto the ingested metrics.
1899 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor
1901## Component scraping the kube controller manager
1903kubeControllerManager:
1905 # Overrides the job selector in Grafana dashboards and Prometheus rules
1906 # For k3s clusters, change to k3s-server
1908 ## If your kube controller manager is not deployed as a pod, specify IPs it can be found on
1915 ## If using kubeControllerManager.endpoints only the port and targetPort are used
1919 ## If null or unset, the value is determined dynamically based on target Kubernetes version due to change
1920 ## of default port in Kubernetes 1.22.
1926 ipFamilies: ["IPv6", "IPv4"]
1927 ipFamilyPolicy: "PreferDualStack"
1929 # component: kube-controller-manager
1932 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
1935 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
1936 ## If not set, the default scrape class (if any) is used.
1939 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
1942 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
1945 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1948 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1950 labelNameLengthLimit: 0
1951 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
1953 labelValueLengthLimit: 0
1954 ## proxyUrl: URL of a proxy that should be used for scraping.
1957 ## port: Name of the port the metrics will be scraped from
1963 # component: kube-controller-manager
1965 ## Enable scraping kube-controller-manager over https.
1966 ## Requires proper certs (not self-signed) and delegated authentication/authorization checks.
1967 ## If null or unset, the value is determined dynamically based on target Kubernetes version.
1970 ## Bearer credentials used to scrape this component. Rendered as-is, so any field of the
1971 ## Prometheus Operator SafeAuthorization type can be set here. Set to null to scrape without
1973 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
1978 name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
1980 ## TLS configuration of the ServiceMonitor endpoint. Only applies when scraping over https.
1981 ## Rendered as-is, so any field of the Prometheus Operator SafeTLSConfig type can be set here.
1982 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeTLSConfig
1985 insecureSkipVerify: true
1988 name: kube-root-ca.crt
1990 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
1991 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1993 metricRelabelings: []
1995 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
1996 # sourceLabels: [__name__]
1998 ## RelabelConfigs to apply to samples before scraping
1999 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2002 # - sourceLabels: [__meta_kubernetes_pod_node_name]
2005 # targetLabel: nodename
2009 ## Additional labels
2011 additionalLabels: {}
2014 ## defines the labels which are transferred from the associated Kubernetes Service object onto the ingested metrics.
2015 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor
2017## Component scraping coreDns. Use either this or kubeDns
2027 ipFamilies: ["IPv6", "IPv4"]
2028 ipFamilyPolicy: "PreferDualStack"
2033 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
2036 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
2037 ## If not set, the default scrape class (if any) is used.
2040 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2043 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2046 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2049 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2051 labelNameLengthLimit: 0
2052 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2054 labelValueLengthLimit: 0
2055 ## proxyUrl: URL of a proxy that should be used for scraping.
2058 ## port: Name of the port the metrics will be scraped from
2066 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
2067 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2069 metricRelabelings: []
2071 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2072 # sourceLabels: [__name__]
2074 ## RelabelConfigs to apply to samples before scraping
2075 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2078 # - sourceLabels: [__meta_kubernetes_pod_node_name]
2081 # targetLabel: nodename
2085 ## Additional labels
2087 additionalLabels: {}
2090 ## defines the labels which are transferred from the associated Kubernetes Service object onto the ingested metrics.
2091 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor
2093 ## Bearer credentials used to scrape this component. Rendered as-is, so any field of the
2094 ## Prometheus Operator SafeAuthorization type can be set here. Set to null to scrape without
2096 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2101 name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2103## Component scraping kubeDns. Use either this or coreDns
2116 ipFamilies: ["IPv6", "IPv4"]
2117 ipFamilyPolicy: "PreferDualStack"
2121 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
2124 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
2125 ## If not set, the default scrape class (if any) is used.
2128 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2131 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2134 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2137 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2139 labelNameLengthLimit: 0
2140 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2142 labelValueLengthLimit: 0
2143 ## proxyUrl: URL of a proxy that should be used for scraping.
2151 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
2152 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2154 metricRelabelings: []
2156 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2157 # sourceLabels: [__name__]
2159 ## RelabelConfigs to apply to samples before scraping
2160 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2163 # - sourceLabels: [__meta_kubernetes_pod_node_name]
2166 # targetLabel: nodename
2170 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
2171 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2173 dnsmasqMetricRelabelings: []
2175 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2176 # sourceLabels: [__name__]
2178 ## RelabelConfigs to apply to samples before scraping
2179 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2181 dnsmasqRelabelings: []
2182 # - sourceLabels: [__meta_kubernetes_pod_node_name]
2185 # targetLabel: nodename
2189 ## Additional labels
2191 additionalLabels: {}
2194 ## defines the labels which are transferred from the associated Kubernetes Service object onto the ingested metrics.
2195 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor
2197 ## Bearer credentials used to scrape this component. Rendered as-is, so any field of the
2198 ## Prometheus Operator SafeAuthorization type can be set here. Set to null to scrape without
2200 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2205 name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2207## Component scraping etcd
2211 ## If your etcd is not deployed as a pod, specify IPs it can be found on
2218 ## Etcd service. If using kubeEtcd.endpoints only the port and targetPort are used
2226 ipFamilies: ["IPv6", "IPv4"]
2227 ipFamilyPolicy: "PreferDualStack"
2230 ## Configure secure access to the etcd cluster by referencing a secret holding the client
2231 ## certificate. For example, with a secret named etcd-client-cert
2236 ## insecureSkipVerify: false
2237 ## serverName: localhost
2240 ## name: etcd-client-cert
2244 ## name: etcd-client-cert
2247 ## name: etcd-client-cert
2248 ## key: etcd-client-key
2252 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
2255 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
2256 ## If not set, the default scrape class (if any) is used.
2259 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2262 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2265 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2268 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2270 labelNameLengthLimit: 0
2271 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2273 labelValueLengthLimit: 0
2274 ## proxyUrl: URL of a proxy that should be used for scraping.
2278 ## TLS configuration of the ServiceMonitor endpoint. Only applies when scheme is https.
2279 ## Rendered as-is, so any field of the Prometheus Operator SafeTLSConfig type can be set here.
2280 ## etcd requires client certificates, see the commented example above.
2281 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeTLSConfig
2284 insecureSkipVerify: false
2285 ## port: Name of the port the metrics will be scraped from
2293 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
2294 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2296 metricRelabelings: []
2298 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2299 # sourceLabels: [__name__]
2301 ## RelabelConfigs to apply to samples before scraping
2302 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2305 # - sourceLabels: [__meta_kubernetes_pod_node_name]
2308 # targetLabel: nodename
2312 ## Additional labels
2314 additionalLabels: {}
2317 ## defines the labels which are transferred from the associated Kubernetes Service object onto the ingested metrics.
2318 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor
2320 ## Bearer credentials used to scrape this component. Rendered as-is, so any field of the
2321 ## Prometheus Operator SafeAuthorization type can be set here. Set to null to scrape without
2323 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2328 name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2330## Component scraping kube scheduler
2334 # Overrides the job selector in Grafana dashboards and Prometheus rules
2335 # For k3s clusters, change to k3s-server
2337 ## If your kube scheduler is not deployed as a pod, specify IPs it can be found on
2344 ## If using kubeScheduler.endpoints only the port and targetPort are used
2348 ## If null or unset, the value is determined dynamically based on target Kubernetes version due to change
2349 ## of default port in Kubernetes 1.23.
2355 ipFamilies: ["IPv6", "IPv4"]
2356 ipFamilyPolicy: "PreferDualStack"
2358 # component: kube-scheduler
2361 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
2364 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
2365 ## If not set, the default scrape class (if any) is used.
2368 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2371 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2374 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2377 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2379 labelNameLengthLimit: 0
2380 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2382 labelValueLengthLimit: 0
2383 ## proxyUrl: URL of a proxy that should be used for scraping.
2386 ## Enable scraping kube-scheduler over https.
2387 ## Requires proper certs (not self-signed) and delegated authentication/authorization checks.
2388 ## If null or unset, the value is determined dynamically based on target Kubernetes version.
2391 ## port: Name of the port the metrics will be scraped from
2397 # component: kube-scheduler
2399 ## Bearer credentials used to scrape this component. Rendered as-is, so any field of the
2400 ## Prometheus Operator SafeAuthorization type can be set here. Set to null to scrape without
2402 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2407 name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2409 ## TLS configuration of the ServiceMonitor endpoint. Only applies when scraping over https.
2410 ## Rendered as-is, so any field of the Prometheus Operator SafeTLSConfig type can be set here.
2411 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeTLSConfig
2414 insecureSkipVerify: true
2417 name: kube-root-ca.crt
2419 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
2420 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2422 metricRelabelings: []
2424 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2425 # sourceLabels: [__name__]
2427 ## RelabelConfigs to apply to samples before scraping
2428 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2431 # - sourceLabels: [__meta_kubernetes_pod_node_name]
2434 # targetLabel: nodename
2438 ## Additional labels
2440 additionalLabels: {}
2443 ## defines the labels which are transferred from the associated Kubernetes Service object onto the ingested metrics.
2444 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor
2447 ## Enable scraping /metrics/resource from kube-scheduler
2448 ## https://kubernetes.io/docs/concepts/cluster-administration/system-metrics/#kube-scheduler-metrics
2450 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
2453 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
2454 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2456 metricRelabelings: []
2458 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2459 # sourceLabels: [__name__]
2461 ## RelabelConfigs to apply to samples before scraping
2462 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2465 # - sourceLabels: [__meta_kubernetes_pod_node_name]
2468 # targetLabel: nodename
2471## Component scraping kube proxy
2475 # Overrides the job selector in Grafana dashboards and Prometheus rules
2476 # For k3s clusters, change to k3s-server
2478 ## If your kube proxy is not deployed as a pod, specify IPs it can be found on
2491 ipFamilies: ["IPv6", "IPv4"]
2492 ipFamilyPolicy: "PreferDualStack"
2494 # k8s-app: kube-proxy
2497 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
2500 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
2501 ## If not set, the default scrape class (if any) is used.
2504 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2507 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2510 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2513 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2515 labelNameLengthLimit: 0
2516 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2518 labelValueLengthLimit: 0
2519 ## proxyUrl: URL of a proxy that should be used for scraping.
2522 ## port: Name of the port the metrics will be scraped from
2528 # k8s-app: kube-proxy
2530 ## Enable scraping kube-proxy over https.
2531 ## Requires proper certs (not self-signed) and delegated authentication/authorization checks
2534 ## TLS configuration of the ServiceMonitor endpoint. Only applies when scraping over https.
2535 ## Rendered as-is, so any field of the Prometheus Operator SafeTLSConfig type can be set here.
2536 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeTLSConfig
2541 name: kube-root-ca.crt
2543 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
2544 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2546 metricRelabelings: []
2548 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2549 # sourceLabels: [__name__]
2551 ## RelabelConfigs to apply to samples before scraping
2552 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2556 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2557 # sourceLabels: [__name__]
2559 ## Additional labels
2561 additionalLabels: {}
2564 ## defines the labels which are transferred from the associated Kubernetes Service object onto the ingested metrics.
2565 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor
2567 ## Bearer credentials used to scrape this component. Rendered as-is, so any field of the
2568 ## Prometheus Operator SafeAuthorization type can be set here. Set to null to scrape without
2570 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2575 name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2577## Component scraping kube state metrics
2581## Configuration for kube-state-metrics subchart
2584 ## set to true to add the release label so scraping of the servicemonitor with kube-prometheus-stack works out of the box
2586 ## Enable scraping via kubernetes-service-endpoints
2587 ## Disabled by default as we service monitor is enabled below
2589 prometheusScrape: false
2592 ## Enable scraping via service monitor
2593 ## Disable to prevent duplication if you enable prometheusScrape above
2595 ## kube-state-metrics endpoint
2597 ## Keep labels from scraped data, overriding server-side labels
2599 ## selfMonitor endpoint
2601 ## Keep labels from scraped data, overriding server-side labels
2603## Deploy node exporter as a daemonset to all nodes
2614 ## ForceDeployDashboard Create dashboard configmap even if nodeExporter deployment has been disabled
2616 forceDeployDashboards: false
2617## Configuration for prometheus-node-exporter subchart
2619prometheus-node-exporter:
2620 ## Enable scraping via kubernetes-service-endpoints
2621 ## Disabled by default as service monitor is enabled below
2623 prometheusScrape: false
2624 namespaceOverride: ""
2626 ## Add the 'node-exporter' label to be used by serviceMonitor and podMonitor to match standard common usage in rules and grafana dashboards
2628 jobLabel: node-exporter
2632 portName: http-metrics
2635 ipFamilies: ["IPv6", "IPv4"]
2636 ipFamilyPolicy: "PreferDualStack"
2638 jobLabel: node-exporter
2643 ## Enable scraping via service monitor
2644 ## Disable to prevent duplication if you have enabled prometheusScrape above
2648 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
2651 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2654 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2657 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2660 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2662 labelNameLengthLimit: 0
2663 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
2665 labelValueLengthLimit: 0
2666 ## How long until a scrape request times out. If not set, the Prometheus default scape timeout is used.
2669 ## proxyUrl: URL of a proxy that should be used for scraping.
2672 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
2673 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2675 metricRelabelings: []
2676 # - sourceLabels: [__name__]
2678 # regex: ^node_mountstats_nfs_(event|operations|transport)_.+
2682 ## RelabelConfigs to apply to samples before scraping
2683 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
2686 # - sourceLabels: [__meta_kubernetes_pod_node_name]
2689 # targetLabel: nodename
2692 ## Attach node metadata to discovered targets. Requires Prometheus v2.35.0 and above.
2701 ## If true, create PSPs for node-exporter
2704## Manages Prometheus and Alertmanager components
2708 ## Use '{{ template "kube-prometheus-stack.fullname" . }}-operator' by default
2709 fullnameOverride: ""
2710 ## Number of old replicasets to retain ##
2711 ## The default value is 10, 0 will garbage-collect old replicasets ##
2712 revisionHistoryLimit: 10
2713 ## Strategy of the deployment
2716 ## Prometheus-Operator v0.39.0 and later support TLS natively.
2717 ## The certificate comes from the Secret created either by the admission webhook patch job
2718 ## (admissionWebhooks.enabled and admissionWebhooks.patch.enabled) or by cert-manager
2719 ## (admissionWebhooks.certManager.enabled). With neither of those, the chart fails the render
2720 ## rather than leave the operator pod in ContainerCreating waiting for a Secret nothing creates.
2724 ## Name of a secret you manage yourself holding the operator's TLS material. It is always read
2725 ## as a kubernetes.io/tls secret, so the keys must be tls.crt, tls.key and ca.crt, whatever the
2726 ## admission webhook settings are. Leave empty to use the secret created by the admission
2727 ## webhook patch job or by cert-manager, which is read under whichever keys created it.
2728 ## Required when neither of those creates it, since the chart cannot otherwise know the
2729 ## certificate exists.
2731 # Value must match version names from https://pkg.go.dev/crypto/tls#pkg-constants
2732 tlsMinVersion: VersionTLS13
2733 # The default webhook port is 10250 in order to work out-of-the-box in GKE private clusters and avoid adding firewall rules.
2735 ## Liveness probe for the prometheusOperator deployment
2740 initialDelaySeconds: 0
2744 ## Readiness probe for the prometheusOperator deployment
2749 initialDelaySeconds: 0
2753 ## Admission webhook support for PrometheusRules resources added in Prometheus Operator 0.30 can be enabled to prevent incorrectly formatted
2754 ## rules from making their way into prometheus and potentially preventing the container from starting
2756 ## Valid values: Fail, Ignore, IgnoreOnInstallOnly
2757 ## IgnoreOnInstallOnly - If Release.IsInstall returns "true", set "Ignore" otherwise "Fail"
2759 ## The default timeoutSeconds is 10 and the maximum value is 30.
2762 ## A PEM encoded CA bundle which will be used to validate the webhook's server certificate.
2763 ## If unspecified, system trust roots on the apiserver are used.
2765 ## If enabled, generate a self-signed certificate, then patch the webhook configurations with the generated data.
2766 ## On chart upgrades (or if the secret exists) the cert will not be re-generated. You can use this to provide your own
2767 ## certs ahead of time if you wish.
2770 # argocd.argoproj.io/hook: PreSync
2771 # argocd.argoproj.io/hook-delete-policy: HookSucceeded
2773 namespaceSelector: {}
2775 # Match conditions for admission webhooks.
2776 # Must be a list, for example:
2777 # - name: exclude-leases
2778 # expression: '!(request.resource.group == "coordination.k8s.io" && request.resource.resource == "leases")'
2780 mutatingWebhookConfiguration:
2782 # argocd.argoproj.io/hook: PreSync
2783 validatingWebhookConfiguration:
2785 # argocd.argoproj.io/hook: PreSync
2788 ## Number of replicas
2791 ## Strategy of the deployment
2794 # Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
2795 podDisruptionBudget:
2798 # maxUnavailable: ""
2799 unhealthyPodEvictionPolicy: AlwaysAllow
2800 ## Number of old replicasets to retain ##
2801 ## The default value is 10, 0 will garbage-collect old replicasets ##
2802 revisionHistoryLimit: 10
2803 ## Prometheus-Operator v0.39.0 and later support TLS natively.
2807 # Value must match version names from https://pkg.go.dev/crypto/tls#pkg-constants
2808 tlsMinVersion: VersionTLS13
2809 # The default webhook port is 10250 in order to work out-of-the-box in GKE private clusters and avoid adding firewall rules.
2811 ## Service account for Prometheus Operator Webhook to use.
2812 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
2816 automountServiceAccountToken: false
2819 ## Configuration for Prometheus operator Webhook service
2827 ipFamilies: ["IPv6", "IPv4"]
2828 ipFamilyPolicy: "PreferDualStack"
2829 ## Port to expose on each node
2830 ## Only used if service.type is 'NodePort'
2834 ## Additional ports to open for Prometheus operator Webhook service
2835 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
2839 ## Only use if service.type is "LoadBalancer"
2842 loadBalancerSourceRanges: []
2843 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
2845 externalTrafficPolicy: Cluster
2847 ## NodePort, ClusterIP, LoadBalancer
2850 ## List of IP addresses at which the Prometheus server service is available
2851 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
2854 # ## Labels to add to the operator webhook deployment
2857 ## Annotations to add to the operator webhook deployment
2860 ## Labels to add to the operator webhook pod
2863 ## Annotations to add to the operator webhook pod
2866 ## Assign a PriorityClassName to pods if set
2867 # priorityClassName: ""
2869 ## Define Log Format
2870 # Use logfmt (default) or json logging
2873 ## Decrease log verbosity to errors only
2876 ## Prometheus-operator webhook image
2880 repository: chainguard-private/prometheus-admission-webhook
2881 # if not set appVersion field from Chart.yaml is used
2883 sha: sha256:921e2355114ae77d08bbf590369502a33d6b85d627f8c5cbc09b05860aae9da7
2884 pullPolicy: IfNotPresent
2885 ## Define Log Format
2886 # Use logfmt (default) or json logging
2889 ## Decrease log verbosity to errors only
2892 ## PromQL parser options to enable for the admission webhook when validating PrometheusRule resources.
2893 ## The options are passed to the prometheus-operator admission-webhook binary as a comma-separated --promql-options value.
2894 ## Requires prometheus-operator admission-webhook v0.91.0 or newer.
2895 ## Valid values: experimental-functions, duration-expression-parsing, extended-range-selectors, binop-fill-modifiers.
2903 initialDelaySeconds: 30
2912 initialDelaySeconds: 5
2916 ## Resource limits & requests
2926 # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
2927 # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
2930 ## Define which Nodes the Pods are scheduled on.
2931 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
2934 kubernetes.io/os: linux
2935 ## Tolerations for use with node taints
2936 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
2942 # effect: "NoSchedule"
2944 ## Assign custom affinity rules to the prometheus operator
2945 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
2949 # requiredDuringSchedulingIgnoredDuringExecution:
2950 # nodeSelectorTerms:
2951 # - matchExpressions:
2952 # - key: kubernetes.io/e2e-az-name
2961 # - ns1.svc.cluster-domain.example
2962 # - my.dns.search.suffix
2973 type: RuntimeDefault
2974 ## Container-specific security context configuration
2975 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
2977 containerSecurityContext:
2978 allowPrivilegeEscalation: false
2979 readOnlyRootFilesystem: true
2983 ## The admission webhook only serves HTTPS and does not call the Kubernetes API, so no
2984 ## service account token is mounted by default. Set to true if you add containers that need
2987 automountServiceAccountToken: false
2992 repository: chainguard-private/kube-webhook-certgen
2994 sha: sha256:e19275de113969cb9b9898ce98cb7313ca6ccc3eb253a7918885c0ed4495ef3a
2995 pullPolicy: IfNotPresent
2996 ## Type of the secret created by the certgen job. Requires kube-webhook-certgen 1.11.0 or newer.
2997 ## kubernetes.io/tls stores the certificates as ca.crt, tls.crt and tls.key. An existing Opaque secret is
2998 ## deleted and recreated as kubernetes.io/tls with the same certificates, keeping the legacy ca, cert and key entries.
2999 ## Set to "" to keep the previous Opaque secret with ca, cert and key, e.g. when using an older certgen image.
3000 ## Without cert-manager and the certgen job, the chart reads ca, cert and key from the <fullname>-admission secret.
3001 ## A secret created by this job as kubernetes.io/tls only contains ca.crt, tls.crt and tls.key, so replace it
3002 ## before disabling the job or the admission webhooks while prometheusOperator.tls.enabled is true.
3006 ## Provide a priority class name to the webhook patching job
3008 priorityClassName: ""
3009 ttlSecondsAfterFinished: 60
3011 # argocd.argoproj.io/hook: PreSync
3012 # argocd.argoproj.io/hook-delete-policy: HookSucceeded
3015 kubernetes.io/os: linux
3018 ## SecurityContext holds pod-level security attributes and common container settings.
3019 ## This defaults to non root user with uid 2000 and gid 2000. *v1.PodSecurityContext false
3020 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
3027 type: RuntimeDefault
3028 ## Service account for Prometheus Operator Webhook Job Patch to use.
3029 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
3034 automountServiceAccountToken: true
3035 # Security context for create job container
3038 allowPrivilegeEscalation: false
3039 readOnlyRootFilesystem: true
3043 # Security context for patch job container
3046 allowPrivilegeEscalation: false
3047 readOnlyRootFilesystem: true
3051 # Use certmanager to generate webhook certs
3054 # self-signed root certificate
3056 duration: "" # default to be 5y
3057 # -- Set the revisionHistoryLimit on the Certificate. See
3058 # https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec
3060 revisionHistoryLimit:
3062 duration: "" # default to be 1y
3063 # -- Set the revisionHistoryLimit on the Certificate. See
3064 # https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec
3066 revisionHistoryLimit:
3069 # kind: "ClusterIssuer"
3070 # -- Set the private key algorithm and size for the Certificate. See
3071 # https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificatePrivateKey
3072 # Defaults to RSA 2048
3077 ## Namespaces to scope the interaction of the Prometheus Operator and the apiserver (allow list).
3078 ## This is mutually exclusive with denyNamespaces. Setting this to an empty object will disable the configuration
3081 # releaseNamespace: true
3085 ## Namespaces not to scope the interaction of the Prometheus Operator (deny list).
3088 ## Filter namespaces to look for prometheus-operator custom resources
3090 alertmanagerInstanceNamespaces: []
3091 alertmanagerConfigNamespaces: []
3092 prometheusInstanceNamespaces: []
3093 thanosRulerInstanceNamespaces: []
3094 ## The clusterDomain value will be added to the cluster.peer option of the alertmanager.
3095 ## Without this specified option cluster.peer will have value alertmanager-monitoring-alertmanager-0.alertmanager-operated:9094 (default value)
3096 ## With this specified option cluster.peer will have value alertmanager-monitoring-alertmanager-0.alertmanager-operated.namespace.svc.cluster-domain:9094
3098 # clusterDomain: "cluster.local"
3100 ## Enable creation of NetworkPolicy resources.
3103 ## Flavor of the network policy to use.
3105 # * kubernetes for networking.k8s.io/v1/NetworkPolicy
3106 # * cilium for cilium.io/v2/CiliumNetworkPolicy
3111 ## match labels used in selector
3113 ## Service account for Prometheus Operator to use.
3114 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
3119 automountServiceAccountToken: true
3121 # -- terminationGracePeriodSeconds for container lifecycle hook
3122 terminationGracePeriodSeconds: 30
3123 # -- Specify lifecycle hooks for the controller
3125 ## Configuration for Prometheus operator service
3133 ipFamilies: ["IPv6", "IPv4"]
3134 ipFamilyPolicy: "PreferDualStack"
3135 ## Port to expose on each node
3136 ## Only used if service.type is 'NodePort'
3140 ## Additional ports to open for Prometheus operator service
3141 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
3145 ## Only use if service.type is "LoadBalancer"
3148 loadBalancerSourceRanges: []
3149 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3151 externalTrafficPolicy: Cluster
3153 ## NodePort, ClusterIP, LoadBalancer
3156 ## List of IP addresses at which the Prometheus server service is available
3157 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
3160 # ## Labels to add to the operator deployment
3163 ## Annotations to add to the operator deployment
3166 ## Labels to add to the operator pod
3169 ## Annotations to add to the operator pod
3172 ## Assign a podDisruptionBudget to the operator
3174 podDisruptionBudget:
3177 # maxUnavailable: ""
3178 unhealthyPodEvictionPolicy: AlwaysAllow
3179 ## Assign a PriorityClassName to pods if set
3180 # priorityClassName: ""
3182 ## Define Log Format
3183 # Use logfmt (default) or json logging
3186 ## Decrease log verbosity to errors only
3189 ## If true, the operator will create and maintain a service for scraping kubelets
3190 ## ref: https://prometheus-operator.dev/docs/platform/operator/ (`-kubelet-service`)
3193 namespace: kube-system
3195 ## Use '{{ template "kube-prometheus-stack.fullname" . }}-kubelet' by default
3197 ## Create Endpoints objects for kubelet targets.
3198 kubeletEndpointsEnabled: true
3199 ## Create EndpointSlice objects for kubelet targets.
3200 kubeletEndpointSliceEnabled: false
3201 ## Extra arguments to pass to prometheusOperator
3202 # https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/platform/operator.md
3204 # - --labels="cluster=talos-cluster"
3206 ## Create a servicemonitor for the operator
3209 ## If true, create a serviceMonitor for prometheus operator
3212 ## Labels for ServiceMonitor
3213 additionalLabels: {}
3214 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
3217 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
3218 ## If not set, the default scrape class (if any) is used.
3221 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
3224 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
3227 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
3230 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
3232 labelNameLengthLimit: 0
3233 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
3235 labelValueLengthLimit: 0
3236 ## Scrape timeout. If not set, the Prometheus default scrape timeout is used.
3238 ## Metric relabel configs to apply to samples before ingestion.
3240 metricRelabelings: []
3242 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
3243 # sourceLabels: [__name__]
3245 # relabel configs to apply to samples before ingestion.
3248 # - sourceLabels: [__meta_kubernetes_pod_node_name]
3251 # targetLabel: nodename
3254 ## Resource limits & requests
3264 ## Operator Environment
3269 # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
3270 # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
3273 ## Define which Nodes the Pods are scheduled on.
3274 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
3277 kubernetes.io/os: linux
3278 ## Tolerations for use with node taints
3279 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
3285 # effect: "NoSchedule"
3287 ## Assign custom affinity rules to the prometheus operator
3288 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
3292 # requiredDuringSchedulingIgnoredDuringExecution:
3293 # nodeSelectorTerms:
3294 # - matchExpressions:
3295 # - key: kubernetes.io/e2e-az-name
3304 # - ns1.svc.cluster-domain.example
3305 # - my.dns.search.suffix
3316 type: RuntimeDefault
3317 ## Setup hostUsers for prometheus-operator
3318 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/
3320 ## Container-specific security context configuration
3321 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
3323 containerSecurityContext:
3324 allowPrivilegeEscalation: false
3325 readOnlyRootFilesystem: true
3329 # Enable vertical pod autoscaler support for prometheus-operator
3330 verticalPodAutoscaler:
3332 # Recommender responsible for generating recommendation for the object.
3333 # List should be empty (then the default recommender will generate the recommendation)
3334 # or contain exactly one recommender.
3336 # - name: custom-recommender-performance
3338 # List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
3339 controlledResources: []
3340 # Specifies which resource values should be controlled: RequestsOnly or RequestsAndLimits.
3341 # controlledValues: RequestsAndLimits
3343 # Define the max allowed resources for the pod
3347 # Define the min allowed resources for the pod
3353 # Specifies minimal number of replicas which need to be alive for VPA Updater to attempt pod eviction
3355 # Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
3356 # are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "InPlaceOrRecreate".
3357 updateMode: Recreate
3358 ## Prometheus-operator image
3362 repository: chainguard-private/prometheus-operator
3363 # if not set appVersion field from Chart.yaml is used
3365 sha: sha256:80e945c4ac5c79f353faf2c6f8d88ba57158ad9ece4fc27a13a46d234b2c13fe
3366 pullPolicy: IfNotPresent
3367 ## Prometheus image to use for prometheuses managed by the operator
3369 # prometheusDefaultBaseImage: prometheus/prometheus
3371 ## Prometheus image registry to use for prometheuses managed by the operator
3373 # prometheusDefaultBaseImageRegistry: quay.io
3375 ## Alertmanager image to use for alertmanagers managed by the operator
3377 # alertmanagerDefaultBaseImage: prometheus/alertmanager
3379 ## Alertmanager image registry to use for alertmanagers managed by the operator
3381 # alertmanagerDefaultBaseImageRegistry: quay.io
3383 ## Prometheus-config-reloader
3385 prometheusConfigReloader:
3388 repository: chainguard-private/prometheus-config-reloader
3389 # if not set appVersion field from Chart.yaml is used
3391 sha: sha256:fb987a793b3b7bf123ae4bd974eb5785d0621b9b7a2a71a7b90f24ac69fc886d
3392 # add prometheus config reloader liveness and readiness probe. Default: false
3394 # resource config for prometheusConfigReloader
3402 ## Thanos side-car image when configured
3406 repository: chainguard-private/thanos
3408 sha: sha256:b7ab78583dd1ec19f8e5da28bff2ffeba3af50c355ef2a1867e0e78dd10fc4a6
3409 ## Set a Label Selector to filter watched prometheus and prometheusAgent
3411 prometheusInstanceSelector: ""
3412 ## Set a Label Selector to filter watched alertmanager
3414 alertmanagerInstanceSelector: ""
3415 ## Set a Label Selector to filter watched thanosRuler
3416 thanosRulerInstanceSelector: ""
3417 ## Set a Field Selector to filter watched secrets
3418 ## `kubernetes.io/service-account-token` secrets are no longer excluded, so that changes to the
3419 ## secret the control-plane ServiceMonitors authenticate with trigger a reconciliation.
3421 secretFieldSelector: "type!=kubernetes.io/dockercfg,type!=helm.sh/release.v1"
3422 ## Feature gates to enable/disable operator features, rendered as --feature-gates=<key>=<value>.
3423 ## See https://prometheus-operator.dev/docs/platform/operator/ (`-feature-gates`)
3426 ## PrometheusAgentDaemonSet: true
3427 ## StatusForConfigurationResources: true
3429 ## If false then the user will opt out of automounting API credentials.
3431 automountServiceAccountToken: true
3432 ## Additional volumes
3435 ## Additional volume mounts
3437 extraVolumeMounts: []
3438## Deploy a Prometheus instance
3442 ## Toggle prometheus into agent mode
3443 ## Note many of features described below (e.g. rules, query, alerting, remote read, thanos) will not work in agent mode.
3444 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/platform/prometheus-agent.md
3447 ## Annotations for Prometheus
3450 ## Additional labels for Prometheus
3452 additionalLabels: {}
3453 ## Configure network policy for the prometheus
3456 ## Flavor of the network policy to use.
3458 # * kubernetes for networking.k8s.io/v1/NetworkPolicy
3459 # * cilium for cilium.io/v2/CiliumNetworkPolicy
3474 ## Service account for Prometheuses to use.
3475 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
3481 automountServiceAccountToken: true
3482 ## Create a `kubernetes.io/service-account-token` Secret for the Prometheus service account.
3483 ## The control-plane ServiceMonitors reference it by default, because ServiceMonitors can only
3484 ## authenticate through a Secret and Kubernetes no longer creates one automatically.
3485 ## The resulting token is long-lived and does not expire; disable this and set the
3486 ## `authorization` values of the control-plane components if you manage the credential yourself,
3487 ## or enable `prometheus.controlPlaneScrapeClass` below to use the pod's projected token instead.
3488 ## Only rendered together with the service account, so it requires `prometheus.enabled` and
3489 ## `create` above. Leaving a control-plane component on the default `authorization` while the
3490 ## Secret is not rendered is a rendering error rather than a silently broken ServiceMonitor.
3491 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#manually-create-an-api-token-for-a-serviceaccount
3493 createTokenSecret: true
3494 ## Scrape class for the control-plane ServiceMonitors (kubelet, kubeApiServer, kubeControllerManager,
3495 ## kubeScheduler, kubeEtcd, kubeProxy, coreDns and kubeDns), as an alternative to the Secret above.
3496 ## When enabled, the class is appended to `prometheusSpec.scrapeClasses` and each control-plane
3497 ## ServiceMonitor selects it in place of its `serviceMonitor.authorization`. A ServiceMonitor whose `serviceMonitor.scrapeClass` names a
3498 ## different class keeps its own `authorization`.
3499 ## The default authorization reads the Prometheus pod's projected service account token, which the
3500 ## kubelet rotates, so no long-lived token is needed; set `serviceAccount.createTokenSecret` to false
3501 ## once every control-plane component uses this class.
3502 ## Only applies to this chart's Prometheus (`prometheus.enabled`). Other scrapers that read these
3503 ## ServiceMonitors, such as Grafana Alloy, do not support scrape classes and still need the Secret.
3504 ## ref: https://prometheus-operator.dev/docs/developer/scrapeclass/
3506 controlPlaneScrapeClass:
3508 name: kube-prometheus-stack-control-plane
3511 credentialsFile: /var/run/secrets/kubernetes.io/serviceaccount/token
3512 # Service for thanos service discovery on sidecar
3513 # Enable this can make Thanos Query can use
3514 # `--store=dnssrv+_grpc._tcp.${kube-prometheus-stack.fullname}-thanos-discovery.${namespace}.svc.cluster.local` to discovery
3515 # Thanos sidecar on prometheus nodes
3516 # (Please remember to change ${kube-prometheus-stack.fullname} and ${namespace}. Not just copy and paste!)
3521 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3523 externalTrafficPolicy: Cluster
3524 ## Preference for routing traffic to the Service's endpoints, e.g. PreferClose to keep traffic in the client's zone
3525 ## Requires Kubernetes >= 1.31; newer versions also accept PreferSameZone and PreferSameNode. Not rendered when empty
3526 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
3528 trafficDistribution: ""
3532 ## Service dual stack
3536 ipFamilies: ["IPv6", "IPv4"]
3537 ipFamilyPolicy: "PreferDualStack"
3542 ## HTTP port config (for metrics)
3545 targetHttpPort: "http"
3546 ## ClusterIP to assign
3547 # Default is to make this a headless service ("None")
3549 ## Port to expose on each node, if service type is NodePort
3553 # ServiceMonitor to scrape Sidecar metrics
3554 # Needs thanosService to be enabled as well
3555 thanosServiceMonitor:
3558 ## Additional labels
3560 additionalLabels: {}
3561 ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
3563 ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
3564 ## Of type: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#tlsconfig
3567 ## Metric relabel configs to apply to samples before ingestion.
3568 metricRelabelings: []
3569 ## relabel configs to apply to samples before ingestion.
3571 # Service for external access to sidecar
3572 # Enabling this creates a service to expose thanos-sidecar outside the cluster.
3573 thanosServiceExternal:
3578 loadBalancerSourceRanges: []
3583 ## HTTP port config (for metrics)
3586 targetHttpPort: "http"
3587 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3589 externalTrafficPolicy: Cluster
3590 ## Preference for routing traffic to the Service's endpoints, e.g. PreferClose to keep traffic in the client's zone
3591 ## Requires Kubernetes >= 1.31; newer versions also accept PreferSameZone and PreferSameNode. Not rendered when empty
3592 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
3594 trafficDistribution: ""
3598 ## Port to expose on each node
3602 ## Configuration for Prometheus service
3611 ipFamilies: ["IPv6", "IPv4"]
3612 ipFamilyPolicy: "PreferDualStack"
3613 ## Port for Prometheus Service to listen on
3616 ## To be used with a proxy extraContainer port
3618 ## Port for Prometheus Reloader to listen on
3620 reloaderWebPort: 8080
3621 ## Port to expose for Prometheus Reloader
3622 ## Only used if service.type is 'NodePort'
3624 reloaderWebNodePort: null
3625 ## List of IP addresses at which the Prometheus server service is available
3626 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
3629 ## Port to expose on each node
3630 ## Only used if service.type is 'NodePort'
3634 ## Only use if service.type is "LoadBalancer"
3636 loadBalancerSourceRanges: []
3637 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3639 externalTrafficPolicy: Cluster
3643 ## Additional ports to open for Prometheus service
3647 # - name: oauth-proxy
3650 # - name: oauth-metrics
3654 ## Consider that all endpoints are considered "ready" even if the Pods themselves are not
3655 ## Ref: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
3656 publishNotReadyAddresses: false
3657 ## If you want to make sure that connections from a particular client are passed to the same Pod each time
3658 ## Accepts 'ClientIP' or 'None'
3660 sessionAffinity: None
3661 ## If you want to modify the ClientIP sessionAffinity timeout
3662 ## The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP"
3664 sessionAffinityConfig:
3666 timeoutSeconds: 10800
3667 ## Preference for routing traffic to the Service's endpoints, e.g. PreferClose to keep traffic in the client's zone
3668 ## Requires Kubernetes >= 1.31; newer versions also accept PreferSameZone and PreferSameNode. Not rendered when empty
3669 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
3671 trafficDistribution: ""
3672 ## Configuration for creating a separate Service for each statefulset Prometheus replica
3677 ## Port for Prometheus Service per replica to listen on
3680 ## To be used with a proxy extraContainer port
3682 ## Port to expose on each node
3683 ## Only used if servicePerReplica.type is 'NodePort'
3686 ## Loadbalancer source IP ranges
3687 ## Only used if servicePerReplica.type is "LoadBalancer"
3688 loadBalancerSourceRanges: []
3689 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3691 externalTrafficPolicy: Cluster
3695 ## Service dual stack
3699 ipFamilies: ["IPv6", "IPv4"]
3700 ipFamilyPolicy: "PreferDualStack"
3701 ## Configure pod disruption budgets for Prometheus
3702 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
3704 podDisruptionBudget:
3707 # maxUnavailable: ""
3708 unhealthyPodEvictionPolicy: AlwaysAllow
3709 ## Enable vertical pod autoscaler support for Prometheus
3710 ## ref: https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler
3712 verticalPodAutoscaler:
3714 # Recommender responsible for generating recommendation for the object.
3715 # List should be empty (then the default recommender will generate the recommendation)
3716 # or contain exactly one recommender.
3718 # - name: custom-recommender-performance
3720 # List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
3721 controlledResources: []
3722 # Specifies which resource values should be controlled: RequestsOnly or RequestsAndLimits.
3723 # controlledValues: RequestsAndLimits
3725 # Define the max allowed resources for the pod
3729 # Define the min allowed resources for the pod
3735 # Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
3736 # are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "InPlaceOrRecreate".
3737 updateMode: Recreate
3738 # Ingress exposes thanos sidecar outside the cluster
3741 ingressClassName: ""
3745 ## Port to expose on each node
3746 ## Only used if service.type is 'NodePort'
3749 ## Hosts must be provided if Ingress is enabled.
3752 # - thanos-gateway.domain.com
3754 ## Paths to use for ingress rules
3759 ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
3760 ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
3761 # pathType: ImplementationSpecific
3763 ## TLS configuration for Thanos Ingress
3764 ## Secret must be manually created in the namespace
3767 # - secretName: thanos-gateway-tls
3769 # - thanos-gateway.domain.com
3771 ## ExtraSecret can be used to store various data in an extra secret
3772 ## (use it for example to store hashed basic auth credentials)
3774 ## if not set, name will be auto generated
3779 # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
3780 # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
3784 ingressClassName: ""
3787 ## Redirect ingress to an additional defined port on the service
3791 ## Must be provided if Ingress is enabled.
3794 # - prometheus.domain.com
3796 ## Paths to use for ingress rules - one path should match the prometheusSpec.routePrefix
3801 ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
3802 ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
3803 # pathType: ImplementationSpecific
3805 ## TLS configuration for Prometheus Ingress
3806 ## Secret must be manually created in the namespace
3809 # - secretName: prometheus-general-tls
3811 # - prometheus.example.com
3812 # -- BETA: Configure the gateway routes for the chart here.
3813 # More routes can be added by adding a dictionary key like the 'main' route.
3814 # Be aware that this is an early beta of this feature,
3815 # kube-prometheus-stack does not guarantee this works and is subject to change.
3816 # Being BETA this can/will change in the future without notice, do not use unless you want to take that risk
3817 # [[ref]](https://gateway-api.sigs.k8s.io/reference/api-spec/main/spec/#gatewaynetworkingk8siov1alpha2)
3820 # -- Enables or disables the route
3822 # -- Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
3823 apiVersion: gateway.networking.k8s.io/v1
3824 # -- Set the route kind
3825 # Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
3830 # - my-filter.example.com
3834 # -- create http route for redirect (https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/#http-to-https-redirects)
3835 ## Take care that you only enable this on the http listener of the gateway to avoid an infinite redirect.
3836 ## matches, filters and additionalRules will be ignored if this is set to true. Be are
3837 httpsRedirect: false
3842 ## Filters define the filters that are applied to requests that match this rule.
3844 ## Timeouts for the generated HTTPRoute backend rule.
3845 ## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
3848 # backendRequest: 60s
3850 ## Session persistence configuration for the route rule.
3851 sessionPersistence: {}
3852 # sessionName: route
3854 # absoluteTimeout: 12h
3856 # lifetimeType: Permanent
3858 ## Additional custom rules that can be added to the route
3860 ## Configuration for creating an Ingress that will map to each Prometheus replica service
3861 ## prometheus.servicePerReplica must be enabled
3865 ingressClassName: ""
3868 ## Final form of the hostname for each per replica ingress is
3869 ## {{ ingressPerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ ingressPerReplica.hostDomain }}
3871 ## Prefix for the per replica ingress that will have `-$replicaNumber`
3872 ## appended to the end
3874 ## Domain that will be used for the per replica ingress
3876 ## Paths to use for ingress rules
3881 ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
3882 ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
3883 # pathType: ImplementationSpecific
3885 ## Secret name containing the TLS certificate for Prometheus per replica ingress
3886 ## Secret must be manually created in the namespace
3888 ## Separated secret for each per replica Ingress. Can be used together with cert-manager
3890 tlsSecretPerReplica:
3892 ## Final form of the secret for each per replica ingress is
3893 ## {{ tlsSecretPerReplica.prefix }}-{{ $replicaNumber }}
3895 prefix: "prometheus"
3896 ## Configuration for creating a Gateway API route that will map to each Prometheus replica service
3897 ## prometheus.servicePerReplica must be enabled
3901 # -- Enables or disables the routePerReplica
3903 # -- Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
3904 apiVersion: gateway.networking.k8s.io/v1
3905 # -- Set the route kind
3906 # Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
3910 ## Final form of the hostname for each per replica route is
3911 ## {{ routePerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ routePerReplica.hostDomain }}
3913 ## Prefix for the per replica route that will have `-$replicaNumber` appended to the end
3915 ## Domain that will be used for the per replica route
3920 # -- create http route for redirect (https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/#http-to-https-redirects)
3921 ## Take care that you only enable this on the http listener of the gateway to avoid an infinite redirect.
3922 ## matches, filters and additionalRules will be ignored if this is set to true.
3923 httpsRedirect: false
3924 ## Filters define the filters that are applied to requests that match this rule.
3930 ## Timeouts for the generated HTTPRoute backend rule.
3931 ## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
3934 # backendRequest: 60s
3936 ## Session persistence configuration for the route rule.
3937 sessionPersistence: {}
3938 # sessionName: route
3940 # absoluteTimeout: 12h
3942 # lifetimeType: Permanent
3944 ## Additional custom rules that can be added to the route
3947 ## If true, create a serviceMonitor for prometheus
3950 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
3953 ## Additional labels
3955 additionalLabels: {}
3956 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
3957 ## If not set, the default scrape class (if any) is used.
3960 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
3963 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
3966 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
3969 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
3971 labelNameLengthLimit: 0
3972 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
3974 labelValueLengthLimit: 0
3975 ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
3977 ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
3978 ## Of type: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#tlsconfig
3981 ## Metric relabel configs to apply to samples before ingestion.
3983 metricRelabelings: []
3985 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
3986 # sourceLabels: [__name__]
3988 # relabel configs to apply to samples before ingestion.
3991 # - sourceLabels: [__meta_kubernetes_pod_node_name]
3994 # targetLabel: nodename
3998 ## Additional Endpoints
4000 additionalEndpoints: []
4001 # - port: oauth-metrics
4003 ## Settings affecting prometheusSpec
4004 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#prometheusspec
4007 ## Statefulset's persistent volume claim retention policy
4008 ## whenDeleted and whenScaled determine whether
4009 ## statefulset's PVCs are deleted (true) or retained (false)
4010 ## on scaling down and deleting statefulset, respectively.
4011 ## Requires Kubernetes version 1.27.0+.
4012 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
4013 persistentVolumeClaimRetentionPolicy: {}
4014 # whenDeleted: Retain
4015 # whenScaled: Retain
4017 ## If true, pass --storage.tsdb.max-block-duration=2h to prometheus. This is already done if using Thanos
4019 disableCompaction: false
4020 ## AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in the pod,
4021 ## If the field isn't set, the operator mounts the service account token by default.
4022 ## Warning: be aware that by default, Prometheus requires the service account token for Kubernetes service discovery,
4023 ## It is possible to use strategic merge patch to project the service account token into the 'prometheus' container.
4024 automountServiceAccountToken: true
4026 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#apiserverconfig
4029 ## Allows setting additional arguments for the Prometheus container
4030 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.Prometheus
4032 ## Convert all classic histograms to native histograms with custom buckets.
4033 ## This corresponds to the 'convert_classic_histograms_to_nhcb' field in Prometheus configuration.
4035 convertClassicHistogramsToNHCB: false
4036 ## Enable scraping of classic histograms that are also exposed as native histograms.
4037 ## This corresponds to the 'always_scrape_classic_histograms' field in Prometheus configuration.
4039 scrapeClassicHistograms: false
4040 ## Enable scraping of native histograms.
4041 ## This corresponds to the 'scrape_native_histograms' field in Prometheus configuration.
4043 scrapeNativeHistograms: false
4044 ## File to which scrape failures are logged.
4045 ## Reloading the configuration will reopen the file.
4046 ## Defaults to empty (disabled)
4047 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.Prometheus
4049 scrapeFailureLogFile: ""
4050 ## Interval between consecutive scrapes.
4052 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/release-0.44/pkg/prometheus/promcfg.go#L180-L183
4055 ## Number of seconds to wait for target to respond before erroring
4058 ## List of scrape classes to expose to scraping objects such as
4059 ## PodMonitors, ServiceMonitors, Probes and ScrapeConfigs.
4062 # - name: istio-mtls
4065 # caFile: /etc/prometheus/secrets/istio.default/root-cert.pem
4066 # certFile: /etc/prometheus/secrets/istio.default/cert-chain.pem
4068 ## PodTargetLabels are appended to the `spec.podTargetLabels` field of all PodMonitor and ServiceMonitor objects.
4073 ## Interval between consecutive evaluations.
4075 evaluationInterval: ""
4076 ## ListenLocal makes the Prometheus server listen on loopback, so that it does not bind against the Pod IP.
4079 ## enableOTLPReceiver enables the OTLP receiver for Prometheus.
4080 enableOTLPReceiver: false
4081 ## EnableAdminAPI enables Prometheus the administrative HTTP API which includes functionality such as deleting time series.
4082 ## This is disabled by default.
4083 ## ref: https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis
4085 enableAdminAPI: false
4086 ## Sets version of Prometheus overriding the Prometheus version as derived
4087 ## from the image tag. Useful in cases where the tag does not follow semver v2.
4089 ## WebTLSConfig defines the TLS parameters for HTTPS
4090 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#webtlsconfig
4092 ## Exemplars related settings that are runtime reloadable.
4093 ## It requires to enable the exemplar storage feature to be effective.
4095 ## Maximum number of exemplars stored in memory for all series.
4096 ## If not set, Prometheus uses its default value.
4097 ## A value of zero or less than zero disables the storage.
4100 # EnableFeatures API enables access to Prometheus disabled features.
4101 # ref: https://prometheus.io/docs/prometheus/latest/feature_flags/
4103 # - exemplar-storage
4105 ## https://prometheus.io/docs/guides/opentelemetry
4108 # promoteResourceAttributes: []
4109 # keepIdentifyingResourceAttributes: false
4110 # translationStrategy: NoUTF8EscapingWithSuffixes
4111 # convertHistogramsToNHCB: false
4115 ## Image of Prometheus.
4119 repository: chainguard-private/prometheus
4121 sha: sha256:c1228a34ef4b252d9915ea41c285eaee27a2235a144a24317d2bac197628f381
4122 pullPolicy: IfNotPresent
4123 ## Tolerations for use with node taints
4124 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
4130 # effect: "NoSchedule"
4132 ## If specified, the pod's topology spread constraints.
4133 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
4135 topologySpreadConstraints: []
4137 # topologyKey: topology.kubernetes.io/zone
4138 # whenUnsatisfiable: DoNotSchedule
4145 disableAlerting: false
4146 ## Alertmanagers to which alerts will be sent
4147 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#alertmanagerendpoints
4149 ## Default configuration will connect to the alertmanager deployed as part of this release
4151 alertingEndpoints: []
4158 # bearerTokenFile: ""
4161 ## External labels to add to any time series or alerts when communicating with external systems
4164 ## enable --web.enable-remote-write-receiver flag on prometheus-server
4166 enableRemoteWriteReceiver: false
4167 ## Store additional time series for each scrape: scrape_timeout_seconds, scrape_sample_limit and
4168 ## scrape_body_size_bytes. Useful for seeing how close targets are to their configured limits.
4169 ## Uses the operator default when left unset (~). Requires Prometheus >= v2.32.0.
4171 extraScrapeMetrics: ~
4172 ## Name of the external label used to denote replica name
4174 replicaExternalLabelName: ""
4175 ## If true, the Operator won't add the external label used to denote replica name
4177 replicaExternalLabelNameClear: false
4178 ## Name of the external label used to denote Prometheus instance name
4180 prometheusExternalLabelName: ""
4181 ## If true, the Operator won't add the external label used to denote Prometheus instance name
4183 prometheusExternalLabelNameClear: false
4184 ## External URL at which Prometheus will be reachable.
4187 ## Define which Nodes the Pods are scheduled on.
4188 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
4191 kubernetes.io/os: linux
4192 ## Secrets is a list of Secrets in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods.
4193 ## The Secrets are mounted into /etc/prometheus/secrets/. Secrets changes after initial creation of a Prometheus object are not
4194 ## reflected in the running Pods. To change the secrets mounted into the Prometheus Pods, the object must be deleted and recreated
4195 ## with the new list of secrets.
4198 ## ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods.
4199 ## The ConfigMaps are mounted into /etc/prometheus/configmaps/.
4202 ## QuerySpec defines the query command line flags when starting Prometheus.
4203 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#queryspec
4206 ## If nil, select own namespace. Namespaces to be selected for PrometheusRules discovery.
4207 ruleNamespaceSelector: {}
4208 ## Example which selects PrometheusRules in namespaces with label "prometheus" set to "somelabel"
4209 # ruleNamespaceSelector:
4211 # prometheus: somelabel
4213 ## If true, a nil or {} value for prometheus.prometheusSpec.ruleSelector will cause the
4214 ## prometheus resource to be created with selectors based on values in the helm deployment,
4215 ## which will also match the PrometheusRule resources created
4217 ruleSelectorNilUsesHelmValues: true
4218 ## PrometheusRules to be selected for target discovery.
4219 ## If {}, select all PrometheusRules
4222 ## Example which select all PrometheusRules resources
4223 ## with label "prometheus" with values any of "example-rules" or "example-rules-2"
4232 ## Example which select all PrometheusRules resources with label "role" set to "example-rules"
4235 # role: example-rules
4237 ## If true, a nil or {} value for prometheus.prometheusSpec.serviceMonitorSelector will cause the
4238 ## prometheus resource to be created with selectors based on values in the helm deployment,
4239 ## which will also match the servicemonitors created
4241 serviceMonitorSelectorNilUsesHelmValues: true
4242 ## ServiceMonitors to be selected for target discovery.
4243 ## If {}, select all ServiceMonitors
4245 serviceMonitorSelector: {}
4246 ## Example which selects ServiceMonitors with label "prometheus" set to "somelabel"
4247 # serviceMonitorSelector:
4249 # prometheus: somelabel
4251 ## Namespaces to be selected for ServiceMonitor discovery.
4253 serviceMonitorNamespaceSelector: {}
4254 ## Example which selects ServiceMonitors in namespaces with label "prometheus" set to "somelabel"
4255 # serviceMonitorNamespaceSelector:
4257 # prometheus: somelabel
4259 ## If true, a nil or {} value for prometheus.prometheusSpec.podMonitorSelector will cause the
4260 ## prometheus resource to be created with selectors based on values in the helm deployment,
4261 ## which will also match the podmonitors created
4263 podMonitorSelectorNilUsesHelmValues: true
4264 ## PodMonitors to be selected for target discovery.
4265 ## If {}, select all PodMonitors
4267 podMonitorSelector: {}
4268 ## Example which selects PodMonitors with label "prometheus" set to "somelabel"
4269 # podMonitorSelector:
4271 # prometheus: somelabel
4273 ## If nil, select own namespace. Namespaces to be selected for PodMonitor discovery.
4274 podMonitorNamespaceSelector: {}
4275 ## Example which selects PodMonitor in namespaces with label "prometheus" set to "somelabel"
4276 # podMonitorNamespaceSelector:
4278 # prometheus: somelabel
4280 ## If true, a nil or {} value for prometheus.prometheusSpec.probeSelector will cause the
4281 ## prometheus resource to be created with selectors based on values in the helm deployment,
4282 ## which will also match the probes created
4284 probeSelectorNilUsesHelmValues: true
4285 ## Probes to be selected for target discovery.
4286 ## If {}, select all Probes
4289 ## Example which selects Probes with label "prometheus" set to "somelabel"
4292 # prometheus: somelabel
4294 ## If nil, select own namespace. Namespaces to be selected for Probe discovery.
4295 probeNamespaceSelector: {}
4296 ## Example which selects Probe in namespaces with label "prometheus" set to "somelabel"
4297 # probeNamespaceSelector:
4299 # prometheus: somelabel
4301 ## If true, a nil or {} value for prometheus.prometheusSpec.scrapeConfigSelector will cause the
4302 ## prometheus resource to be created with selectors based on values in the helm deployment,
4303 ## which will also match the scrapeConfigs created
4305 ## If null and scrapeConfigSelector is also null, exclude field from the prometheusSpec
4306 ## (keeping downward compatibility with older versions of CRD)
4308 scrapeConfigSelectorNilUsesHelmValues: true
4309 ## scrapeConfigs to be selected for target discovery.
4310 ## If {}, select all scrapeConfigs
4312 scrapeConfigSelector: {}
4313 ## Example which selects scrapeConfigs with label "prometheus" set to "somelabel"
4314 # scrapeConfigSelector:
4316 # prometheus: somelabel
4318 ## If nil, select own namespace. Namespaces to be selected for scrapeConfig discovery.
4319 ## If null, exclude the field from the prometheusSpec (keeping downward compatibility with older versions of CRD)
4320 scrapeConfigNamespaceSelector: {}
4321 ## Example which selects scrapeConfig in namespaces with label "prometheus" set to "somelabel"
4322 # scrapeConfigNamespaceSelector:
4324 # prometheus: somelabel
4326 ## How long to retain metrics
4329 ## Maximum size of metrics
4330 ## Unit format should be in the form of "50GiB"
4332 ## Maximum percentage of the data volume's capacity used by the metrics, between 0 and 100.
4333 ## Requires Prometheus >= v3.11.0, ignored by older versions.
4334 retentionPercentage: ""
4335 ## Allow out-of-order/out-of-bounds samples ingested into Prometheus for a specified duration
4336 ## See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tsdb
4338 outOfOrderTimeWindow: 0s
4339 ## Per-chunk-type encoding overrides, requires Prometheus >= v3.13.0.
4343 ## Ratio of stale series in memory, between 0 and 1, at which stale series are compacted into persistent blocks.
4344 staleSeriesCompactionThreshold: ""
4345 ## Enable compression of the write-ahead log using Snappy.
4347 walCompression: true
4348 ## If true, the Operator won't process any Prometheus configuration changes
4351 ## Number of replicas of each shard to deploy for a Prometheus deployment.
4352 ## Number of replicas multiplied by shards is the total number of Pods created.
4355 ## EXPERIMENTAL: Number of shards to distribute targets onto.
4356 ## Number of replicas multiplied by shards is the total number of Pods created.
4357 ## Note that scaling down shards will not reshard data onto remaining instances, it must be manually moved.
4358 ## Increasing shards will not reshard data either but it will continue to be available from the same instances.
4359 ## To query globally use Thanos sidecar and Thanos querier or remote write data to a central location.
4360 ## Sharding is done on the content of the `__address__` target meta-label.
4361 ## Set shards to null to omit spec.shards from the Prometheus custom resource (the operator then
4362 ## defaults to 1 shard). Omitting the field lets an external autoscaler such as an HPA or a KEDA
4363 ## ScaledObject own spec.shards through the /scale subresource without Helm reverting it.
4366 ## Log level for Prometheus be configured in
4369 ## Log format for Prometheus be configured in
4372 ## Prefix used to register routes, overriding externalUrl route.
4373 ## Useful for proxies that rewrite URLs.
4376 ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
4377 ## Metadata Labels and Annotations gets propagated to the prometheus pods.
4382 # k8s-app: prometheus
4384 ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
4385 ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
4386 ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
4387 ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
4388 podAntiAffinity: "soft"
4389 ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
4390 ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
4392 podAntiAffinityTopologyKey: kubernetes.io/hostname
4393 ## Assign custom affinity rules to the prometheus instance
4394 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
4398 # requiredDuringSchedulingIgnoredDuringExecution:
4399 # nodeSelectorTerms:
4400 # - matchExpressions:
4401 # - key: kubernetes.io/e2e-az-name
4407 ## The remote_read spec configuration for Prometheus.
4408 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#remotereadspec
4410 # - url: http://remote1/read
4411 ## additionalRemoteRead is appended to remoteRead
4412 additionalRemoteRead: []
4413 ## The remote_write spec configuration for Prometheus.
4414 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#remotewritespec
4416 # - url: http://remote1/push
4417 ## additionalRemoteWrite is appended to remoteWrite
4418 additionalRemoteWrite: []
4419 ## Enable/Disable Grafana dashboards provisioning for prometheus remote write feature
4420 remoteWriteDashboards: false
4421 ## Resource limits & requests
4427 ## Prometheus StorageSpec for persistent data
4428 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/platform/storage.md
4431 ## Using PersistentVolumeClaim
4433 # volumeClaimTemplate:
4435 # storageClassName: gluster
4436 # accessModes: ["ReadWriteOnce"]
4442 ## Using tmpfs volume
4447 # Additional volumes on the output StatefulSet definition.
4449 # Additional VolumeMounts on the output StatefulSet definition.
4451 ## AdditionalScrapeConfigs allows specifying additional Prometheus scrape configurations. Scrape configurations
4452 ## are appended to the configurations generated by the Prometheus Operator. Job configurations must have the form
4453 ## as specified in the official Prometheus documentation:
4454 ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config. As scrape configs are
4455 ## appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility
4456 ## to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible
4457 ## scrape configs are going to break Prometheus after the upgrade.
4458 ## AdditionalScrapeConfigs can be defined as a list or as a templated string.
4460 ## The scrape configuration example below will find master nodes, provided they have the name .*mst.*, relabel the
4461 ## port to 2379 and allow etcd scraping provided it is running on all Kubernetes master nodes
4463 additionalScrapeConfigs: []
4464 # - job_name: kube-etcd
4465 # kubernetes_sd_configs:
4469 # ca_file: /etc/prometheus/secrets/etcd-client-cert/etcd-ca
4470 # cert_file: /etc/prometheus/secrets/etcd-client-cert/etcd-client
4471 # key_file: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key
4473 # - action: labelmap
4474 # regex: __meta_kubernetes_node_label_(.+)
4475 # - source_labels: [__address__]
4477 # target_label: __address__
4478 # regex: ([^:;]+):(\d+)
4479 # replacement: ${1}:2379
4480 # - source_labels: [__meta_kubernetes_node_name]
4483 # - source_labels: [__meta_kubernetes_node_name]
4485 # target_label: node
4488 # metric_relabel_configs:
4489 # - regex: (kubernetes_io_hostname|failure_domain_beta_kubernetes_io_region|beta_kubernetes_io_os|beta_kubernetes_io_arch|beta_kubernetes_io_instance_type|failure_domain_beta_kubernetes_io_zone)
4492 ## If scrape config contains a repetitive section, you may want to use a template.
4493 ## In the following example, you can see how to define `gce_sd_configs` for multiple zones
4494 # additionalScrapeConfigs: |
4495 # - job_name: "node-exporter"
4497 # {{range $zone := .Values.gcp_zones}}
4498 # - project: "project1"
4505 ## If additional scrape configurations are already deployed in a single secret file you can use this section.
4506 ## Expected values are the secret name and key
4507 ## Cannot be used with additionalScrapeConfigs
4508 additionalScrapeConfigsSecret: {}
4513 ## additionalPrometheusSecretsAnnotations allows to add annotations to the kubernetes secret. This can be useful
4514 ## when deploying via spinnaker to disable versioning on the secret, strategy.spinnaker.io/versioned: 'false'
4515 additionalPrometheusSecretsAnnotations: {}
4516 ## AdditionalAlertManagerConfigs allows for manual configuration of alertmanager jobs in the form as specified
4517 ## in the official Prometheus documentation https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config.
4518 ## AlertManager configurations specified are appended to the configurations generated by the Prometheus Operator.
4519 ## As AlertManager configs are appended, the user is responsible to make sure it is valid. Note that using this
4520 ## feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release
4521 ## notes to ensure that no incompatible AlertManager configs are going to break Prometheus after the upgrade.
4523 additionalAlertManagerConfigs: []
4524 # - consul_sd_configs:
4525 # - server: consul.dev.test:8500
4528 # tag_separator: ','
4530 # - metrics-prometheus-alertmanager
4532 ## If additional alertmanager configurations are already deployed in a single secret, or you want to manage
4533 ## them separately from the helm deployment, you can use this section.
4534 ## Expected values are the secret name and key
4535 ## Cannot be used with additionalAlertManagerConfigs
4536 additionalAlertManagerConfigsSecret: {}
4541 ## AdditionalAlertRelabelConfigs allows specifying Prometheus alert relabel configurations. Alert relabel configurations specified are appended
4542 ## to the configurations generated by the Prometheus Operator. Alert relabel configurations specified must have the form as specified in the
4543 ## official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs.
4544 ## As alert relabel configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the
4545 ## possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible alert relabel
4546 ## configs are going to break Prometheus after the upgrade.
4548 additionalAlertRelabelConfigs: []
4550 # regex: prometheus_replica
4554 ## If additional alert relabel configurations are already deployed in a single secret, or you want to manage
4555 ## them separately from the helm deployment, you can use this section.
4556 ## Expected values are the secret name and key
4557 ## Cannot be used with additionalAlertRelabelConfigs
4558 additionalAlertRelabelConfigsSecret: {}
4562 ## SecurityContext holds pod-level security attributes and common container settings.
4563 ## This defaults to non root user with uid 1000 and gid 2000.
4564 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md
4572 type: RuntimeDefault
4573 ## DNS configuration for Prometheus.
4574 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.PodDNSConfig
4576 ## DNS policy for Prometheus.
4577 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#dnspolicystring-alias
4579 ## Priority class assigned to the Pods
4581 priorityClassName: ""
4582 ## Thanos configuration allows configuring various aspects of a Prometheus server in a Thanos environment.
4583 ## This section is experimental, it may change significantly without deprecation notice in any release.
4584 ## This is experimental and may change significantly without backward compatibility in any release.
4585 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#thanosspec
4588 # image: quay.io/thanos/thanos
4589 # secretProviderClass:
4593 # - resourceName: "projects/$PROJECT_ID/secrets/testsecret/versions/latest"
4594 # fileName: "objstore.yaml"
4595 ## ObjectStorageConfig configures object storage in Thanos.
4596 # objectStorageConfig:
4597 # # use existing secret, if configured, objectStorageConfig.secret will not be used
4598 # existingSecret: {}
4601 # # will render objectStorageConfig secret data and configure it to be used by Thanos custom resource,
4602 # # ignored when prometheusspec.thanos.objectStorageConfig.existingSecret is set
4603 # # https://thanos.io/tip/thanos/storage.md/#s3
4613 ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to a Prometheus pod.
4614 ## if using proxy extraContainer update targetPort with proxy container port
4617 # - name: oauth-proxy
4618 # image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.6
4620 # - --upstream=http://127.0.0.1:9090
4621 # - --http-address=0.0.0.0:8081
4622 # - --metrics-address=0.0.0.0:8082
4625 # - containerPort: 8081
4628 # - containerPort: 8082
4629 # name: oauth-metrics
4633 ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
4634 ## (permissions, dir tree) on mounted volumes before starting prometheus
4636 ## PortName to use for Prometheus.
4638 portName: "http-web"
4639 ## ArbitraryFSAccessThroughSMs configures whether configuration based on a service monitor can access arbitrary files
4640 ## on the file system of the Prometheus container e.g. bearer token files.
4641 arbitraryFSAccessThroughSMs: false
4642 ## OverrideHonorLabels if set to true overrides all user configured honor_labels. If HonorLabels is set in ServiceMonitor
4643 ## or PodMonitor to true, this overrides honor_labels to false.
4644 overrideHonorLabels: false
4645 ## OverrideHonorTimestamps allows to globally enforce honoring timestamps in all scrape configs.
4646 overrideHonorTimestamps: false
4647 ## When ignoreNamespaceSelectors is set to true, namespaceSelector from all PodMonitor, ServiceMonitor and Probe objects will be ignored,
4648 ## they will only discover targets within the namespace of the PodMonitor, ServiceMonitor and Probe object,
4649 ## and servicemonitors will be installed in the default service namespace.
4650 ## Defaults to false.
4651 ignoreNamespaceSelectors: false
4652 ## EnforcedNamespaceLabel enforces adding a namespace label of origin for each alert and metric that is user created.
4653 ## The label value will always be the namespace of the object that is being created.
4654 ## Disabled by default
4655 enforcedNamespaceLabel: ""
4656 ## PrometheusRulesExcludedFromEnforce - list of prometheus rules to be excluded from enforcing of adding namespace labels.
4657 ## Works only if enforcedNamespaceLabel set to true. Make sure both ruleNamespace and ruleName are set for each pair
4658 ## Deprecated, use `excludedFromEnforcement` instead
4659 prometheusRulesExcludedFromEnforce: []
4660 ## ExcludedFromEnforcement - list of object references to PodMonitor, ServiceMonitor, Probe and PrometheusRule objects
4661 ## to be excluded from enforcing a namespace label of origin.
4662 ## Works only if enforcedNamespaceLabel set to true.
4663 ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#objectreference
4664 excludedFromEnforcement: []
4665 ## QueryLogFile specifies the file to which PromQL queries are logged. Note that this location must be writable,
4666 ## and can be persisted using an attached volume. Alternatively, the location can be set to a stdout location such
4667 ## as /dev/stdout to log querie information to the default Prometheus log stream. This is only available in versions
4668 ## of Prometheus >= 2.16.0. For more details, see the Prometheus docs (https://prometheus.io/docs/guides/query-log/)
4670 # Use to set global sample_limit for Prometheus. This act as default SampleLimit for ServiceMonitor or/and PodMonitor.
4671 # Set to 'false' to disable global sample_limit. or set to a number to override the default value.
4673 ## TargetLimit defines a global limit on the number of scraped targets. 0 means no limit.
4675 ## Per-scrape limit on number of labels that will be accepted for a sample. 0 means no limit.
4677 ## Per-scrape limit on length of labels name that will be accepted for a sample. 0 means no limit.
4678 labelNameLengthLimit: 0
4679 ## Per-scrape limit on length of labels value that will be accepted for a sample. 0 means no limit.
4680 labelValueLengthLimit: 0
4681 ## Per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit.
4682 keepDroppedTargets: 0
4683 ## BodySizeLimit defines a global limit on the size of uncompressed response body that will be accepted. Example: 100MB.
4685 ## EnforcedBodySizeLimit defines the maximum size of uncompressed response body that will be accepted, overriding any
4686 ## value set per ServiceMonitor/PodMonitor. Example: 100MB. Empty means no limit.
4687 enforcedBodySizeLimit: ""
4688 # EnforcedKeepDroppedTargetsLimit defines on the number of targets dropped by relabeling that will be kept in memory.
4689 # The value overrides any spec.keepDroppedTargets set by ServiceMonitor, PodMonitor, Probe objects unless spec.keepDroppedTargets
4690 # is greater than zero and less than spec.enforcedKeepDroppedTargets. 0 means no limit.
4691 enforcedKeepDroppedTargets: 0
4692 ## EnforcedSampleLimit defines global limit on number of scraped samples that will be accepted. This overrides any SampleLimit
4693 ## set per ServiceMonitor or/and PodMonitor. It is meant to be used by admins to enforce the SampleLimit to keep overall
4694 ## number of samples/series under the desired limit. Note that if SampleLimit is lower that value will be taken instead.
4695 enforcedSampleLimit: false
4696 ## EnforcedTargetLimit defines a global limit on the number of scraped targets. This overrides any TargetLimit set
4697 ## per ServiceMonitor or/and PodMonitor. It is meant to be used by admins to enforce the TargetLimit to keep the overall
4698 ## number of targets under the desired limit. Note that if TargetLimit is lower, that value will be taken instead, except
4699 ## if either value is zero, in which case the non-zero value will be used. If both values are zero, no limit is enforced.
4700 enforcedTargetLimit: false
4701 ## Per-scrape limit on number of labels that will be accepted for a sample. If more than this number of labels are present
4702 ## post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus versions
4703 ## 2.27.0 and newer.
4704 enforcedLabelLimit: false
4705 ## Per-scrape limit on length of labels name that will be accepted for a sample. If a label name is longer than this number
4706 ## post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus versions
4707 ## 2.27.0 and newer.
4708 enforcedLabelNameLengthLimit: false
4709 ## Per-scrape limit on length of labels value that will be accepted for a sample. If a label value is longer than this
4710 ## number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit. Only valid in Prometheus
4711 ## versions 2.27.0 and newer.
4712 enforcedLabelValueLengthLimit: false
4713 ## AllowOverlappingBlocks enables vertical compaction and vertical query merge in Prometheus. This is still experimental
4714 ## in Prometheus so it may change in any upcoming release.
4715 allowOverlappingBlocks: false
4716 ## Specifies the validation scheme for metric and label names.
4717 ## Supported values are: Legacy, UTF8
4718 nameValidationScheme: ""
4719 ## Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to
4720 ## be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).
4722 ## Duration in seconds the pod needs to terminate gracefully.
4723 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination
4724 terminationGracePeriodSeconds: ~
4725 # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
4726 # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
4727 # Use the host's network namespace if true. Make sure to understand the security implications if you want to enable it.
4728 # When hostNetwork is enabled, this will set dnsPolicy to ClusterFirstWithHostNet automatically.
4730 ## Use the host's user namespace for Prometheus pods.
4731 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/
4733 # HostAlias holds the mapping between IP and hostnames that will be injected
4734 # as an entry in the pod's hosts file.
4741 ## TracingConfig configures tracing in Prometheus.
4742 ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#prometheustracingconfig
4744 ## Defines the service discovery role used to discover targets from ServiceMonitor objects and Alertmanager endpoints.
4745 ## If set, the value should be either "Endpoints" or "EndpointSlice". If unset, the operator assumes the "Endpoints" role.
4746 serviceDiscoveryRole: ""
4747 ## EnableServiceLinks indicates whether information about services should be injected into the pod's environment
4748 ## variables. Uses the operator/Kubernetes default when left unset (~).
4749 enableServiceLinks: ~
4750 ## Set the scheduler name to use for the Prometheus pods.
4752 ## Specifies the character escaping scheme applied to metric and label names.
4753 ## Supported values are: AllowUTF8, Underscores, Dots, Values
4754 nameEscapingScheme: ""
4755 ## Defines the strategy used to reload the Prometheus configuration.
4756 ## Supported values are: HTTP, ProcessSignal
4758 ## Defines the offset the rule evaluation timestamp of the rule evaluation queries is shifted backwards.
4759 ## ref: https://github.com/prometheus-community/helm-charts/issues/5843
4761 ## Configuration of the Prometheus rules' engine. Changing these triggers a restart of the pods.
4762 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.Rules
4765 # forOutageTolerance: 1h
4766 # forGracePeriod: 10m
4769 ## RuntimeConfig configures the values for the Prometheus process behavior.
4773 ## Defines the sharding strategy applied by the operator.
4774 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.ShardingStrategy
4775 shardingStrategy: {}
4776 ## Defines the retention policy for the resources of stale shards after a scale-down.
4777 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.ShardRetentionPolicy
4778 shardRetentionPolicy: {}
4779 ## List of the protobuf message versions to accept when receiving the remote writes. Example: [V1.0, V2.0].
4780 remoteWriteReceiverMessageVersions: []
4781 ## Pod management policy. Kubernetes default is OrderedReady but prometheus-operator default is Parallel.
4782 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
4783 podManagementPolicy: ""
4784 ## Update strategy for the StatefulSet.
4785 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
4787 # type: RollingUpdate
4791 ## Additional configuration which is not covered by the properties above. (passed through tpl)
4792 additionalConfig: {}
4793 ## Additional configuration which is not covered by the properties above.
4794 ## Useful, if you need advanced templating inside alertmanagerSpec.
4795 ## Otherwise, use prometheus.prometheusSpec.additionalConfig (passed through tpl)
4796 additionalConfigString: ""
4797 ## Defines the maximum time that the `prometheus` container's startup probe
4798 ## will wait before being considered failed. The startup probe will return
4799 ## success after the WAL replay is complete. If set, the value should be
4800 ## greater than 60 (seconds). Otherwise it will be equal to 900 seconds (15
4802 maximumStartupDurationSeconds: 0
4803 ## Set default scrapeProtocols for Prometheus instances
4804 ## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#scrapeprotocolstring-alias
4806 additionalRulesForClusterRole: []
4807 # - apiGroups: [ "" ]
4810 # verbs: [ "get", "list", "watch" ]
4812 ## Additional ServiceMonitors to deploy as a list or map.
4813 ## Maps allow individual monitors and their fields to be merged across values files.
4814 ## Set a map entry to null to remove it when overriding values.
4815 ## The map key is used as the name unless an explicit name is set.
4816 ## Nested lists such as endpoints are replaced when overridden.
4818 additionalServiceMonitors: null
4823 # app: example-service
4827 ## List example and available fields:
4828 ## Name of the ServiceMonitor to create (required for list entries)
4832 ## Additional labels to set used for the ServiceMonitorSelector. Together with standard labels from
4835 # additionalLabels: {}
4837 ## Service label for use in assembling a job name of the form <label value>-<port>
4838 ## If no label is specified, the service name is used.
4842 ## labels to transfer from the kubernetes service to the target
4846 ## labels to transfer from the kubernetes pods to the target
4848 # podTargetLabels: []
4850 ## Label selector for services to which this ServiceMonitor applies
4853 ## Example which selects all services to be monitored
4854 ## with label "monitoredby" with values any of "example-service-1" or "example-service-2"
4856 # - key: "monitoredby"
4859 # - example-service-1
4860 # - example-service-2
4862 ## label selector for services
4866 ## Namespaces from which services are selected
4868 # namespaceSelector:
4869 ## Match any namespace
4873 ## Explicit list of namespace names to select
4877 ## Endpoints of the selected service to be monitored
4880 ## Name of the endpoint's service port
4881 ## Mutually exclusive with targetPort
4884 ## Name or number of the endpoint's target port
4885 ## Mutually exclusive with port
4888 ## File containing bearer token to be used when scraping targets
4890 # bearerTokenFile: ""
4892 ## Interval at which metrics should be scraped
4896 ## HTTP path to scrape for metrics
4900 ## HTTP scheme to use for scraping
4904 ## TLS configuration to use when scraping the endpoint
4908 ## Path to the CA file
4912 ## Path to client certificate file
4916 ## Skip certificate verification
4918 # insecureSkipVerify: false
4920 ## Path to client key file
4924 ## Server name used to verify host name
4928 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
4929 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
4931 # metricRelabelings: []
4933 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
4934 # sourceLabels: [__name__]
4936 ## RelabelConfigs to apply to samples before scraping
4937 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
4940 # - sourceLabels: [__meta_kubernetes_pod_node_name]
4943 # targetLabel: nodename
4947 ## Fallback scrape protocol used by Prometheus for scraping metrics
4948 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.ScrapeProtocol
4950 # fallbackScrapeProtocol: ""
4952 ## Attaches node metadata to the discovered targets
4953 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.AttachMetadata
4958 ## Additional PodMonitors to deploy as a list or map.
4959 ## Maps allow individual monitors and their fields to be merged across values files.
4960 ## Set a map entry to null to remove it when overriding values.
4961 ## The map key is used as the name unless an explicit name is set.
4962 ## Nested lists such as podMetricsEndpoints are replaced when overridden.
4964 additionalPodMonitors: null
4970 # podMetricsEndpoints:
4972## List example and available fields:
4973## Name of the PodMonitor to create (required for list entries)
4977## Additional labels to set used for the PodMonitorSelector. Together with standard labels from
4980# additionalLabels: {}
4982## Pod label for use in assembling a job name of the form <label value>-<port>
4983## If no label is specified, the pod endpoint name is used.
4987## Label selector for pods to which this PodMonitor applies
4990## Example which selects all Pods to be monitored
4991## with label "monitoredby" with values any of "example-pod-1" or "example-pod-2"
4993# - key: "monitoredby"
4999## label selector for pods
5003## PodTargetLabels transfers labels on the Kubernetes Pod onto the target.
5005# podTargetLabels: {}
5007## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
5011## Namespaces from which pods are selected
5014## Match any namespace
5018## Explicit list of namespace names to select
5022## Endpoints of the selected pods to be monitored
5023## https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#podmetricsendpoint
5025# podMetricsEndpoints: []
5027## Fallback scrape protocol used by Prometheus for scraping metrics
5028## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.ScrapeProtocol
5030# fallbackScrapeProtocol: ""
5032## Attaches node metadata to the discovered targets
5033## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.AttachMetadata
5038## Configuration for thanosRuler
5039## ref: https://thanos.io/tip/components/rule.md/
5042 ## Deploy thanosRuler
5045 ## Annotations for ThanosRuler
5048 ## Service account for ThanosRuler to use.
5049 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
5055 ## The ThanosRuler resource has no automountServiceAccountToken field, so the ThanosRuler Pods
5056 ## follow this ServiceAccount setting. Thanos Ruler and its config-reloader sidecar do not call
5057 ## the Kubernetes API, so no token is mounted by default. Set to true if you add containers that
5058 ## need API credentials.
5059 automountServiceAccountToken: false
5060 ## Configure pod disruption budgets for ThanosRuler
5061 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
5063 podDisruptionBudget:
5066 # maxUnavailable: ""
5067 unhealthyPodEvictionPolicy: AlwaysAllow
5070 ingressClassName: ""
5073 ## Hosts must be provided if Ingress is enabled.
5076 # - thanosruler.domain.com
5078 ## Paths to use for ingress rules - one path should match the thanosruler.routePrefix
5083 ## For Kubernetes >= 1.18 you should specify the pathType (determines how Ingress paths should be matched)
5084 ## See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#better-path-matching-with-path-types
5085 # pathType: ImplementationSpecific
5087 ## TLS configuration for ThanosRuler Ingress
5088 ## Secret must be manually created in the namespace
5091 # - secretName: thanosruler-general-tls
5093 # - thanosruler.example.com
5094 # -- BETA: Configure the gateway routes for the chart here.
5095 # More routes can be added by adding a dictionary key like the 'main' route.
5096 # Be aware that this is an early beta of this feature,
5097 # kube-prometheus-stack does not guarantee this works and is subject to change.
5098 # Being BETA this can/will change in the future without notice, do not use unless you want to take that risk
5099 # [[ref]](https://gateway-api.sigs.k8s.io/reference/api-spec/main/spec/#gatewaynetworkingk8siov1alpha2)
5102 # -- Enables or disables the route
5104 # -- Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
5105 apiVersion: gateway.networking.k8s.io/v1
5106 # -- Set the route kind
5107 # Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
5112 # - my-filter.example.com
5116 # -- create http route for redirect (https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/#http-to-https-redirects)
5117 ## Take care that you only enable this on the http listener of the gateway to avoid an infinite redirect.
5118 ## matches, filters and additionalRules will be ignored if this is set to true. Be are
5119 httpsRedirect: false
5124 ## Filters define the filters that are applied to requests that match this rule.
5126 ## Timeouts for the generated HTTPRoute backend rule.
5127 ## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
5130 # backendRequest: 60s
5132 ## Session persistence configuration for the route rule.
5133 sessionPersistence: {}
5134 # sessionName: route
5136 # absoluteTimeout: 12h
5138 # lifetimeType: Permanent
5140 ## Additional custom rules that can be added to the route
5142 ## Configuration for ThanosRuler service
5151 ipFamilies: ["IPv6", "IPv4"]
5152 ipFamilyPolicy: "PreferDualStack"
5153 ## Port for ThanosRuler Service to listen on
5156 ## To be used with a proxy extraContainer port
5159 ## Port to expose on each node
5160 ## Only used if service.type is 'NodePort'
5163 ## List of IP addresses at which the Prometheus server service is available
5164 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
5167 ## Additional ports to open for ThanosRuler service
5171 loadBalancerSourceRanges: []
5172 ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
5174 externalTrafficPolicy: Cluster
5178 ## Configuration for creating a ServiceMonitor for the ThanosRuler service
5181 ## If true, create a serviceMonitor for thanosRuler
5184 ## Scrape interval. If not set, the Prometheus default scrape interval is used.
5187 ## Additional labels
5189 additionalLabels: {}
5190 ## ScrapeClass to use for this ServiceMonitor, as defined in prometheus.prometheusSpec.scrapeClasses.
5191 ## If not set, the default scrape class (if any) is used.
5194 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
5197 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
5200 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
5203 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
5205 labelNameLengthLimit: 0
5206 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
5208 labelValueLengthLimit: 0
5209 ## proxyUrl: URL of a proxy that should be used for scraping.
5212 ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
5214 ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
5215 ## Of type: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#tlsconfig
5218 ## MetricRelabelConfigs to apply to samples after scraping, but before ingestion.
5219 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
5221 metricRelabelings: []
5223 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
5224 # sourceLabels: [__name__]
5226 ## RelabelConfigs to apply to samples before scraping
5227 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
5230 # - sourceLabels: [__meta_kubernetes_pod_node_name]
5233 # targetLabel: nodename
5237 ## Additional Endpoints
5239 additionalEndpoints: []
5240 # - port: oauth-metrics
5242 ## Settings affecting thanosRulerpec
5243 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#thanosrulerspec
5246 ## Standard object's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata
5247 ## Metadata Labels and Annotations gets propagated to the ThanosRuler pods.
5252 ## Image of ThanosRuler
5256 repository: chainguard-private/thanos
5258 sha: sha256:b7ab78583dd1ec19f8e5da28bff2ffeba3af50c355ef2a1867e0e78dd10fc4a6
5259 ## Namespaces to be selected for PrometheusRules discovery.
5260 ## If nil, select own namespace. Namespaces to be selected for ServiceMonitor discovery.
5261 ## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#namespaceselector for usage
5263 ruleNamespaceSelector: {}
5264 ## If true, a nil or {} value for thanosRuler.thanosRulerSpec.ruleSelector will cause the
5265 ## prometheus resource to be created with selectors based on values in the helm deployment,
5266 ## which will also match the PrometheusRule resources created
5268 ruleSelectorNilUsesHelmValues: true
5269 ## PrometheusRules to be selected for target discovery.
5270 ## If {}, select all PrometheusRules
5273 ## Example which select all PrometheusRules resources
5274 ## with label "prometheus" with values any of "example-rules" or "example-rules-2"
5283 ## Example which select all PrometheusRules resources with label "role" set to "example-rules"
5286 # role: example-rules
5288 ## Define Log Format
5289 # Use logfmt (default) or json logging
5291 ## Log level for ThanosRuler to be configured with.
5294 ## Size is the expected size of the thanosRuler cluster. The controller will eventually make the size of the
5295 ## running cluster equal to the expected size.
5297 ## Time duration ThanosRuler shall retain data for. Default is '24h', and must match the regular expression
5298 ## [0-9]+(ms|s|m|h) (milliseconds seconds minutes hours).
5301 ## Interval between consecutive evaluations.
5303 evaluationInterval: ""
5304 ## Storage is the definition of how storage will be used by the ThanosRuler instances.
5305 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/platform/storage.md
5308 # volumeClaimTemplate:
5310 # storageClassName: gluster
5311 # accessModes: ["ReadWriteOnce"]
5317 ## AlertmanagerConfig define configuration for connecting to alertmanager.
5318 ## Only available with Thanos v0.10.0 and higher. Maps to the alertmanagers.config Thanos Ruler arg.
5319 alertmanagersConfig:
5320 # use existing secret, if configured, alertmanagersConfig.secret will not be used
5324 # will render alertmanagersConfig secret data and configure it to be used by Thanos Ruler custom resource, ignored when alertmanagersConfig.existingSecret is set
5325 # https://thanos.io/tip/components/rule.md/#alertmanager
5331 # username: some_user
5332 # password: some_pass
5334 # - alertmanager.thanos.io
5337 ## DEPRECATED. Define URLs to send alerts to Alertmanager. For Thanos v0.10.0 and higher, alertmanagersConfig should be used instead.
5338 ## Note: this field will be ignored if alertmanagersConfig is specified. Maps to the alertmanagers.url Thanos Ruler arg.
5341 ## The external URL the Thanos Ruler instances will be available under. This is necessary to generate correct URLs. This is necessary if Thanos Ruler is not served from root of a DNS name. string false
5344 ## If true, http://{{ template "kube-prometheus-stack.thanosRuler.name" . }}.{{ template "kube-prometheus-stack.namespace" . }}:{{ .Values.thanosRuler.service.port }}
5345 ## will be used as value for externalPrefix
5346 externalPrefixNilUsesHelmValues: true
5347 ## The route prefix ThanosRuler registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true,
5348 ## but the server serves requests under a different route prefix. For example for use with kubectl proxy.
5351 ## ObjectStorageConfig configures object storage in Thanos
5352 objectStorageConfig:
5353 # use existing secret, if configured, objectStorageConfig.secret will not be used
5357 # will render objectStorageConfig secret data and configure it to be used by Thanos Ruler custom resource, ignored when objectStorageConfig.existingSecret is set
5358 # https://thanos.io/tip/thanos/storage.md/#s3
5367 ## Labels by name to drop before sending to alertmanager
5368 ## Maps to the --alert.label-drop flag of thanos ruler.
5370 ## QueryEndpoints defines Thanos querier endpoints from which to query metrics.
5371 ## Maps to the --query flag of thanos ruler.
5373 ## Define configuration for connecting to thanos query instances. If this is defined, the queryEndpoints field will be ignored.
5374 ## Maps to the query.config CLI argument. Only available with thanos v0.11.0 and higher.
5376 # use existing secret, if configured, queryConfig.secret will not be used
5380 # render queryConfig secret data and configure it to be used by Thanos Ruler custom resource, ignored when queryConfig.existingSecret is set
5381 # https://thanos.io/tip/components/rule.md/#query-api
5385 # username: some_user
5386 # password: some_pass
5391 ## Labels configure the external label pairs to ThanosRuler. A default replica
5392 ## label `thanos_ruler_replica` will be always added as a label with the value
5393 ## of the pod's name and it will be dropped in the alerts.
5395 ## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
5398 ## Allows setting additional arguments for the ThanosRuler container
5399 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#thanosruler
5402 # - name: remote-write.config
5405 # - "name": "receiver-0"
5406 # "remote_timeout": "30s"
5407 # "url": "http://thanos-receiver-0.thanos-receiver:8081/api/v1/receive"
5409 ## Define which Nodes the Pods are scheduled on.
5410 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
5413 kubernetes.io/os: linux
5414 ## Define resources requests and limits for single Pods.
5415 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
5421 ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
5422 ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
5423 ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
5424 ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
5426 podAntiAffinity: "soft"
5427 ## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
5428 ## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
5430 podAntiAffinityTopologyKey: kubernetes.io/hostname
5431 ## Assign custom affinity rules to the thanosRuler instance
5432 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
5436 # requiredDuringSchedulingIgnoredDuringExecution:
5437 # nodeSelectorTerms:
5438 # - matchExpressions:
5439 # - key: kubernetes.io/e2e-az-name
5445 ## If specified, the pod's tolerations.
5446 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
5452 # effect: "NoSchedule"
5454 ## If specified, the pod's topology spread constraints.
5455 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
5457 topologySpreadConstraints: []
5459 # topologyKey: topology.kubernetes.io/zone
5460 # whenUnsatisfiable: DoNotSchedule
5465 ## SecurityContext holds pod-level security attributes and common container settings.
5466 ## This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false
5467 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
5475 type: RuntimeDefault
5476 ## Use the host's user namespace for ThanosRuler pods.
5477 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/
5479 ## ListenLocal makes the ThanosRuler server listen on loopback, so that it does not bind against the Pod IP.
5480 ## Note this is only for the ThanosRuler UI, not the gossip communication.
5483 ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an ThanosRuler pod.
5486 ## Additional environment variables to set on the ThanosRuler container.
5487 ## This is rendered through the Prometheus Operator strategic merge patch.
5493 # Additional volumes on the output StatefulSet definition.
5495 # Additional VolumeMounts on the output StatefulSet definition.
5497 ## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
5498 ## (permissions, dir tree) on mounted volumes before starting prometheus
5500 ## Priority class assigned to the Pods
5502 priorityClassName: ""
5503 ## PortName to use for ThanosRuler.
5506 ## Scheduler to use for Pod scheduling, defaulting to the Kubernetes default scheduler.
5509 ## Duration in seconds the pod needs to terminate gracefully.
5510 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination
5511 terminationGracePeriodSeconds: ~
5512 ## WebTLSConfig defines the TLS parameters for HTTPS
5513 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#thanosrulerwebspec
5515 ## Pod management policy. Kubernetes default is OrderedReady but prometheus-operator default is Parallel.
5516 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
5517 podManagementPolicy: ""
5518 ## Update strategy for the StatefulSet.
5519 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
5521 # type: RollingUpdate
5525 ## Version of Thanos Ruler to deploy. Overrides the version derived from the image tag when set.
5527 ## Image pull policy for the Thanos Ruler container.
5529 ## EnableFeatures API enables access to Thanos Ruler disabled features.
5531 ## EnableServiceLinks indicates whether information about services should be injected into the
5532 ## pod's environment variables. Uses the operator/Kubernetes default when left unset (~).
5533 enableServiceLinks: ~
5534 ## Minimum number of seconds for which a newly created pod should be ready without any of its
5535 ## containers crashing/restarting for it to be considered available.
5537 ## Defines the DNS configuration for the pods.
5542 # - ns1.svc.cluster-domain.example
5547 ## Defines the DNS policy for the pods.
5549 ## Pods' hostAliases configuration
5550 ## ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
5556 ## Defines the list of remote write configurations. When not empty, the Thanos Ruler operates in stateless mode.
5557 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.RemoteWriteSpec
5559 ## Configures tracing for Thanos Ruler. Maps to the tracing.config CLI argument.
5561 # use existing secret, if configured, tracingConfig.secret will not be used
5565 # render tracingConfig secret data and configure it to be used by Thanos Ruler custom resource, ignored when tracingConfig.existingSecret is set
5567 ## Path to a tracing configuration file on disk (e.g. mounted through a volume). Takes precedence over tracingConfig.
5568 tracingConfigFile: ""
5569 ## Configures alert relabeling for Thanos Ruler. Maps to the alert.relabel-config CLI argument.
5570 alertRelabelConfigs:
5571 # use existing secret, if configured, alertRelabelConfigs.secret will not be used
5575 # render alertRelabelConfigs secret data and configure it to be used by Thanos Ruler custom resource, ignored when alertRelabelConfigs.existingSecret is set
5577 ## Path to an alert relabel configuration file on disk. Takes precedence over alertRelabelConfigs.
5578 alertRelabelConfigFile: ""
5579 ## Configures the gRPC server TLS for Thanos Ruler.
5580 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.TLSConfig
5581 grpcServerTlsConfig: {}
5582 ## Path to an object storage configuration file on disk. Takes precedence over objectStorageConfig.
5583 objectStorageConfigFile: ""
5584 ## Number of concurrent rule evaluations.
5585 ruleConcurrentEval: ~
5586 ## Maximum time to tolerate outage for restoring "for" state of alert.
5587 ruleOutageTolerance: ""
5588 ## Minimum duration between alert and restored "for" state. Maintained only for alerts with a configured "for"
5589 ## time greater than the grace period.
5591 ## The default rule group's query offset duration to shift the evaluation time of rules backwards.
5592 ## ref: https://github.com/prometheus-community/helm-charts/issues/5843
5594 ## Minimum amount of time to wait before resending an alert to Alertmanager.
5596 ## EnforcedNamespaceLabel enforces adding a namespace label of origin for each alert and metric.
5597 enforcedNamespaceLabel: ""
5598 ## List of references to PrometheusRule objects to be excluded from enforcement (requires enforcedNamespaceLabel).
5599 ## Can be a list of objects, or a string that is passed through tpl.
5600 excludedFromEnforcement: []
5601 ## Additional configuration which is not covered by the properties above. (passed through tpl)
5602 additionalConfig: {}
5603 ## Additional configuration which is not covered by the properties above.
5604 ## Useful, if you need advanced templating
5605 additionalConfigString: ""
5606 ## ExtraSecret can be used to store various data in an extra secret
5607 ## (use it for example to store hashed basic auth credentials)
5609 ## if not set, name will be auto generated
5614 # foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
5615 # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
5616## Setting to true produces cleaner resource names, but requires a data migration because the name of the persistent volume changes. Therefore this should only be set once on initial installation.
5618cleanPrometheusOperatorObjectNames: false
5619## Extra manifests to deploy. Can be of type dict or list.
5620## If dict, keys are ignored and only values are used.
5621## Items contained within extraObjects can be defined as dict or string and are passed through tpl.
5627# name: prometheus-extra
5629# extra-data: "value"
5631# can also be defined as a string, useful for templating field names
5639# {{- range $key, $value := .Values.commonLabels }}
5640# {{ $key }}: {{ $value }}
5643# plaintext: Zm9vYmFy
5644# templated: '{{ print "foobar" | upper | b64enc }}'