DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
kube-prometheus-stack logoHELM

kube-prometheus-stack

Helm chart
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# Default values for kube-prometheus-stack.
2
# This is a YAML-formatted file.
3
# Declare variables to be passed into your templates.
4
5
## Provide a name in place of kube-prometheus-stack for `app:` labels
6
##
7
nameOverride: ""
8
## Override the deployment namespace
9
##
10
namespaceOverride: ""
11
## Provide a k8s version to auto dashboard import script example: kubeTargetVersionOverride: 1.26.6
12
##
13
kubeTargetVersionOverride: ""
14
## Allow kubeVersion to be overridden while creating the ingress
15
##
16
kubeVersionOverride: ""
17
## Provide a name to substitute for the full names of resources
18
##
19
fullnameOverride: ""
20
## Labels to apply to all resources
21
##
22
commonLabels: {}
23
# scmhash: abc123
24
# myLabel: aakkmd
25
26
## Install Prometheus Operator CRDs
27
##
28
crds:
29
enabled: true
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.
34
upgradeJob:
35
enabled: false
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.
38
forceConflicts: true
39
image:
40
busybox:
41
registry: cgr.dev
42
repository: chainguard-private/busybox
43
tag: glibc-1.38.0-r4@sha256:c9bf20fc544edce1905f6679822ca672c33e89576b8e5483f0da1cfb335b9af0
44
sha: ""
45
pullPolicy: IfNotPresent
46
kubectl:
47
registry: cgr.dev
48
repository: chainguard-private/kubectl
49
tag: 1.37.3-r0
50
sha: sha256:c912ad3f0c21d72422db5614e88ca8bd7967039116d95fb91c74162d1968a841
51
pullPolicy: IfNotPresent
52
env: {}
53
## Define resources requests and limits for single Pods.
54
## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
55
##
56
resources: {}
57
## Additional volumes
58
##
59
extraVolumes: []
60
## Additional volume mounts
61
##
62
extraVolumeMounts: []
63
## Define which Nodes the Pods are scheduled on.
64
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
65
##
66
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/
70
##
71
affinity: {}
72
# nodeAffinity:
73
# requiredDuringSchedulingIgnoredDuringExecution:
74
# nodeSelectorTerms:
75
# - matchExpressions:
76
# - key: kubernetes.io/e2e-az-name
77
# operator: In
78
# values:
79
# - e2e-az1
80
# - e2e-az2
81
82
## If specified, the pod's tolerations.
83
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
84
##
85
tolerations: []
86
# - key: "key"
87
# operator: "Equal"
88
# value: "value"
89
# effect: "NoSchedule"
90
91
## If specified, the pod's topology spread constraints.
92
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
93
##
94
topologySpreadConstraints: []
95
# - maxSkew: 1
96
# topologyKey: topology.kubernetes.io/zone
97
# whenUnsatisfiable: DoNotSchedule
98
# labelSelector:
99
# matchLabels:
100
# app: alertmanager
101
102
# ## Labels to add to the upgrade-crd job
103
# ##
104
labels: {}
105
## Annotations to add to the upgrade-crd job
106
##
107
annotations: {}
108
## Labels to add to the upgrade-crd pod
109
##
110
podLabels: {}
111
## Annotations to add to the upgrade-crd pod
112
##
113
podAnnotations: {}
114
## Service account for upgrade crd job to use.
115
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
116
##
117
serviceAccount:
118
create: true
119
name: ""
120
annotations: {}
121
labels: {}
122
automountServiceAccountToken: true
123
## Automounting API credentials for upgrade crd job pod.
124
##
125
automountServiceAccountToken: true
126
## Container-specific security context configuration
127
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
128
##
129
containerSecurityContext:
130
allowPrivilegeEscalation: false
131
readOnlyRootFilesystem: true
132
capabilities:
133
drop:
134
- ALL
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/
138
##
139
podSecurityContext:
140
fsGroup: 65534
141
runAsGroup: 65534
142
runAsNonRoot: true
143
runAsUser: 65534
144
seccompProfile:
145
type: RuntimeDefault
146
## Custom rules to override "for" and "severity" in defaultRules
147
##
148
customRules: {}
149
# AlertmanagerFailedReload:
150
# for: 3m
151
# AlertmanagerMembersInconsistent:
152
# for: 5m
153
# severity: "warning"
154
155
## Create default rules for monitoring the cluster
156
##
157
defaultRules:
158
create: true
159
rules:
160
alertmanager: true
161
etcd: true
162
configReloaders: true
163
general: true
164
k8sContainerCpuUsageSecondsTotal: true
165
k8sContainerMemoryCache: true
166
k8sContainerMemoryRss: true
167
k8sContainerMemorySwap: true
168
k8sContainerResource: true
169
k8sContainerMemoryWorkingSetBytes: true
170
k8sPodOwner: true
171
kubeApiserverAvailability: true
172
kubeApiserverBurnrate: true
173
kubeApiserverHistogram: true
174
kubeApiserverSlos: true
175
kubeControllerManager: true
176
kubelet: true
177
kubeProxy: true
178
kubePrometheusGeneral: true
179
kubePrometheusNodeRecording: true
180
kubernetesApps: true
181
kubernetesResources: true
182
kubernetesStorage: true
183
kubernetesSystem: true
184
kubeSchedulerAlerting: true
185
kubeSchedulerRecording: true
186
kubeStateMetrics: true
187
network: true
188
node: true
189
nodeExporterAlerting: true
190
nodeExporterRecording: true
191
prometheus: true
192
prometheusOperator: true
193
windows: 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
201
keepFiringFor: ""
202
## Labels for default rules
203
labels: {}
204
## Annotations for default rules
205
annotations: {}
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:
212
alertmanager: {}
213
etcd: {}
214
configReloaders: {}
215
general: {}
216
k8sContainerCpuUsageSecondsTotal: {}
217
k8sContainerMemoryCache: {}
218
k8sContainerMemoryRss: {}
219
k8sContainerMemorySwap: {}
220
k8sContainerResource: {}
221
k8sPodOwner: {}
222
kubeApiserverAvailability: {}
223
kubeApiserverBurnrate: {}
224
kubeApiserverHistogram: {}
225
kubeApiserverSlos: {}
226
kubeControllerManager: {}
227
kubelet: {}
228
kubeProxy: {}
229
kubePrometheusGeneral: {}
230
kubePrometheusNodeRecording: {}
231
kubernetesApps: {}
232
kubernetesResources: {}
233
kubernetesStorage: {}
234
kubernetesSystem: {}
235
kubeSchedulerAlerting: {}
236
kubeSchedulerRecording: {}
237
kubeStateMetrics: {}
238
network: {}
239
node: {}
240
nodeExporterAlerting: {}
241
nodeExporterRecording: {}
242
prometheus: {}
243
prometheusOperator: {}
244
## Additional annotations for specific PrometheusRule alert groups
245
additionalRuleGroupAnnotations:
246
alertmanager: {}
247
etcd: {}
248
configReloaders: {}
249
general: {}
250
k8sContainerCpuUsageSecondsTotal: {}
251
k8sContainerMemoryCache: {}
252
k8sContainerMemoryRss: {}
253
k8sContainerMemorySwap: {}
254
k8sContainerResource: {}
255
k8sPodOwner: {}
256
kubeApiserverAvailability: {}
257
kubeApiserverBurnrate: {}
258
kubeApiserverHistogram: {}
259
kubeApiserverSlos: {}
260
kubeControllerManager: {}
261
kubelet: {}
262
kubeProxy: {}
263
kubePrometheusGeneral: {}
264
kubePrometheusNodeRecording: {}
265
kubernetesApps: {}
266
kubernetesResources: {}
267
kubernetesStorage: {}
268
kubernetesSystem: {}
269
kubeSchedulerAlerting: {}
270
kubeSchedulerRecording: {}
271
kubeStateMetrics: {}
272
network: {}
273
node: {}
274
nodeExporterAlerting: {}
275
nodeExporterRecording: {}
276
prometheus: {}
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
288
node:
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
293
disabled: {}
294
# KubeAPIDown: true
295
# NodeRAIDDegraded: true
296
## Deprecated way to provide custom recording or alerting rules to be deployed into the cluster.
297
##
298
# additionalPrometheusRules: []
299
# - name: my-rule-file
300
# groups:
301
# - name: my_group
302
# rules:
303
# - record: my_record
304
# expr: 100 * my_record
305
306
## Provide custom recording or alerting rules to be deployed into the cluster.
307
##
308
additionalPrometheusRulesMap: {}
309
# rule-name:
310
# groups:
311
# - name: my_group
312
# rules:
313
# - record: my_record
314
# expr: 100 * my_record
315
316
##
317
global:
318
rbac:
319
create: true
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, ...)
324
##
325
imageRegistry: ""
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/
328
##
329
imagePullSecrets: []
330
# - name: "image-pull-secret"
331
# or
332
# - "image-pull-secret"
333
windowsMonitoring:
334
## Deploys the windows-exporter and Windows-specific dashboards and rules (job name must be 'windows-exporter')
335
enabled: false
336
## Configuration for prometheus-windows-exporter
337
## ref: https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-windows-exporter
338
##
339
prometheus-windows-exporter:
340
## Enable ServiceMonitor and set Kubernetes label to use as a job label
341
##
342
prometheus:
343
monitor:
344
enabled: true
345
jobLabel: jobLabel
346
releaseLabel: true
347
## Set job label to 'windows-exporter' as required by the default Prometheus rules and Grafana dashboards
348
##
349
podLabels:
350
jobLabel: windows-exporter
351
## Enable memory and container metrics as required by the default Prometheus rules and Grafana dashboards
352
##
353
config: |-
354
collectors:
355
enabled: '[defaults],memory,container'
356
## Configuration for alertmanager
357
## ref: https://prometheus.io/docs/alerting/alertmanager/
358
##
359
alertmanager:
360
## Deploy alertmanager
361
##
362
enabled: true
363
# Optional: Override the namespace where Alertmanager will be deployed.
364
namespaceOverride: ""
365
## Annotations for Alertmanager
366
##
367
annotations: {}
368
## Additional labels for Alertmanager
369
##
370
additionalLabels: {}
371
## API that Prometheus will use to communicate with alertmanager. Possible values are v1, v2
372
##
373
apiVersion: v2
374
## @param alertmanager.enableFeatures Enable access to Alertmanager disabled features.
375
##
376
enableFeatures: []
377
## Create dashboard configmap even if alertmanager deployment has been disabled
378
##
379
forceDeployDashboards: false
380
## Network Policy configuration
381
##
382
networkPolicy:
383
# -- Enable network policy for Alertmanager
384
enabled: false
385
# -- Define policy types. If egress is enabled, both Ingress and Egress will be used
386
# Valid values are ["Ingress"] or ["Ingress", "Egress"]
387
##
388
policyTypes:
389
- Ingress
390
# -- Gateway (formerly ingress controller) configuration
391
##
392
gateway:
393
# -- Gateway namespace
394
##
395
namespace: ""
396
# -- Gateway pod labels
397
##
398
podLabels: {}
399
# app.kubernetes.io/name: ingress-nginx
400
# -- Additional custom ingress rules
401
##
402
additionalIngress: []
403
# - from:
404
# - namespaceSelector:
405
# matchLabels:
406
# name: another-namespace
407
# podSelector:
408
# matchLabels:
409
# app: another-app
410
# - from:
411
# - podSelector:
412
# matchLabels:
413
# app.kubernetes.io/name: loki
414
# ports:
415
# - port: 9093
416
# protocol: TCP
417
418
# -- Configure egress rules
419
##
420
egress:
421
# -- Enable egress rules. When enabled, policyTypes will include Egress
422
##
423
enabled: false
424
# -- Custom egress rules
425
##
426
rules: []
427
# - to:
428
# - namespaceSelector: {}
429
# podSelector:
430
# matchLabels:
431
# name: smtp-relay
432
# ports:
433
# - port: 25
434
# protocol: TCP
435
# -- Enable rules for alertmanager cluster traffic
436
##
437
enableClusterRules: true
438
# -- Configure monitoring component rules
439
##
440
monitoringRules:
441
# -- Enable ingress from Prometheus
442
##
443
prometheus: true
444
# -- Enable ingress for config reloader metrics
445
##
446
configReloader: true
447
## Service account for Alertmanager to use.
448
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
449
##
450
serviceAccount:
451
create: true
452
name: ""
453
annotations: {}
454
automountServiceAccountToken: true
455
## Configure pod disruption budgets for Alertmanager
456
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
457
##
458
podDisruptionBudget:
459
enabled: false
460
minAvailable: 1
461
# maxUnavailable: ""
462
unhealthyPodEvictionPolicy: AlwaysAllow
463
## Enable vertical pod autoscaler support for Alertmanager
464
## ref: https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler
465
##
466
verticalPodAutoscaler:
467
enabled: false
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.
471
# recommenders:
472
# - name: custom-recommender-performance
473
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
478
479
# Define the max allowed resources for the pod
480
maxAllowed: {}
481
# cpu: 200m
482
# memory: 100Mi
483
# Define the min allowed resources for the pod
484
minAllowed: {}
485
# cpu: 200m
486
# memory: 100Mi
487
488
updatePolicy:
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".
491
updateMode: Recreate
492
## Alertmanager configuration directives
493
## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file
494
## https://prometheus.io/webtools/alerting/routing-tree-editor/
495
##
496
config:
497
global:
498
resolve_timeout: 5m
499
inhibit_rules:
500
- source_matchers:
501
- 'severity = critical'
502
target_matchers:
503
- 'severity =~ warning|info'
504
equal:
505
- 'namespace'
506
- 'alertname'
507
- source_matchers:
508
- 'severity = warning'
509
target_matchers:
510
- 'severity = info'
511
equal:
512
- 'namespace'
513
- 'alertname'
514
- source_matchers:
515
- 'alertname = InfoInhibitor'
516
target_matchers:
517
- 'severity = info'
518
equal:
519
- 'namespace'
520
- target_matchers:
521
- 'alertname = InfoInhibitor'
522
route:
523
group_by: ['namespace']
524
group_wait: 30s
525
group_interval: 5m
526
repeat_interval: 12h
527
receiver: 'null'
528
routes:
529
- receiver: 'null'
530
matchers:
531
- alertname = "Watchdog"
532
receivers:
533
- name: 'null'
534
templates:
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/
540
##
541
stringConfig: ""
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
545
## Helm
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/
550
tplConfig: false
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/
558
##
559
templateFiles: {}
560
#
561
## An example template:
562
# template_1.tmpl: |-
563
# {{ define "cluster" }}{{ .ExternalURL | reReplaceAll ".*alertmanager\\.(.*)" "$1" }}{{ end }}
564
#
565
# {{ define "slack.myorg.text" }}
566
# {{- $root := . -}}
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:>
573
# *Details:*
574
# {{ range .Labels.SortedPairs }} - *{{ .Name }}:* `{{ .Value }}`
575
# {{ end }}
576
# {{ end }}
577
# {{ end }}
578
579
ingress:
580
enabled: false
581
ingressClassName: ""
582
annotations: {}
583
labels: {}
584
## Override ingress to a different defined port on the service
585
# servicePort: 8081
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
589
590
## Hosts must be provided if Ingress is enabled.
591
##
592
hosts: []
593
# - alertmanager.domain.com
594
595
## Paths to use for ingress rules - one path should match the alertmanagerSpec.routePrefix
596
##
597
paths: []
598
# - /
599
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
603
604
## TLS configuration for Alertmanager Ingress
605
## Secret must be manually created in the namespace
606
##
607
tls: []
608
# - secretName: alertmanager-general-tls
609
# hosts:
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)
617
route:
618
main:
619
# -- Enables or disables the route
620
enabled: false
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
625
kind: HTTPRoute
626
annotations: {}
627
labels: {}
628
hostnames: []
629
# - my-filter.example.com
630
parentRefs: []
631
# - name: acme-gw
632
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
636
httpsRedirect: false
637
matches:
638
- path:
639
type: PathPrefix
640
value: /
641
## Filters define the filters that are applied to requests that match this rule.
642
filters: []
643
## Timeouts for the generated HTTPRoute backend rule.
644
## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
645
timeouts: {}
646
# request: 120s
647
# backendRequest: 60s
648
649
## Session persistence configuration for the route rule.
650
sessionPersistence: {}
651
# sessionName: route
652
# type: Cookie
653
# absoluteTimeout: 12h
654
# cookieConfig:
655
# lifetimeType: Permanent
656
657
## Additional custom rules that can be added to the route
658
additionalRules: []
659
## Configuration for Alertmanager secret
660
##
661
secret:
662
annotations: {}
663
## Configuration for creating an Ingress that will map to each Alertmanager replica service
664
## alertmanager.servicePerReplica must be enabled
665
##
666
ingressPerReplica:
667
enabled: false
668
ingressClassName: ""
669
annotations: {}
670
labels: {}
671
## Final form of the hostname for each per replica ingress is
672
## {{ ingressPerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ ingressPerReplica.hostDomain }}
673
##
674
## Prefix for the per replica ingress that will have `-$replicaNumber`
675
## appended to the end
676
hostPrefix: ""
677
## Domain that will be used for the per replica ingress
678
hostDomain: ""
679
## Paths to use for ingress rules
680
##
681
paths: []
682
# - /
683
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
687
688
## Secret name containing the TLS certificate for alertmanager per replica ingress
689
## Secret must be manually created in the namespace
690
tlsSecretName: ""
691
## Separated secret for each per replica Ingress. Can be used together with cert-manager
692
##
693
tlsSecretPerReplica:
694
enabled: false
695
## Final form of the secret for each per replica ingress is
696
## {{ tlsSecretPerReplica.prefix }}-{{ $replicaNumber }}
697
##
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
701
##
702
routePerReplica:
703
main:
704
# -- Enables or disables the routePerReplica
705
enabled: false
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
710
kind: HTTPRoute
711
annotations: {}
712
labels: {}
713
## Final form of the hostname for each per replica route is
714
## {{ routePerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ routePerReplica.hostDomain }}
715
##
716
## Prefix for the per replica route that will have `-$replicaNumber` appended to the end
717
hostPrefix: ""
718
## Domain that will be used for the per replica route
719
hostDomain: ""
720
parentRefs: []
721
# - name: acme-gw
722
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.
726
httpsRedirect: false
727
## Filters define the filters that are applied to requests that match this rule.
728
filters: []
729
matches:
730
- path:
731
type: PathPrefix
732
value: /
733
## Timeouts for the generated HTTPRoute backend rule.
734
## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
735
timeouts: {}
736
# request: 120s
737
# backendRequest: 60s
738
739
## Session persistence configuration for the route rule.
740
sessionPersistence: {}
741
# sessionName: route
742
# type: Cookie
743
# absoluteTimeout: 12h
744
# cookieConfig:
745
# lifetimeType: Permanent
746
747
## Additional custom rules that can be added to the route
748
additionalRules: []
749
## Configuration for Alertmanager service
750
##
751
service:
752
enabled: true
753
annotations: {}
754
labels: {}
755
clusterIP: ""
756
ipDualStack:
757
enabled: false
758
ipFamilies: ["IPv6", "IPv4"]
759
ipFamilyPolicy: "PreferDualStack"
760
## Port for Alertmanager Service to listen on
761
##
762
port: 9093
763
## Port for Alertmanager cluster communication
764
##
765
# clusterPort: 9094
766
## To be used with a proxy extraContainer port
767
##
768
targetPort: 9093
769
## Port to expose on each node
770
## Only used if service.type is 'NodePort'
771
##
772
nodePort: 30903
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
775
##
776
777
## Additional ports to open for Alertmanager service
778
##
779
additionalPorts: []
780
# - name: oauth-proxy
781
# port: 8081
782
# targetPort: 8081
783
# - name: oauth-metrics
784
# port: 8082
785
# targetPort: 8082
786
787
externalIPs: []
788
loadBalancerIP: ""
789
loadBalancerSourceRanges: []
790
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
791
##
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'
795
##
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"
799
##
800
sessionAffinityConfig:
801
clientIP:
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
806
##
807
trafficDistribution: ""
808
## Service type
809
##
810
type: ClusterIP
811
## Configuration for creating a separate Service for each statefulset Alertmanager replica
812
##
813
servicePerReplica:
814
enabled: false
815
annotations: {}
816
## Port for Alertmanager Service per replica to listen on
817
##
818
port: 9093
819
## To be used with a proxy extraContainer port
820
targetPort: 9093
821
## Port to expose on each node
822
## Only used if servicePerReplica.type is 'NodePort'
823
##
824
nodePort: 30904
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
829
##
830
externalTrafficPolicy: Cluster
831
## Service type
832
##
833
type: ClusterIP
834
## Configuration for creating a ServiceMonitor for AlertManager
835
##
836
serviceMonitor:
837
## If true, a ServiceMonitor will be created for the AlertManager service.
838
##
839
selfMonitor: true
840
## Scrape interval. If not set, the Prometheus default scrape interval is used.
841
##
842
interval: ""
843
## Additional labels
844
##
845
additionalLabels: {}
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.
848
##
849
scrapeClass: ""
850
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
851
##
852
sampleLimit: 0
853
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
854
##
855
targetLimit: 0
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.
857
##
858
labelLimit: 0
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.
860
##
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.
863
##
864
labelValueLengthLimit: 0
865
## proxyUrl: URL of a proxy that should be used for scraping.
866
##
867
proxyUrl: ""
868
## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
869
scheme: ""
870
## enableHttp2: Whether to enable HTTP2.
871
## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#endpoint
872
enableHttp2: true
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
875
tlsConfig: {}
876
bearerTokenFile:
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
879
##
880
metricRelabelings: []
881
# - action: keep
882
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
883
# sourceLabels: [__name__]
884
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
887
##
888
relabelings: []
889
# - sourceLabels: [__meta_kubernetes_pod_node_name]
890
# separator: ;
891
# regex: ^(.*)$
892
# targetLabel: nodename
893
# replacement: $1
894
# action: replace
895
896
## Additional Endpoints
897
##
898
additionalEndpoints: []
899
# - port: oauth-metrics
900
# path: /metrics
901
## Settings affecting alertmanagerSpec
902
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#alertmanagerspec
903
##
904
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
913
# whenScaled: Retain
914
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.
917
##
918
podMetadata: {}
919
##
920
serviceName:
921
## Image of Alertmanager
922
##
923
image:
924
registry: cgr.dev
925
repository: chainguard-private/prometheus-alertmanager
926
tag: 0.35.1-r0
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
931
##
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/.
935
##
936
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.
940
##
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/.
944
##
945
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.
948
##
949
# configSecret:
950
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
953
web: {}
954
## AlertmanagerConfigs to be selected to merge and configure Alertmanager with.
955
##
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:
960
# matchExpressions:
961
# - key: alertconfig
962
# operator: In
963
# values:
964
# - example-config
965
# - example-config-2
966
#
967
## Example which selects all alertmanagerConfig resources with label "role" set to "example-config"
968
# alertmanagerConfigSelector:
969
# matchLabels:
970
# role: example-config
971
972
## Namespaces to be selected for AlertmanagerConfig discovery. If nil, only check own namespace.
973
##
974
alertmanagerConfigNamespaceSelector: {}
975
## Example which selects all namespaces
976
## with label "alertmanagerconfig" with values any of "example-namespace" or "example-namespace-2"
977
# alertmanagerConfigNamespaceSelector:
978
# matchExpressions:
979
# - key: alertmanagerconfig
980
# operator: In
981
# values:
982
# - example-namespace
983
# - example-namespace-2
984
985
## Example which selects all namespaces with label "alertmanagerconfig" set to "enabled"
986
# alertmanagerConfigNamespaceSelector:
987
# matchLabels:
988
# alertmanagerconfig: enabled
989
990
## AlermanagerConfig to be used as top level configuration
991
##
992
alertmanagerConfiguration: {}
993
## Example with select a global alertmanagerconfig
994
# alertmanagerConfiguration:
995
# name: global-alertmanager-Configuration
996
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.
1002
##
1003
alertmanagerConfigFileSystemMode: ""
1004
## Defines the strategy used by AlertmanagerConfig objects to match alerts. eg:
1005
##
1006
alertmanagerConfigMatcherStrategy: {}
1007
## Example with use OnNamespace strategy
1008
# alertmanagerConfigMatcherStrategy:
1009
# type: OnNamespace
1010
1011
## Additional command line arguments to pass to Alertmanager (in addition to those generated by the chart)
1012
additionalArgs: []
1013
## Define Log Format
1014
# Use logfmt (default) or json logging
1015
logFormat: logfmt
1016
## Log level for Alertmanager to be configured with.
1017
##
1018
logLevel: info
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.
1021
replicas: 1
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).
1024
##
1025
retention: 120h
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
1028
##
1029
storage: {}
1030
# volumeClaimTemplate:
1031
# spec:
1032
# storageClassName: gluster
1033
# accessModes: ["ReadWriteOnce"]
1034
# resources:
1035
# requests:
1036
# storage: 50Gi
1037
# selector: {}
1038
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
1040
##
1041
externalUrl:
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.
1044
##
1045
routePrefix: /
1046
## scheme: HTTP scheme to use. Can be used with `tlsConfig` for example if using istio mTLS.
1047
scheme: ""
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
1050
tlsConfig: {}
1051
## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
1052
##
1053
paused: false
1054
## Define which Nodes the Pods are scheduled on.
1055
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
1056
##
1057
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/
1061
##
1062
resources: {}
1063
# requests:
1064
# memory: 400Mi
1065
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.
1070
##
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
1074
##
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/
1078
##
1079
affinity: {}
1080
# nodeAffinity:
1081
# requiredDuringSchedulingIgnoredDuringExecution:
1082
# nodeSelectorTerms:
1083
# - matchExpressions:
1084
# - key: kubernetes.io/e2e-az-name
1085
# operator: In
1086
# values:
1087
# - e2e-az1
1088
# - e2e-az2
1089
1090
## If specified, the pod's tolerations.
1091
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
1092
##
1093
tolerations: []
1094
# - key: "key"
1095
# operator: "Equal"
1096
# value: "value"
1097
# effect: "NoSchedule"
1098
1099
## If specified, the pod's topology spread constraints.
1100
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
1101
##
1102
topologySpreadConstraints: []
1103
# - maxSkew: 1
1104
# topologyKey: topology.kubernetes.io/zone
1105
# whenUnsatisfiable: DoNotSchedule
1106
# labelSelector:
1107
# matchLabels:
1108
# app: alertmanager
1109
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/
1113
##
1114
securityContext:
1115
runAsGroup: 2000
1116
runAsNonRoot: true
1117
runAsUser: 1000
1118
fsGroup: 2000
1119
seccompProfile:
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/
1123
hostUsers: ~
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
1126
dnsConfig: {}
1127
## DNS policy for Alertmanager.
1128
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#dnspolicystring-alias
1129
dnsPolicy: ""
1130
## Enable hostNetwork for Alertmanager.
1131
hostNetwork: ~
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.
1134
##
1135
listenLocal: false
1136
## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an Alertmanager pod.
1137
##
1138
containers: []
1139
# containers:
1140
# - name: oauth-proxy
1141
# image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.6
1142
# args:
1143
# - --upstream=http://127.0.0.1:9093
1144
# - --http-address=0.0.0.0:8081
1145
# - --metrics-address=0.0.0.0:8082
1146
# - ...
1147
# ports:
1148
# - containerPort: 8081
1149
# name: oauth-proxy
1150
# protocol: TCP
1151
# - containerPort: 8082
1152
# name: oauth-metrics
1153
# protocol: TCP
1154
# resources: {}
1155
1156
# Additional volumes on the output StatefulSet definition.
1157
volumes: []
1158
# Additional VolumeMounts on the output StatefulSet definition.
1159
volumeMounts: []
1160
## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
1161
## (permissions, dir tree) on mounted volumes before starting prometheus
1162
initContainers: []
1163
## Priority class assigned to the Pods
1164
##
1165
priorityClassName: ""
1166
## AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.
1167
##
1168
additionalPeers: []
1169
## PortName to use for Alert Manager.
1170
##
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
1173
##
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.
1181
clusterPeerName: ""
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.
1189
clusterLabel: ""
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).
1195
minReadySeconds: 0
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
1201
updateStrategy: {}
1202
# type: RollingUpdate
1203
# rollingUpdate:
1204
# maxUnavailable: 1
1205
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.
1213
schedulerName: ""
1214
## Pods' hostAliases configuration
1215
## ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1216
hostAliases: []
1217
# - ip: 10.10.0.100
1218
# hostnames:
1219
# - a1.app.local
1220
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
1223
limits: {}
1224
# maxSilences: 1000
1225
# maxPerSilenceBytes: 1MB
1226
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
1230
clusterTLS: {}
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)
1239
extraSecret:
1240
## if not set, name will be auto generated
1241
# name: ""
1242
annotations: {}
1243
data: {}
1244
# auth: |
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
1248
##
1249
grafana:
1250
enabled: true
1251
namespaceOverride: ""
1252
## ForceDeployDatasources Create datasource configmap even if grafana deployment has been disabled
1253
##
1254
forceDeployDatasources: false
1255
## ForceDeployDashboard Create dashboard configmap even if grafana deployment has been disabled
1256
##
1257
forceDeployDashboards: false
1258
## Deploy default dashboards
1259
##
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
1265
## eg:
1266
## apiVersion: grafana.integreatly.org/v1beta1
1267
## kind: GrafanaDatasource
1268
## metadata:
1269
## name: prometheus
1270
## annotations: {}
1271
## spec:
1272
## allowCrossNamespaceImport: true
1273
## instanceSelector:
1274
## matchLabels:
1275
## app: grafana
1276
## datasource:
1277
## name: prometheus
1278
## type: prometheus
1279
## access: proxy
1280
## url: http://prometheus-operated.prometheus-stack.svc.cluster.local:9090
1281
## isDefault: true
1282
## jsonData:
1283
## "tlsSkipVerify": true
1284
## "timeInterval": "5s"
1285
##
1286
operator:
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
1299
##
1300
annotations: {}
1301
## Labels that should be matched kind: Grafana instance
1302
## Example: { app: grafana, category: dashboard }
1303
##
1304
matchLabels: {}
1305
## How frequently the operator should resync resources (in duration format)
1306
## Controls how often dashboards are reconciled by the operator
1307
##
1308
resyncPeriod: 10m
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
1312
##
1313
folder: General
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
1317
##
1318
folderUID: null
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
1322
##
1323
folderRef: null
1324
## Timezone for the default dashboards
1325
## Other options are: browser or a specific timezone, i.e. Europe/Luxembourg
1326
##
1327
defaultDashboardsTimezone: utc
1328
## Editable flag for the default dashboards
1329
##
1330
defaultDashboardsEditable: true
1331
## Default interval for Grafana dashboards
1332
##
1333
defaultDashboardsInterval: 1m
1334
# Administrator credentials when not using an existing secret (see below)
1335
adminUser: admin
1336
# adminPassword: strongpassword
1337
1338
# Use an existing secret for the admin user.
1339
admin:
1340
## Name of the secret. Can be templated.
1341
existingSecret: ""
1342
userKey: admin-user
1343
passwordKey: admin-password
1344
rbac:
1345
## If true, Grafana PSPs will be created
1346
##
1347
pspEnabled: false
1348
ingress:
1349
## If true, Grafana Ingress will be created
1350
##
1351
enabled: false
1352
## IngressClassName for Grafana Ingress.
1353
## Should be provided if Ingress is enable.
1354
##
1355
# ingressClassName: nginx
1356
1357
## Annotations for Grafana Ingress
1358
##
1359
annotations: {}
1360
# kubernetes.io/ingress.class: nginx
1361
# kubernetes.io/tls-acme: "true"
1362
1363
## Labels to be added to the Ingress
1364
##
1365
labels: {}
1366
## Hostnames.
1367
## Must be provided if Ingress is enable.
1368
##
1369
# hosts:
1370
# - grafana.domain.com
1371
hosts: []
1372
## Path for grafana ingress
1373
path: /
1374
## TLS configuration for grafana Ingress
1375
## Secret must be manually created in the namespace
1376
##
1377
tls: []
1378
# - secretName: grafana-general-tls
1379
# hosts:
1380
# - grafana.example.com
1381
# # To make Grafana persistent (Using Statefulset)
1382
# #
1383
# persistence:
1384
# enabled: true
1385
# type: sts
1386
# storageClassName: "storageClassName"
1387
# accessModes:
1388
# - ReadWriteOnce
1389
# size: 20Gi
1390
# finalizers:
1391
# - kubernetes.io/pvc-protection
1392
serviceAccount:
1393
create: true
1394
autoMount: true
1395
sidecar:
1396
dashboards:
1397
enabled: true
1398
label: grafana_dashboard
1399
labelValue: "1"
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
1405
##
1406
annotations: {}
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
1410
##
1411
# folderAnnotation: grafana_folder
1412
multicluster:
1413
global:
1414
enabled: false
1415
etcd:
1416
enabled: false
1417
provider:
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.
1422
##
1423
# foldersFromFilesStructure: true
1424
datasources:
1425
enabled: true
1426
defaultDatasourceEnabled: true
1427
isDefaultDatasource: true
1428
name: Prometheus
1429
uid: prometheus
1430
## Extra jsonData properties to add to the datasource
1431
# extraJsonData:
1432
# prometheusType: Prometheus
1433
1434
## URL of prometheus datasource
1435
##
1436
# url: http://prometheus-stack-prometheus:9090/
1437
1438
## Prometheus request timeout in seconds
1439
# timeout: 30
1440
1441
## Query parameters to add, as a URL-encoded string,
1442
## to query Prometheus
1443
# customQueryParameters: ""
1444
1445
# If not defined, will use prometheus.prometheusSpec.scrapeInterval or its default
1446
# defaultDatasourceScrapeInterval: 15s
1447
1448
## Annotations for Grafana datasource configmaps
1449
##
1450
annotations: {}
1451
## Set method for HTTP to send query to datasource
1452
httpMethod: POST
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
1461
labelValue: "1"
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
1468
alertmanager:
1469
enabled: true
1470
name: Alertmanager
1471
uid: alertmanager
1472
handleGrafanaManagedAlerts: false
1473
implementation: prometheus
1474
extraConfigmapMounts: []
1475
# - name: certs-configmap
1476
# mountPath: /etc/grafana/ssl/
1477
# configMap: certs-configmap
1478
# readOnly: true
1479
1480
deleteDatasources: []
1481
# - name: example-datasource
1482
# orgId: 1
1483
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
1488
# access: proxy
1489
# basicAuth: true
1490
# secureJsonData:
1491
# basicAuthPassword: pass
1492
# basicAuthUser: daco
1493
# editable: false
1494
# jsonData:
1495
# tlsSkipVerify: true
1496
# orgId: 1
1497
# type: prometheus
1498
# url: https://{{ printf "%s-prometheus.svc" .Release.Name }}:9090
1499
# version: 1
1500
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
1507
prune: false
1508
## Passed to grafana subchart and used by servicemonitor below
1509
##
1510
service:
1511
portName: http-web
1512
ipFamilies: []
1513
ipFamilyPolicy: ""
1514
serviceMonitor:
1515
# If true, a ServiceMonitor CRD is created for a prometheus operator
1516
# https://github.com/prometheus-operator/prometheus-operator
1517
#
1518
enabled: true
1519
# Path to use for scraping metrics. Might be different if server.root_url is set
1520
# in grafana.ini
1521
# path: /metrics
1522
1523
# namespace: monitoring (defaults to use the namespace this chart is deployed to)
1524
1525
# labels for the ServiceMonitor
1526
# labels: {}
1527
1528
# Extra scrape settings.
1529
# interval: ""
1530
# scheme: http
1531
# tlsConfig: {}
1532
# scrapeTimeout: 30s
1533
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
1536
##
1537
# relabelings: []
1538
# - sourceLabels: [__meta_kubernetes_pod_node_name]
1539
# separator: ;
1540
# regex: ^(.*)$
1541
# targetLabel: nodename
1542
# replacement: $1
1543
# action: replace
1544
## Flag to disable all the kubernetes component scrapers
1545
##
1546
kubernetesServiceMonitors:
1547
enabled: true
1548
## Component scraping the kube api server
1549
##
1550
kubeApiServer:
1551
enabled: true
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
1555
##
1556
tlsConfig:
1557
serverName: kubernetes
1558
insecureSkipVerify: false
1559
ca:
1560
configMap:
1561
name: kube-root-ca.crt
1562
key: ca.crt
1563
serviceMonitor:
1564
enabled: true
1565
## Scrape interval. If not set, the Prometheus default scrape interval is used.
1566
##
1567
interval: ""
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
1570
## authentication.
1571
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
1572
##
1573
authorization:
1574
type: Bearer
1575
credentials:
1576
name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
1577
key: token
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.
1580
##
1581
scrapeClass: ""
1582
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
1583
##
1584
sampleLimit: 0
1585
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
1586
##
1587
targetLimit: 0
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.
1589
##
1590
labelLimit: 0
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.
1592
##
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.
1595
##
1596
labelValueLengthLimit: 0
1597
## proxyUrl: URL of a proxy that should be used for scraping.
1598
##
1599
proxyUrl: ""
1600
jobLabel: component
1601
selector:
1602
matchLabels:
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
1607
##
1608
metricRelabelings:
1609
# Drop excessively noisy apiserver buckets.
1610
- action: drop
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)?
1612
sourceLabels:
1613
- __name__
1614
- le
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.
1617
- action: drop
1618
regex: apiserver_watch_events_dispatch_duration_seconds_bucket;(0\.0005|0\.005|0\.025|0\.05|0\.25|0\.5|2\.5)
1619
sourceLabels:
1620
- __name__
1621
- le
1622
# - action: keep
1623
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
1624
# sourceLabels: [__name__]
1625
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
1628
##
1629
relabelings: []
1630
# - sourceLabels:
1631
# - __meta_kubernetes_namespace
1632
# - __meta_kubernetes_service_name
1633
# - __meta_kubernetes_endpoint_port_name
1634
# action: keep
1635
# regex: default;kubernetes;https
1636
# - targetLabel: __address__
1637
# replacement: kubernetes.default.svc:443
1638
1639
## Additional labels
1640
##
1641
additionalLabels: {}
1642
# foo: bar
1643
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
1646
targetLabels: []
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.
1650
jobNameOverride: ""
1651
## Component scraping the kubelet and kubelet-hosted cAdvisor
1652
##
1653
kubelet:
1654
enabled: true
1655
namespace: kube-system
1656
# Overrides the job selector in Grafana dashboards and Prometheus rules
1657
# For k3s clusters, change to k3s-server
1658
jobNameOverride: ""
1659
serviceMonitor:
1660
enabled: true
1661
## Enable scraping /metrics from kubelet's service
1662
kubelet: true
1663
## Attach metadata to discovered targets. Requires Prometheus v2.45 for endpoints created by the operator.
1664
##
1665
attachMetadata:
1666
node: false
1667
## Scrape interval. If not set, the Prometheus default scrape interval is used.
1668
##
1669
interval: ""
1670
## If true, Prometheus use (respect) labels provided by exporter.
1671
##
1672
honorLabels: true
1673
## If true, Prometheus ingests metrics with timestamp provided by exporter. If false, Prometheus ingests metrics with timestamp of scrape.
1674
##
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.
1682
##
1683
scrapeClass: ""
1684
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
1685
##
1686
sampleLimit: 0
1687
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
1688
##
1689
targetLimit: 0
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.
1691
##
1692
labelLimit: 0
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.
1694
##
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.
1697
##
1698
labelValueLengthLimit: 0
1699
## proxyUrl: URL of a proxy that should be used for scraping.
1700
##
1701
proxyUrl: ""
1702
## Enable scraping the kubelet over https. For requirements to enable this see
1703
## https://github.com/prometheus-operator/prometheus-operator/issues/926
1704
##
1705
https: true
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
1708
## authentication.
1709
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
1710
##
1711
authorization:
1712
type: Bearer
1713
credentials:
1714
name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
1715
key: token
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
1722
##
1723
tlsConfig:
1724
insecureSkipVerify: true
1725
ca:
1726
configMap:
1727
name: kube-root-ca.crt
1728
key: ca.crt
1729
## Enable scraping /metrics/probes from kubelet's service
1730
##
1731
probes: true
1732
## Enable scraping /metrics/resource from kubelet's service
1733
## This is disabled by default because container metrics are already exposed by cAdvisor
1734
##
1735
resource: false
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
1743
##
1744
cAdvisor: true
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
1751
##
1752
cAdvisorMetricRelabelings:
1753
# Drop less useful container CPU metrics.
1754
- sourceLabels: [__name__]
1755
action: drop
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__]
1759
action: drop
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__]
1765
action: drop
1766
regex: 'container_memory_mapped_file'
1767
# Drop less useful container process metrics.
1768
- sourceLabels: [__name__]
1769
action: drop
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]
1774
action: drop
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]
1780
action: drop
1781
regex: 'container_network_.*;(cali|cilium|cni|lxc|nodelocaldns|tunl).*'
1782
# Drop container spec metrics that overlap with kube-state-metrics.
1783
- sourceLabels: [__name__]
1784
action: drop
1785
regex: 'container_spec.*'
1786
# Drop cgroup metrics with no pod.
1787
- sourceLabels: [id, pod]
1788
action: drop
1789
regex: '.+;'
1790
# - sourceLabels: [__name__, image]
1791
# separator: ;
1792
# regex: container_([a-z_]+);
1793
# replacement: $1
1794
# action: drop
1795
# - sourceLabels: [__name__]
1796
# separator: ;
1797
# regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
1798
# replacement: $1
1799
# action: drop
1800
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
1803
##
1804
probesMetricRelabelings: []
1805
# - sourceLabels: [__name__, image]
1806
# separator: ;
1807
# regex: container_([a-z_]+);
1808
# replacement: $1
1809
# action: drop
1810
# - sourceLabels: [__name__]
1811
# separator: ;
1812
# regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
1813
# replacement: $1
1814
# action: drop
1815
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
1818
##
1819
## metrics_path is required to match upstream rules and charts
1820
cAdvisorRelabelings:
1821
- action: replace
1822
sourceLabels: [__metrics_path__]
1823
targetLabel: metrics_path
1824
# - sourceLabels: [__meta_kubernetes_pod_node_name]
1825
# separator: ;
1826
# regex: ^(.*)$
1827
# targetLabel: nodename
1828
# replacement: $1
1829
# action: replace
1830
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
1833
##
1834
probesRelabelings:
1835
- action: replace
1836
sourceLabels: [__metrics_path__]
1837
targetLabel: metrics_path
1838
# - sourceLabels: [__meta_kubernetes_pod_node_name]
1839
# separator: ;
1840
# regex: ^(.*)$
1841
# targetLabel: nodename
1842
# replacement: $1
1843
# action: replace
1844
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
1847
##
1848
resourceRelabelings:
1849
- action: replace
1850
sourceLabels: [__metrics_path__]
1851
targetLabel: metrics_path
1852
# - sourceLabels: [__meta_kubernetes_pod_node_name]
1853
# separator: ;
1854
# regex: ^(.*)$
1855
# targetLabel: nodename
1856
# replacement: $1
1857
# action: replace
1858
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
1861
##
1862
metricRelabelings:
1863
# Reduce bucket cardinality of kubelet storage operations.
1864
- action: drop
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]
1868
# separator: ;
1869
# regex: container_([a-z_]+);
1870
# replacement: $1
1871
# action: drop
1872
# - sourceLabels: [__name__]
1873
# separator: ;
1874
# regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
1875
# replacement: $1
1876
# action: drop
1877
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
1880
##
1881
## metrics_path is required to match upstream rules and charts
1882
relabelings:
1883
- action: replace
1884
sourceLabels: [__metrics_path__]
1885
targetLabel: metrics_path
1886
# - sourceLabels: [__meta_kubernetes_pod_node_name]
1887
# separator: ;
1888
# regex: ^(.*)$
1889
# targetLabel: nodename
1890
# replacement: $1
1891
# action: replace
1892
1893
## Additional labels
1894
##
1895
additionalLabels: {}
1896
# foo: bar
1897
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
1900
targetLabels: []
1901
## Component scraping the kube controller manager
1902
##
1903
kubeControllerManager:
1904
enabled: true
1905
# Overrides the job selector in Grafana dashboards and Prometheus rules
1906
# For k3s clusters, change to k3s-server
1907
jobNameOverride: ""
1908
## If your kube controller manager is not deployed as a pod, specify IPs it can be found on
1909
##
1910
endpoints: []
1911
# - 10.141.4.22
1912
# - 10.141.4.23
1913
# - 10.141.4.24
1914
1915
## If using kubeControllerManager.endpoints only the port and targetPort are used
1916
##
1917
service:
1918
enabled: true
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.
1921
##
1922
port: null
1923
targetPort: null
1924
ipDualStack:
1925
enabled: false
1926
ipFamilies: ["IPv6", "IPv4"]
1927
ipFamilyPolicy: "PreferDualStack"
1928
# selector:
1929
# component: kube-controller-manager
1930
serviceMonitor:
1931
enabled: true
1932
## Scrape interval. If not set, the Prometheus default scrape interval is used.
1933
##
1934
interval: ""
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.
1937
##
1938
scrapeClass: ""
1939
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
1940
##
1941
sampleLimit: 0
1942
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
1943
##
1944
targetLimit: 0
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.
1946
##
1947
labelLimit: 0
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.
1949
##
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.
1952
##
1953
labelValueLengthLimit: 0
1954
## proxyUrl: URL of a proxy that should be used for scraping.
1955
##
1956
proxyUrl: ""
1957
## port: Name of the port the metrics will be scraped from
1958
##
1959
port: http-metrics
1960
jobLabel: jobLabel
1961
selector: {}
1962
# matchLabels:
1963
# component: kube-controller-manager
1964
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.
1968
##
1969
https: null
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
1972
## authentication.
1973
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
1974
##
1975
authorization:
1976
type: Bearer
1977
credentials:
1978
name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
1979
key: token
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
1983
##
1984
tlsConfig:
1985
insecureSkipVerify: true
1986
ca:
1987
configMap:
1988
name: kube-root-ca.crt
1989
key: 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
1992
##
1993
metricRelabelings: []
1994
# - action: keep
1995
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
1996
# sourceLabels: [__name__]
1997
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
2000
##
2001
relabelings: []
2002
# - sourceLabels: [__meta_kubernetes_pod_node_name]
2003
# separator: ;
2004
# regex: ^(.*)$
2005
# targetLabel: nodename
2006
# replacement: $1
2007
# action: replace
2008
2009
## Additional labels
2010
##
2011
additionalLabels: {}
2012
# foo: bar
2013
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
2016
targetLabels: []
2017
## Component scraping coreDns. Use either this or kubeDns
2018
##
2019
coreDns:
2020
enabled: true
2021
service:
2022
enabled: true
2023
port: 9153
2024
targetPort: 9153
2025
ipDualStack:
2026
enabled: false
2027
ipFamilies: ["IPv6", "IPv4"]
2028
ipFamilyPolicy: "PreferDualStack"
2029
# selector:
2030
# k8s-app: kube-dns
2031
serviceMonitor:
2032
enabled: true
2033
## Scrape interval. If not set, the Prometheus default scrape interval is used.
2034
##
2035
interval: ""
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.
2038
##
2039
scrapeClass: ""
2040
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2041
##
2042
sampleLimit: 0
2043
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2044
##
2045
targetLimit: 0
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.
2047
##
2048
labelLimit: 0
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.
2050
##
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.
2053
##
2054
labelValueLengthLimit: 0
2055
## proxyUrl: URL of a proxy that should be used for scraping.
2056
##
2057
proxyUrl: ""
2058
## port: Name of the port the metrics will be scraped from
2059
##
2060
port: http-metrics
2061
jobLabel: jobLabel
2062
selector: {}
2063
# matchLabels:
2064
# k8s-app: kube-dns
2065
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
2068
##
2069
metricRelabelings: []
2070
# - action: keep
2071
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2072
# sourceLabels: [__name__]
2073
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
2076
##
2077
relabelings: []
2078
# - sourceLabels: [__meta_kubernetes_pod_node_name]
2079
# separator: ;
2080
# regex: ^(.*)$
2081
# targetLabel: nodename
2082
# replacement: $1
2083
# action: replace
2084
2085
## Additional labels
2086
##
2087
additionalLabels: {}
2088
# foo: bar
2089
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
2092
targetLabels: []
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
2095
## authentication.
2096
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2097
##
2098
authorization:
2099
type: Bearer
2100
credentials:
2101
name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2102
key: token
2103
## Component scraping kubeDns. Use either this or coreDns
2104
##
2105
kubeDns:
2106
enabled: false
2107
service:
2108
dnsmasq:
2109
port: 10054
2110
targetPort: 10054
2111
skydns:
2112
port: 10055
2113
targetPort: 10055
2114
ipDualStack:
2115
enabled: false
2116
ipFamilies: ["IPv6", "IPv4"]
2117
ipFamilyPolicy: "PreferDualStack"
2118
# selector:
2119
# k8s-app: kube-dns
2120
serviceMonitor:
2121
## Scrape interval. If not set, the Prometheus default scrape interval is used.
2122
##
2123
interval: ""
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.
2126
##
2127
scrapeClass: ""
2128
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2129
##
2130
sampleLimit: 0
2131
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2132
##
2133
targetLimit: 0
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.
2135
##
2136
labelLimit: 0
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.
2138
##
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.
2141
##
2142
labelValueLengthLimit: 0
2143
## proxyUrl: URL of a proxy that should be used for scraping.
2144
##
2145
proxyUrl: ""
2146
jobLabel: jobLabel
2147
selector: {}
2148
# matchLabels:
2149
# k8s-app: kube-dns
2150
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
2153
##
2154
metricRelabelings: []
2155
# - action: keep
2156
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2157
# sourceLabels: [__name__]
2158
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
2161
##
2162
relabelings: []
2163
# - sourceLabels: [__meta_kubernetes_pod_node_name]
2164
# separator: ;
2165
# regex: ^(.*)$
2166
# targetLabel: nodename
2167
# replacement: $1
2168
# action: replace
2169
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
2172
##
2173
dnsmasqMetricRelabelings: []
2174
# - action: keep
2175
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2176
# sourceLabels: [__name__]
2177
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
2180
##
2181
dnsmasqRelabelings: []
2182
# - sourceLabels: [__meta_kubernetes_pod_node_name]
2183
# separator: ;
2184
# regex: ^(.*)$
2185
# targetLabel: nodename
2186
# replacement: $1
2187
# action: replace
2188
2189
## Additional labels
2190
##
2191
additionalLabels: {}
2192
# foo: bar
2193
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
2196
targetLabels: []
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
2199
## authentication.
2200
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2201
##
2202
authorization:
2203
type: Bearer
2204
credentials:
2205
name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2206
key: token
2207
## Component scraping etcd
2208
##
2209
kubeEtcd:
2210
enabled: true
2211
## If your etcd is not deployed as a pod, specify IPs it can be found on
2212
##
2213
endpoints: []
2214
# - 10.141.4.22
2215
# - 10.141.4.23
2216
# - 10.141.4.24
2217
2218
## Etcd service. If using kubeEtcd.endpoints only the port and targetPort are used
2219
##
2220
service:
2221
enabled: true
2222
port: 2381
2223
targetPort: 2381
2224
ipDualStack:
2225
enabled: false
2226
ipFamilies: ["IPv6", "IPv4"]
2227
ipFamilyPolicy: "PreferDualStack"
2228
# selector:
2229
# component: etcd
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
2232
##
2233
## serviceMonitor:
2234
## scheme: https
2235
## tlsConfig:
2236
## insecureSkipVerify: false
2237
## serverName: localhost
2238
## ca:
2239
## secret:
2240
## name: etcd-client-cert
2241
## key: etcd-ca
2242
## cert:
2243
## secret:
2244
## name: etcd-client-cert
2245
## key: etcd-client
2246
## keySecret:
2247
## name: etcd-client-cert
2248
## key: etcd-client-key
2249
##
2250
serviceMonitor:
2251
enabled: true
2252
## Scrape interval. If not set, the Prometheus default scrape interval is used.
2253
##
2254
interval: ""
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.
2257
##
2258
scrapeClass: ""
2259
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2260
##
2261
sampleLimit: 0
2262
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2263
##
2264
targetLimit: 0
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.
2266
##
2267
labelLimit: 0
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.
2269
##
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.
2272
##
2273
labelValueLengthLimit: 0
2274
## proxyUrl: URL of a proxy that should be used for scraping.
2275
##
2276
proxyUrl: ""
2277
scheme: http
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
2282
##
2283
tlsConfig:
2284
insecureSkipVerify: false
2285
## port: Name of the port the metrics will be scraped from
2286
##
2287
port: http-metrics
2288
jobLabel: jobLabel
2289
selector: {}
2290
# matchLabels:
2291
# component: etcd
2292
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
2295
##
2296
metricRelabelings: []
2297
# - action: keep
2298
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2299
# sourceLabels: [__name__]
2300
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
2303
##
2304
relabelings: []
2305
# - sourceLabels: [__meta_kubernetes_pod_node_name]
2306
# separator: ;
2307
# regex: ^(.*)$
2308
# targetLabel: nodename
2309
# replacement: $1
2310
# action: replace
2311
2312
## Additional labels
2313
##
2314
additionalLabels: {}
2315
# foo: bar
2316
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
2319
targetLabels: []
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
2322
## authentication.
2323
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2324
##
2325
authorization:
2326
type: Bearer
2327
credentials:
2328
name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2329
key: token
2330
## Component scraping kube scheduler
2331
##
2332
kubeScheduler:
2333
enabled: true
2334
# Overrides the job selector in Grafana dashboards and Prometheus rules
2335
# For k3s clusters, change to k3s-server
2336
jobNameOverride: ""
2337
## If your kube scheduler is not deployed as a pod, specify IPs it can be found on
2338
##
2339
endpoints: []
2340
# - 10.141.4.22
2341
# - 10.141.4.23
2342
# - 10.141.4.24
2343
2344
## If using kubeScheduler.endpoints only the port and targetPort are used
2345
##
2346
service:
2347
enabled: true
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.
2350
##
2351
port: null
2352
targetPort: null
2353
ipDualStack:
2354
enabled: false
2355
ipFamilies: ["IPv6", "IPv4"]
2356
ipFamilyPolicy: "PreferDualStack"
2357
# selector:
2358
# component: kube-scheduler
2359
serviceMonitor:
2360
enabled: true
2361
## Scrape interval. If not set, the Prometheus default scrape interval is used.
2362
##
2363
interval: ""
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.
2366
##
2367
scrapeClass: ""
2368
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2369
##
2370
sampleLimit: 0
2371
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2372
##
2373
targetLimit: 0
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.
2375
##
2376
labelLimit: 0
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.
2378
##
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.
2381
##
2382
labelValueLengthLimit: 0
2383
## proxyUrl: URL of a proxy that should be used for scraping.
2384
##
2385
proxyUrl: ""
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.
2389
##
2390
https: null
2391
## port: Name of the port the metrics will be scraped from
2392
##
2393
port: http-metrics
2394
jobLabel: jobLabel
2395
selector: {}
2396
# matchLabels:
2397
# component: kube-scheduler
2398
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
2401
## authentication.
2402
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2403
##
2404
authorization:
2405
type: Bearer
2406
credentials:
2407
name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2408
key: token
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
2412
##
2413
tlsConfig:
2414
insecureSkipVerify: true
2415
ca:
2416
configMap:
2417
name: kube-root-ca.crt
2418
key: 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
2421
##
2422
metricRelabelings: []
2423
# - action: keep
2424
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2425
# sourceLabels: [__name__]
2426
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
2429
##
2430
relabelings: []
2431
# - sourceLabels: [__meta_kubernetes_pod_node_name]
2432
# separator: ;
2433
# regex: ^(.*)$
2434
# targetLabel: nodename
2435
# replacement: $1
2436
# action: replace
2437
2438
## Additional labels
2439
##
2440
additionalLabels: {}
2441
# foo: bar
2442
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
2445
targetLabels: []
2446
resource:
2447
## Enable scraping /metrics/resource from kube-scheduler
2448
## https://kubernetes.io/docs/concepts/cluster-administration/system-metrics/#kube-scheduler-metrics
2449
enabled: false
2450
## Scrape interval. If not set, the Prometheus default scrape interval is used.
2451
##
2452
interval: ""
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
2455
##
2456
metricRelabelings: []
2457
# - action: keep
2458
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2459
# sourceLabels: [__name__]
2460
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
2463
##
2464
relabelings: []
2465
# - sourceLabels: [__meta_kubernetes_pod_node_name]
2466
# separator: ;
2467
# regex: ^(.*)$
2468
# targetLabel: nodename
2469
# replacement: $1
2470
# action: replace
2471
## Component scraping kube proxy
2472
##
2473
kubeProxy:
2474
enabled: true
2475
# Overrides the job selector in Grafana dashboards and Prometheus rules
2476
# For k3s clusters, change to k3s-server
2477
jobNameOverride: ""
2478
## If your kube proxy is not deployed as a pod, specify IPs it can be found on
2479
##
2480
endpoints: []
2481
# - 10.141.4.22
2482
# - 10.141.4.23
2483
# - 10.141.4.24
2484
2485
service:
2486
enabled: true
2487
port: 10249
2488
targetPort: 10249
2489
ipDualStack:
2490
enabled: false
2491
ipFamilies: ["IPv6", "IPv4"]
2492
ipFamilyPolicy: "PreferDualStack"
2493
# selector:
2494
# k8s-app: kube-proxy
2495
serviceMonitor:
2496
enabled: true
2497
## Scrape interval. If not set, the Prometheus default scrape interval is used.
2498
##
2499
interval: ""
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.
2502
##
2503
scrapeClass: ""
2504
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2505
##
2506
sampleLimit: 0
2507
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2508
##
2509
targetLimit: 0
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.
2511
##
2512
labelLimit: 0
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.
2514
##
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.
2517
##
2518
labelValueLengthLimit: 0
2519
## proxyUrl: URL of a proxy that should be used for scraping.
2520
##
2521
proxyUrl: ""
2522
## port: Name of the port the metrics will be scraped from
2523
##
2524
port: http-metrics
2525
jobLabel: jobLabel
2526
selector: {}
2527
# matchLabels:
2528
# k8s-app: kube-proxy
2529
2530
## Enable scraping kube-proxy over https.
2531
## Requires proper certs (not self-signed) and delegated authentication/authorization checks
2532
##
2533
https: false
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
2537
##
2538
tlsConfig:
2539
ca:
2540
configMap:
2541
name: kube-root-ca.crt
2542
key: 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
2545
##
2546
metricRelabelings: []
2547
# - action: keep
2548
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2549
# sourceLabels: [__name__]
2550
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
2553
##
2554
relabelings: []
2555
# - action: keep
2556
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
2557
# sourceLabels: [__name__]
2558
2559
## Additional labels
2560
##
2561
additionalLabels: {}
2562
# foo: bar
2563
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
2566
targetLabels: []
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
2569
## authentication.
2570
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.SafeAuthorization
2571
##
2572
authorization:
2573
type: Bearer
2574
credentials:
2575
name: '{{ include "kube-prometheus-stack.prometheus.tokenSecretName" . }}'
2576
key: token
2577
## Component scraping kube state metrics
2578
##
2579
kubeStateMetrics:
2580
enabled: true
2581
## Configuration for kube-state-metrics subchart
2582
##
2583
kube-state-metrics:
2584
## set to true to add the release label so scraping of the servicemonitor with kube-prometheus-stack works out of the box
2585
releaseLabel: true
2586
## Enable scraping via kubernetes-service-endpoints
2587
## Disabled by default as we service monitor is enabled below
2588
##
2589
prometheusScrape: false
2590
prometheus:
2591
monitor:
2592
## Enable scraping via service monitor
2593
## Disable to prevent duplication if you enable prometheusScrape above
2594
enabled: true
2595
## kube-state-metrics endpoint
2596
http:
2597
## Keep labels from scraped data, overriding server-side labels
2598
honorLabels: true
2599
## selfMonitor endpoint
2600
metrics:
2601
## Keep labels from scraped data, overriding server-side labels
2602
honorLabels: true
2603
## Deploy node exporter as a daemonset to all nodes
2604
##
2605
nodeExporter:
2606
enabled: true
2607
operatingSystems:
2608
linux:
2609
enabled: true
2610
aix:
2611
enabled: true
2612
darwin:
2613
enabled: true
2614
## ForceDeployDashboard Create dashboard configmap even if nodeExporter deployment has been disabled
2615
##
2616
forceDeployDashboards: false
2617
## Configuration for prometheus-node-exporter subchart
2618
##
2619
prometheus-node-exporter:
2620
## Enable scraping via kubernetes-service-endpoints
2621
## Disabled by default as service monitor is enabled below
2622
##
2623
prometheusScrape: false
2624
namespaceOverride: ""
2625
podLabels:
2626
## Add the 'node-exporter' label to be used by serviceMonitor and podMonitor to match standard common usage in rules and grafana dashboards
2627
##
2628
jobLabel: node-exporter
2629
releaseLabel: true
2630
extraArgs: []
2631
service:
2632
portName: http-metrics
2633
ipDualStack:
2634
enabled: false
2635
ipFamilies: ["IPv6", "IPv4"]
2636
ipFamilyPolicy: "PreferDualStack"
2637
labels:
2638
jobLabel: node-exporter
2639
image:
2640
distroless: true
2641
prometheus:
2642
monitor:
2643
## Enable scraping via service monitor
2644
## Disable to prevent duplication if you have enabled prometheusScrape above
2645
#
2646
enabled: true
2647
jobLabel: jobLabel
2648
## Scrape interval. If not set, the Prometheus default scrape interval is used.
2649
##
2650
interval: ""
2651
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
2652
##
2653
sampleLimit: 0
2654
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
2655
##
2656
targetLimit: 0
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.
2658
##
2659
labelLimit: 0
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.
2661
##
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.
2664
##
2665
labelValueLengthLimit: 0
2666
## How long until a scrape request times out. If not set, the Prometheus default scape timeout is used.
2667
##
2668
scrapeTimeout: ""
2669
## proxyUrl: URL of a proxy that should be used for scraping.
2670
##
2671
proxyUrl: ""
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
2674
##
2675
metricRelabelings: []
2676
# - sourceLabels: [__name__]
2677
# separator: ;
2678
# regex: ^node_mountstats_nfs_(event|operations|transport)_.+
2679
# replacement: $1
2680
# action: drop
2681
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
2684
##
2685
relabelings: []
2686
# - sourceLabels: [__meta_kubernetes_pod_node_name]
2687
# separator: ;
2688
# regex: ^(.*)$
2689
# targetLabel: nodename
2690
# replacement: $1
2691
# action: replace
2692
## Attach node metadata to discovered targets. Requires Prometheus v2.35.0 and above.
2693
##
2694
# attachMetadata:
2695
# node: false
2696
2697
podMonitor:
2698
enabled: false
2699
jobLabel: jobLabel
2700
rbac:
2701
## If true, create PSPs for node-exporter
2702
##
2703
pspEnabled: false
2704
## Manages Prometheus and Alertmanager components
2705
##
2706
prometheusOperator:
2707
enabled: true
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
2714
##
2715
strategy: {}
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.
2721
##
2722
tls:
2723
enabled: true
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.
2730
secretName: ""
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.
2734
internalPort: 10250
2735
## Liveness probe for the prometheusOperator deployment
2736
##
2737
livenessProbe:
2738
enabled: true
2739
failureThreshold: 3
2740
initialDelaySeconds: 0
2741
periodSeconds: 10
2742
successThreshold: 1
2743
timeoutSeconds: 1
2744
## Readiness probe for the prometheusOperator deployment
2745
##
2746
readinessProbe:
2747
enabled: true
2748
failureThreshold: 3
2749
initialDelaySeconds: 0
2750
periodSeconds: 10
2751
successThreshold: 1
2752
timeoutSeconds: 1
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
2755
admissionWebhooks:
2756
## Valid values: Fail, Ignore, IgnoreOnInstallOnly
2757
## IgnoreOnInstallOnly - If Release.IsInstall returns "true", set "Ignore" otherwise "Fail"
2758
failurePolicy: ""
2759
## The default timeoutSeconds is 10 and the maximum value is 30.
2760
timeoutSeconds: 10
2761
enabled: true
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.
2764
caBundle: ""
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.
2768
##
2769
annotations: {}
2770
# argocd.argoproj.io/hook: PreSync
2771
# argocd.argoproj.io/hook-delete-policy: HookSucceeded
2772
2773
namespaceSelector: {}
2774
objectSelector: {}
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")'
2779
matchConditions: []
2780
mutatingWebhookConfiguration:
2781
annotations: {}
2782
# argocd.argoproj.io/hook: PreSync
2783
validatingWebhookConfiguration:
2784
annotations: {}
2785
# argocd.argoproj.io/hook: PreSync
2786
deployment:
2787
enabled: false
2788
## Number of replicas
2789
##
2790
replicas: 1
2791
## Strategy of the deployment
2792
##
2793
strategy: {}
2794
# Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
2795
podDisruptionBudget:
2796
enabled: false
2797
minAvailable: 1
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.
2804
##
2805
tls:
2806
enabled: true
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.
2810
internalPort: 10250
2811
## Service account for Prometheus Operator Webhook to use.
2812
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
2813
##
2814
serviceAccount:
2815
annotations: {}
2816
automountServiceAccountToken: false
2817
create: true
2818
name: ""
2819
## Configuration for Prometheus operator Webhook service
2820
##
2821
service:
2822
annotations: {}
2823
labels: {}
2824
clusterIP: ""
2825
ipDualStack:
2826
enabled: false
2827
ipFamilies: ["IPv6", "IPv4"]
2828
ipFamilyPolicy: "PreferDualStack"
2829
## Port to expose on each node
2830
## Only used if service.type is 'NodePort'
2831
##
2832
nodePort: 31080
2833
nodePortTls: 31443
2834
## Additional ports to open for Prometheus operator Webhook service
2835
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
2836
##
2837
additionalPorts: []
2838
## Loadbalancer IP
2839
## Only use if service.type is "LoadBalancer"
2840
##
2841
loadBalancerIP: ""
2842
loadBalancerSourceRanges: []
2843
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
2844
##
2845
externalTrafficPolicy: Cluster
2846
## Service type
2847
## NodePort, ClusterIP, LoadBalancer
2848
##
2849
type: ClusterIP
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
2852
##
2853
externalIPs: []
2854
# ## Labels to add to the operator webhook deployment
2855
# ##
2856
labels: {}
2857
## Annotations to add to the operator webhook deployment
2858
##
2859
annotations: {}
2860
## Labels to add to the operator webhook pod
2861
##
2862
podLabels: {}
2863
## Annotations to add to the operator webhook pod
2864
##
2865
podAnnotations: {}
2866
## Assign a PriorityClassName to pods if set
2867
# priorityClassName: ""
2868
2869
## Define Log Format
2870
# Use logfmt (default) or json logging
2871
# logFormat: logfmt
2872
2873
## Decrease log verbosity to errors only
2874
# logLevel: error
2875
2876
## Prometheus-operator webhook image
2877
##
2878
image:
2879
registry: cgr.dev
2880
repository: chainguard-private/prometheus-admission-webhook
2881
# if not set appVersion field from Chart.yaml is used
2882
tag: 0.95.2-r1
2883
sha: sha256:921e2355114ae77d08bbf590369502a33d6b85d627f8c5cbc09b05860aae9da7
2884
pullPolicy: IfNotPresent
2885
## Define Log Format
2886
# Use logfmt (default) or json logging
2887
# logFormat: logfmt
2888
2889
## Decrease log verbosity to errors only
2890
# logLevel: error
2891
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.
2896
##
2897
promqlOptions: []
2898
## Liveness probe
2899
##
2900
livenessProbe:
2901
enabled: true
2902
failureThreshold: 3
2903
initialDelaySeconds: 30
2904
periodSeconds: 10
2905
successThreshold: 1
2906
timeoutSeconds: 1
2907
## Readiness probe
2908
##
2909
readinessProbe:
2910
enabled: true
2911
failureThreshold: 3
2912
initialDelaySeconds: 5
2913
periodSeconds: 10
2914
successThreshold: 1
2915
timeoutSeconds: 1
2916
## Resource limits & requests
2917
##
2918
resources: {}
2919
# limits:
2920
# cpu: 200m
2921
# memory: 200Mi
2922
# requests:
2923
# cpu: 100m
2924
# memory: 100Mi
2925
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
2928
##
2929
hostNetwork: false
2930
## Define which Nodes the Pods are scheduled on.
2931
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
2932
##
2933
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/
2937
##
2938
tolerations: []
2939
# - key: "key"
2940
# operator: "Equal"
2941
# value: "value"
2942
# effect: "NoSchedule"
2943
2944
## Assign custom affinity rules to the prometheus operator
2945
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
2946
##
2947
affinity: {}
2948
# nodeAffinity:
2949
# requiredDuringSchedulingIgnoredDuringExecution:
2950
# nodeSelectorTerms:
2951
# - matchExpressions:
2952
# - key: kubernetes.io/e2e-az-name
2953
# operator: In
2954
# values:
2955
# - e2e-az1
2956
# - e2e-az2
2957
dnsConfig: {}
2958
# nameservers:
2959
# - 1.2.3.4
2960
# searches:
2961
# - ns1.svc.cluster-domain.example
2962
# - my.dns.search.suffix
2963
# options:
2964
# - name: ndots
2965
# value: "2"
2966
# - name: edns0
2967
securityContext:
2968
fsGroup: 65534
2969
runAsGroup: 65534
2970
runAsNonRoot: true
2971
runAsUser: 65534
2972
seccompProfile:
2973
type: RuntimeDefault
2974
## Container-specific security context configuration
2975
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
2976
##
2977
containerSecurityContext:
2978
allowPrivilegeEscalation: false
2979
readOnlyRootFilesystem: true
2980
capabilities:
2981
drop:
2982
- ALL
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
2985
## API credentials.
2986
##
2987
automountServiceAccountToken: false
2988
patch:
2989
enabled: true
2990
image:
2991
registry: cgr.dev
2992
repository: chainguard-private/kube-webhook-certgen
2993
tag: 1.15.18-r0
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.
3003
##
3004
secretType: ""
3005
resources: {}
3006
## Provide a priority class name to the webhook patching job
3007
##
3008
priorityClassName: ""
3009
ttlSecondsAfterFinished: 60
3010
annotations: {}
3011
# argocd.argoproj.io/hook: PreSync
3012
# argocd.argoproj.io/hook-delete-policy: HookSucceeded
3013
podAnnotations: {}
3014
nodeSelector:
3015
kubernetes.io/os: linux
3016
affinity: {}
3017
tolerations: []
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/
3021
##
3022
securityContext:
3023
runAsGroup: 2000
3024
runAsNonRoot: true
3025
runAsUser: 2000
3026
seccompProfile:
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/
3030
##
3031
serviceAccount:
3032
create: true
3033
annotations: {}
3034
automountServiceAccountToken: true
3035
# Security context for create job container
3036
createSecretJob:
3037
securityContext:
3038
allowPrivilegeEscalation: false
3039
readOnlyRootFilesystem: true
3040
capabilities:
3041
drop:
3042
- ALL
3043
# Security context for patch job container
3044
patchWebhookJob:
3045
securityContext:
3046
allowPrivilegeEscalation: false
3047
readOnlyRootFilesystem: true
3048
capabilities:
3049
drop:
3050
- ALL
3051
# Use certmanager to generate webhook certs
3052
certManager:
3053
enabled: false
3054
# self-signed root certificate
3055
rootCert:
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
3059
# Defaults to nil.
3060
revisionHistoryLimit:
3061
admissionCert:
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
3065
# Defaults to nil.
3066
revisionHistoryLimit:
3067
# issuerRef:
3068
# name: "issuer"
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
3073
# privateKey:
3074
# algorithm: ECDSA
3075
# size: 384
3076
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
3079
##
3080
namespaces: {}
3081
# releaseNamespace: true
3082
# additional:
3083
# - kube-system
3084
3085
## Namespaces not to scope the interaction of the Prometheus Operator (deny list).
3086
##
3087
denyNamespaces: []
3088
## Filter namespaces to look for prometheus-operator custom resources
3089
##
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
3097
##
3098
# clusterDomain: "cluster.local"
3099
networkPolicy:
3100
## Enable creation of NetworkPolicy resources.
3101
##
3102
enabled: false
3103
## Flavor of the network policy to use.
3104
# Can be:
3105
# * kubernetes for networking.k8s.io/v1/NetworkPolicy
3106
# * cilium for cilium.io/v2/CiliumNetworkPolicy
3107
flavor: kubernetes
3108
# cilium:
3109
# egress:
3110
3111
## match labels used in selector
3112
# matchLabels: {}
3113
## Service account for Prometheus Operator to use.
3114
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
3115
##
3116
serviceAccount:
3117
create: true
3118
name: ""
3119
automountServiceAccountToken: true
3120
annotations: {}
3121
# -- terminationGracePeriodSeconds for container lifecycle hook
3122
terminationGracePeriodSeconds: 30
3123
# -- Specify lifecycle hooks for the controller
3124
lifecycle: {}
3125
## Configuration for Prometheus operator service
3126
##
3127
service:
3128
annotations: {}
3129
labels: {}
3130
clusterIP: ""
3131
ipDualStack:
3132
enabled: false
3133
ipFamilies: ["IPv6", "IPv4"]
3134
ipFamilyPolicy: "PreferDualStack"
3135
## Port to expose on each node
3136
## Only used if service.type is 'NodePort'
3137
##
3138
nodePort: 30080
3139
nodePortTls: 30443
3140
## Additional ports to open for Prometheus operator service
3141
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
3142
##
3143
additionalPorts: []
3144
## Loadbalancer IP
3145
## Only use if service.type is "LoadBalancer"
3146
##
3147
loadBalancerIP: ""
3148
loadBalancerSourceRanges: []
3149
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3150
##
3151
externalTrafficPolicy: Cluster
3152
## Service type
3153
## NodePort, ClusterIP, LoadBalancer
3154
##
3155
type: ClusterIP
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
3158
##
3159
externalIPs: []
3160
# ## Labels to add to the operator deployment
3161
# ##
3162
labels: {}
3163
## Annotations to add to the operator deployment
3164
##
3165
annotations: {}
3166
## Labels to add to the operator pod
3167
##
3168
podLabels: {}
3169
## Annotations to add to the operator pod
3170
##
3171
podAnnotations: {}
3172
## Assign a podDisruptionBudget to the operator
3173
##
3174
podDisruptionBudget:
3175
enabled: false
3176
minAvailable: 1
3177
# maxUnavailable: ""
3178
unhealthyPodEvictionPolicy: AlwaysAllow
3179
## Assign a PriorityClassName to pods if set
3180
# priorityClassName: ""
3181
3182
## Define Log Format
3183
# Use logfmt (default) or json logging
3184
# logFormat: logfmt
3185
3186
## Decrease log verbosity to errors only
3187
# logLevel: error
3188
kubeletService:
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`)
3191
##
3192
enabled: true
3193
namespace: kube-system
3194
selector: ""
3195
## Use '{{ template "kube-prometheus-stack.fullname" . }}-kubelet' by default
3196
name: ""
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
3203
extraArgs: []
3204
# - --labels="cluster=talos-cluster"
3205
3206
## Create a servicemonitor for the operator
3207
##
3208
serviceMonitor:
3209
## If true, create a serviceMonitor for prometheus operator
3210
##
3211
selfMonitor: true
3212
## Labels for ServiceMonitor
3213
additionalLabels: {}
3214
## Scrape interval. If not set, the Prometheus default scrape interval is used.
3215
##
3216
interval: ""
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.
3219
##
3220
scrapeClass: ""
3221
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
3222
##
3223
sampleLimit: 0
3224
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
3225
##
3226
targetLimit: 0
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.
3228
##
3229
labelLimit: 0
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.
3231
##
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.
3234
##
3235
labelValueLengthLimit: 0
3236
## Scrape timeout. If not set, the Prometheus default scrape timeout is used.
3237
scrapeTimeout: ""
3238
## Metric relabel configs to apply to samples before ingestion.
3239
##
3240
metricRelabelings: []
3241
# - action: keep
3242
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
3243
# sourceLabels: [__name__]
3244
3245
# relabel configs to apply to samples before ingestion.
3246
##
3247
relabelings: []
3248
# - sourceLabels: [__meta_kubernetes_pod_node_name]
3249
# separator: ;
3250
# regex: ^(.*)$
3251
# targetLabel: nodename
3252
# replacement: $1
3253
# action: replace
3254
## Resource limits & requests
3255
##
3256
resources: {}
3257
# limits:
3258
# cpu: 200m
3259
# memory: 200Mi
3260
# requests:
3261
# cpu: 100m
3262
# memory: 100Mi
3263
3264
## Operator Environment
3265
## env:
3266
## VARIABLE: value
3267
env:
3268
GOGC: "30"
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
3271
##
3272
hostNetwork: false
3273
## Define which Nodes the Pods are scheduled on.
3274
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
3275
##
3276
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/
3280
##
3281
tolerations: []
3282
# - key: "key"
3283
# operator: "Equal"
3284
# value: "value"
3285
# effect: "NoSchedule"
3286
3287
## Assign custom affinity rules to the prometheus operator
3288
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
3289
##
3290
affinity: {}
3291
# nodeAffinity:
3292
# requiredDuringSchedulingIgnoredDuringExecution:
3293
# nodeSelectorTerms:
3294
# - matchExpressions:
3295
# - key: kubernetes.io/e2e-az-name
3296
# operator: In
3297
# values:
3298
# - e2e-az1
3299
# - e2e-az2
3300
dnsConfig: {}
3301
# nameservers:
3302
# - 1.2.3.4
3303
# searches:
3304
# - ns1.svc.cluster-domain.example
3305
# - my.dns.search.suffix
3306
# options:
3307
# - name: ndots
3308
# value: "2"
3309
# - name: edns0
3310
securityContext:
3311
fsGroup: 65534
3312
runAsGroup: 65534
3313
runAsNonRoot: true
3314
runAsUser: 65534
3315
seccompProfile:
3316
type: RuntimeDefault
3317
## Setup hostUsers for prometheus-operator
3318
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/
3319
hostUsers: ~
3320
## Container-specific security context configuration
3321
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
3322
##
3323
containerSecurityContext:
3324
allowPrivilegeEscalation: false
3325
readOnlyRootFilesystem: true
3326
capabilities:
3327
drop:
3328
- ALL
3329
# Enable vertical pod autoscaler support for prometheus-operator
3330
verticalPodAutoscaler:
3331
enabled: false
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.
3335
# recommenders:
3336
# - name: custom-recommender-performance
3337
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
3342
3343
# Define the max allowed resources for the pod
3344
maxAllowed: {}
3345
# cpu: 200m
3346
# memory: 100Mi
3347
# Define the min allowed resources for the pod
3348
minAllowed: {}
3349
# cpu: 200m
3350
# memory: 100Mi
3351
3352
updatePolicy:
3353
# Specifies minimal number of replicas which need to be alive for VPA Updater to attempt pod eviction
3354
# minReplicas: 1
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
3359
##
3360
image:
3361
registry: cgr.dev
3362
repository: chainguard-private/prometheus-operator
3363
# if not set appVersion field from Chart.yaml is used
3364
tag: 0.95.2-r1
3365
sha: sha256:80e945c4ac5c79f353faf2c6f8d88ba57158ad9ece4fc27a13a46d234b2c13fe
3366
pullPolicy: IfNotPresent
3367
## Prometheus image to use for prometheuses managed by the operator
3368
##
3369
# prometheusDefaultBaseImage: prometheus/prometheus
3370
3371
## Prometheus image registry to use for prometheuses managed by the operator
3372
##
3373
# prometheusDefaultBaseImageRegistry: quay.io
3374
3375
## Alertmanager image to use for alertmanagers managed by the operator
3376
##
3377
# alertmanagerDefaultBaseImage: prometheus/alertmanager
3378
3379
## Alertmanager image registry to use for alertmanagers managed by the operator
3380
##
3381
# alertmanagerDefaultBaseImageRegistry: quay.io
3382
3383
## Prometheus-config-reloader
3384
##
3385
prometheusConfigReloader:
3386
image:
3387
registry: cgr.dev
3388
repository: chainguard-private/prometheus-config-reloader
3389
# if not set appVersion field from Chart.yaml is used
3390
tag: 0.95.2-r1
3391
sha: sha256:fb987a793b3b7bf123ae4bd974eb5785d0621b9b7a2a71a7b90f24ac69fc886d
3392
# add prometheus config reloader liveness and readiness probe. Default: false
3393
enableProbe: false
3394
# resource config for prometheusConfigReloader
3395
resources: {}
3396
# requests:
3397
# cpu: 200m
3398
# memory: 50Mi
3399
# limits:
3400
# cpu: 200m
3401
# memory: 50Mi
3402
## Thanos side-car image when configured
3403
##
3404
thanosImage:
3405
registry: cgr.dev
3406
repository: chainguard-private/thanos
3407
tag: 0.42.5-r4
3408
sha: sha256:b7ab78583dd1ec19f8e5da28bff2ffeba3af50c355ef2a1867e0e78dd10fc4a6
3409
## Set a Label Selector to filter watched prometheus and prometheusAgent
3410
##
3411
prometheusInstanceSelector: ""
3412
## Set a Label Selector to filter watched alertmanager
3413
##
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.
3420
##
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`)
3424
## Example:
3425
## featureGates:
3426
## PrometheusAgentDaemonSet: true
3427
## StatusForConfigurationResources: true
3428
featureGates: {}
3429
## If false then the user will opt out of automounting API credentials.
3430
##
3431
automountServiceAccountToken: true
3432
## Additional volumes
3433
##
3434
extraVolumes: []
3435
## Additional volume mounts
3436
##
3437
extraVolumeMounts: []
3438
## Deploy a Prometheus instance
3439
##
3440
prometheus:
3441
enabled: true
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
3445
##
3446
agentMode: false
3447
## Annotations for Prometheus
3448
##
3449
annotations: {}
3450
## Additional labels for Prometheus
3451
##
3452
additionalLabels: {}
3453
## Configure network policy for the prometheus
3454
networkPolicy:
3455
enabled: false
3456
## Flavor of the network policy to use.
3457
# Can be:
3458
# * kubernetes for networking.k8s.io/v1/NetworkPolicy
3459
# * cilium for cilium.io/v2/CiliumNetworkPolicy
3460
flavor: kubernetes
3461
namespace:
3462
# cilium:
3463
# endpointSelector:
3464
# egress:
3465
# ingress:
3466
3467
# egress:
3468
# - {}
3469
# ingress:
3470
# - {}
3471
# podSelector:
3472
# matchLabels:
3473
# app: prometheus
3474
## Service account for Prometheuses to use.
3475
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
3476
##
3477
serviceAccount:
3478
create: true
3479
name: ""
3480
annotations: {}
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
3492
##
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/
3505
##
3506
controlPlaneScrapeClass:
3507
enabled: false
3508
name: kube-prometheus-stack-control-plane
3509
authorization:
3510
type: Bearer
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!)
3517
thanosService:
3518
enabled: false
3519
annotations: {}
3520
labels: {}
3521
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3522
##
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
3527
##
3528
trafficDistribution: ""
3529
## Service type
3530
##
3531
type: ClusterIP
3532
## Service dual stack
3533
##
3534
ipDualStack:
3535
enabled: false
3536
ipFamilies: ["IPv6", "IPv4"]
3537
ipFamilyPolicy: "PreferDualStack"
3538
## gRPC port config
3539
portName: grpc
3540
port: 10901
3541
targetPort: "grpc"
3542
## HTTP port config (for metrics)
3543
httpPortName: http
3544
httpPort: 10902
3545
targetHttpPort: "http"
3546
## ClusterIP to assign
3547
# Default is to make this a headless service ("None")
3548
clusterIP: "None"
3549
## Port to expose on each node, if service type is NodePort
3550
##
3551
nodePort: 30901
3552
httpNodePort: 30902
3553
# ServiceMonitor to scrape Sidecar metrics
3554
# Needs thanosService to be enabled as well
3555
thanosServiceMonitor:
3556
enabled: false
3557
interval: ""
3558
## Additional labels
3559
##
3560
additionalLabels: {}
3561
## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
3562
scheme: ""
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
3565
tlsConfig: {}
3566
bearerTokenFile:
3567
## Metric relabel configs to apply to samples before ingestion.
3568
metricRelabelings: []
3569
## relabel configs to apply to samples before ingestion.
3570
relabelings: []
3571
# Service for external access to sidecar
3572
# Enabling this creates a service to expose thanos-sidecar outside the cluster.
3573
thanosServiceExternal:
3574
enabled: false
3575
annotations: {}
3576
labels: {}
3577
loadBalancerIP: ""
3578
loadBalancerSourceRanges: []
3579
## gRPC port config
3580
portName: grpc
3581
port: 10901
3582
targetPort: "grpc"
3583
## HTTP port config (for metrics)
3584
httpPortName: http
3585
httpPort: 10902
3586
targetHttpPort: "http"
3587
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3588
##
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
3593
##
3594
trafficDistribution: ""
3595
## Service type
3596
##
3597
type: LoadBalancer
3598
## Port to expose on each node
3599
##
3600
nodePort: 30901
3601
httpNodePort: 30902
3602
## Configuration for Prometheus service
3603
##
3604
service:
3605
enabled: true
3606
annotations: {}
3607
labels: {}
3608
clusterIP: ""
3609
ipDualStack:
3610
enabled: false
3611
ipFamilies: ["IPv6", "IPv4"]
3612
ipFamilyPolicy: "PreferDualStack"
3613
## Port for Prometheus Service to listen on
3614
##
3615
port: 9090
3616
## To be used with a proxy extraContainer port
3617
targetPort: 9090
3618
## Port for Prometheus Reloader to listen on
3619
##
3620
reloaderWebPort: 8080
3621
## Port to expose for Prometheus Reloader
3622
## Only used if service.type is 'NodePort'
3623
##
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
3627
##
3628
externalIPs: []
3629
## Port to expose on each node
3630
## Only used if service.type is 'NodePort'
3631
##
3632
nodePort: 30090
3633
## Loadbalancer IP
3634
## Only use if service.type is "LoadBalancer"
3635
loadBalancerIP: ""
3636
loadBalancerSourceRanges: []
3637
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
3638
##
3639
externalTrafficPolicy: Cluster
3640
## Service type
3641
##
3642
type: ClusterIP
3643
## Additional ports to open for Prometheus service
3644
##
3645
additionalPorts: []
3646
# additionalPorts:
3647
# - name: oauth-proxy
3648
# port: 8081
3649
# targetPort: 8081
3650
# - name: oauth-metrics
3651
# port: 8082
3652
# targetPort: 8082
3653
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'
3659
##
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"
3663
##
3664
sessionAffinityConfig:
3665
clientIP:
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
3670
##
3671
trafficDistribution: ""
3672
## Configuration for creating a separate Service for each statefulset Prometheus replica
3673
##
3674
servicePerReplica:
3675
enabled: false
3676
annotations: {}
3677
## Port for Prometheus Service per replica to listen on
3678
##
3679
port: 9090
3680
## To be used with a proxy extraContainer port
3681
targetPort: 9090
3682
## Port to expose on each node
3683
## Only used if servicePerReplica.type is 'NodePort'
3684
##
3685
nodePort: 30091
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
3690
##
3691
externalTrafficPolicy: Cluster
3692
## Service type
3693
##
3694
type: ClusterIP
3695
## Service dual stack
3696
##
3697
ipDualStack:
3698
enabled: false
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
3703
##
3704
podDisruptionBudget:
3705
enabled: false
3706
minAvailable: 1
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
3711
##
3712
verticalPodAutoscaler:
3713
enabled: false
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.
3717
# recommenders:
3718
# - name: custom-recommender-performance
3719
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
3724
3725
# Define the max allowed resources for the pod
3726
maxAllowed: {}
3727
# cpu: 200m
3728
# memory: 100Mi
3729
# Define the min allowed resources for the pod
3730
minAllowed: {}
3731
# cpu: 200m
3732
# memory: 100Mi
3733
3734
updatePolicy:
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
3739
thanosIngress:
3740
enabled: false
3741
ingressClassName: ""
3742
annotations: {}
3743
labels: {}
3744
servicePort: 10901
3745
## Port to expose on each node
3746
## Only used if service.type is 'NodePort'
3747
##
3748
nodePort: 30901
3749
## Hosts must be provided if Ingress is enabled.
3750
##
3751
hosts: []
3752
# - thanos-gateway.domain.com
3753
3754
## Paths to use for ingress rules
3755
##
3756
paths: []
3757
# - /
3758
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
3762
3763
## TLS configuration for Thanos Ingress
3764
## Secret must be manually created in the namespace
3765
##
3766
tls: []
3767
# - secretName: thanos-gateway-tls
3768
# hosts:
3769
# - thanos-gateway.domain.com
3770
#
3771
## ExtraSecret can be used to store various data in an extra secret
3772
## (use it for example to store hashed basic auth credentials)
3773
extraSecret:
3774
## if not set, name will be auto generated
3775
# name: ""
3776
annotations: {}
3777
data: {}
3778
# auth: |
3779
# foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
3780
# someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
3781
3782
ingress:
3783
enabled: false
3784
ingressClassName: ""
3785
annotations: {}
3786
labels: {}
3787
## Redirect ingress to an additional defined port on the service
3788
# servicePort: 8081
3789
3790
## Hostnames.
3791
## Must be provided if Ingress is enabled.
3792
##
3793
# hosts:
3794
# - prometheus.domain.com
3795
hosts: []
3796
## Paths to use for ingress rules - one path should match the prometheusSpec.routePrefix
3797
##
3798
paths: []
3799
# - /
3800
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
3804
3805
## TLS configuration for Prometheus Ingress
3806
## Secret must be manually created in the namespace
3807
##
3808
tls: []
3809
# - secretName: prometheus-general-tls
3810
# hosts:
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)
3818
route:
3819
main:
3820
# -- Enables or disables the route
3821
enabled: false
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
3826
kind: HTTPRoute
3827
annotations: {}
3828
labels: {}
3829
hostnames: []
3830
# - my-filter.example.com
3831
parentRefs: []
3832
# - name: acme-gw
3833
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
3838
matches:
3839
- path:
3840
type: PathPrefix
3841
value: /
3842
## Filters define the filters that are applied to requests that match this rule.
3843
filters: []
3844
## Timeouts for the generated HTTPRoute backend rule.
3845
## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
3846
timeouts: {}
3847
# request: 120s
3848
# backendRequest: 60s
3849
3850
## Session persistence configuration for the route rule.
3851
sessionPersistence: {}
3852
# sessionName: route
3853
# type: Cookie
3854
# absoluteTimeout: 12h
3855
# cookieConfig:
3856
# lifetimeType: Permanent
3857
3858
## Additional custom rules that can be added to the route
3859
additionalRules: []
3860
## Configuration for creating an Ingress that will map to each Prometheus replica service
3861
## prometheus.servicePerReplica must be enabled
3862
##
3863
ingressPerReplica:
3864
enabled: false
3865
ingressClassName: ""
3866
annotations: {}
3867
labels: {}
3868
## Final form of the hostname for each per replica ingress is
3869
## {{ ingressPerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ ingressPerReplica.hostDomain }}
3870
##
3871
## Prefix for the per replica ingress that will have `-$replicaNumber`
3872
## appended to the end
3873
hostPrefix: ""
3874
## Domain that will be used for the per replica ingress
3875
hostDomain: ""
3876
## Paths to use for ingress rules
3877
##
3878
paths: []
3879
# - /
3880
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
3884
3885
## Secret name containing the TLS certificate for Prometheus per replica ingress
3886
## Secret must be manually created in the namespace
3887
tlsSecretName: ""
3888
## Separated secret for each per replica Ingress. Can be used together with cert-manager
3889
##
3890
tlsSecretPerReplica:
3891
enabled: false
3892
## Final form of the secret for each per replica ingress is
3893
## {{ tlsSecretPerReplica.prefix }}-{{ $replicaNumber }}
3894
##
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
3898
##
3899
routePerReplica:
3900
main:
3901
# -- Enables or disables the routePerReplica
3902
enabled: false
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
3907
kind: HTTPRoute
3908
annotations: {}
3909
labels: {}
3910
## Final form of the hostname for each per replica route is
3911
## {{ routePerReplica.hostPrefix }}-{{ $replicaNumber }}.{{ routePerReplica.hostDomain }}
3912
##
3913
## Prefix for the per replica route that will have `-$replicaNumber` appended to the end
3914
hostPrefix: ""
3915
## Domain that will be used for the per replica route
3916
hostDomain: ""
3917
parentRefs: []
3918
# - name: acme-gw
3919
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.
3925
filters: []
3926
matches:
3927
- path:
3928
type: PathPrefix
3929
value: /
3930
## Timeouts for the generated HTTPRoute backend rule.
3931
## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
3932
timeouts: {}
3933
# request: 120s
3934
# backendRequest: 60s
3935
3936
## Session persistence configuration for the route rule.
3937
sessionPersistence: {}
3938
# sessionName: route
3939
# type: Cookie
3940
# absoluteTimeout: 12h
3941
# cookieConfig:
3942
# lifetimeType: Permanent
3943
3944
## Additional custom rules that can be added to the route
3945
additionalRules: []
3946
serviceMonitor:
3947
## If true, create a serviceMonitor for prometheus
3948
##
3949
selfMonitor: true
3950
## Scrape interval. If not set, the Prometheus default scrape interval is used.
3951
##
3952
interval: ""
3953
## Additional labels
3954
##
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.
3958
##
3959
scrapeClass: ""
3960
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
3961
##
3962
sampleLimit: 0
3963
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
3964
##
3965
targetLimit: 0
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.
3967
##
3968
labelLimit: 0
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.
3970
##
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.
3973
##
3974
labelValueLengthLimit: 0
3975
## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
3976
scheme: ""
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
3979
tlsConfig: {}
3980
bearerTokenFile:
3981
## Metric relabel configs to apply to samples before ingestion.
3982
##
3983
metricRelabelings: []
3984
# - action: keep
3985
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
3986
# sourceLabels: [__name__]
3987
3988
# relabel configs to apply to samples before ingestion.
3989
##
3990
relabelings: []
3991
# - sourceLabels: [__meta_kubernetes_pod_node_name]
3992
# separator: ;
3993
# regex: ^(.*)$
3994
# targetLabel: nodename
3995
# replacement: $1
3996
# action: replace
3997
3998
## Additional Endpoints
3999
##
4000
additionalEndpoints: []
4001
# - port: oauth-metrics
4002
# path: /metrics
4003
## Settings affecting prometheusSpec
4004
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#prometheusspec
4005
##
4006
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
4016
4017
## If true, pass --storage.tsdb.max-block-duration=2h to prometheus. This is already done if using Thanos
4018
##
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
4025
## APIServerConfig
4026
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#apiserverconfig
4027
##
4028
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
4031
additionalArgs: []
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.
4034
##
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.
4038
##
4039
scrapeClassicHistograms: false
4040
## Enable scraping of native histograms.
4041
## This corresponds to the 'scrape_native_histograms' field in Prometheus configuration.
4042
##
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
4048
##
4049
scrapeFailureLogFile: ""
4050
## Interval between consecutive scrapes.
4051
## Defaults to 30s.
4052
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/release-0.44/pkg/prometheus/promcfg.go#L180-L183
4053
##
4054
scrapeInterval: ""
4055
## Number of seconds to wait for target to respond before erroring
4056
##
4057
scrapeTimeout: ""
4058
## List of scrape classes to expose to scraping objects such as
4059
## PodMonitors, ServiceMonitors, Probes and ScrapeConfigs.
4060
##
4061
scrapeClasses: []
4062
# - name: istio-mtls
4063
# default: false
4064
# tlsConfig:
4065
# caFile: /etc/prometheus/secrets/istio.default/root-cert.pem
4066
# certFile: /etc/prometheus/secrets/istio.default/cert-chain.pem
4067
4068
## PodTargetLabels are appended to the `spec.podTargetLabels` field of all PodMonitor and ServiceMonitor objects.
4069
##
4070
podTargetLabels: []
4071
# - customlabel
4072
4073
## Interval between consecutive evaluations.
4074
##
4075
evaluationInterval: ""
4076
## ListenLocal makes the Prometheus server listen on loopback, so that it does not bind against the Pod IP.
4077
##
4078
listenLocal: false
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
4084
##
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.
4088
version: ""
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
4091
web: {}
4092
## Exemplars related settings that are runtime reloadable.
4093
## It requires to enable the exemplar storage feature to be effective.
4094
exemplars: {}
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.
4098
# maxSize: 100000
4099
4100
# EnableFeatures API enables access to Prometheus disabled features.
4101
# ref: https://prometheus.io/docs/prometheus/latest/feature_flags/
4102
enableFeatures: []
4103
# - exemplar-storage
4104
4105
## https://prometheus.io/docs/guides/opentelemetry
4106
##
4107
otlp: {}
4108
# promoteResourceAttributes: []
4109
# keepIdentifyingResourceAttributes: false
4110
# translationStrategy: NoUTF8EscapingWithSuffixes
4111
# convertHistogramsToNHCB: false
4112
4113
##
4114
serviceName:
4115
## Image of Prometheus.
4116
##
4117
image:
4118
registry: cgr.dev
4119
repository: chainguard-private/prometheus
4120
tag: 3.16.0-r2
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/
4125
##
4126
tolerations: []
4127
# - key: "key"
4128
# operator: "Equal"
4129
# value: "value"
4130
# effect: "NoSchedule"
4131
4132
## If specified, the pod's topology spread constraints.
4133
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
4134
##
4135
topologySpreadConstraints: []
4136
# - maxSkew: 1
4137
# topologyKey: topology.kubernetes.io/zone
4138
# whenUnsatisfiable: DoNotSchedule
4139
# labelSelector:
4140
# matchLabels:
4141
# app: prometheus
4142
4143
## Disable alerting
4144
##
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
4148
##
4149
## Default configuration will connect to the alertmanager deployed as part of this release
4150
##
4151
alertingEndpoints: []
4152
# - name: ""
4153
# namespace: ""
4154
# port: http
4155
# scheme: http
4156
# pathPrefix: ""
4157
# tlsConfig: {}
4158
# bearerTokenFile: ""
4159
# apiVersion: v2
4160
4161
## External labels to add to any time series or alerts when communicating with external systems
4162
##
4163
externalLabels: {}
4164
## enable --web.enable-remote-write-receiver flag on prometheus-server
4165
##
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.
4170
##
4171
extraScrapeMetrics: ~
4172
## Name of the external label used to denote replica name
4173
##
4174
replicaExternalLabelName: ""
4175
## If true, the Operator won't add the external label used to denote replica name
4176
##
4177
replicaExternalLabelNameClear: false
4178
## Name of the external label used to denote Prometheus instance name
4179
##
4180
prometheusExternalLabelName: ""
4181
## If true, the Operator won't add the external label used to denote Prometheus instance name
4182
##
4183
prometheusExternalLabelNameClear: false
4184
## External URL at which Prometheus will be reachable.
4185
##
4186
externalUrl: ""
4187
## Define which Nodes the Pods are scheduled on.
4188
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
4189
##
4190
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.
4196
##
4197
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/.
4200
##
4201
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
4204
##
4205
query: {}
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:
4210
# matchLabels:
4211
# prometheus: somelabel
4212
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
4216
##
4217
ruleSelectorNilUsesHelmValues: true
4218
## PrometheusRules to be selected for target discovery.
4219
## If {}, select all PrometheusRules
4220
##
4221
ruleSelector: {}
4222
## Example which select all PrometheusRules resources
4223
## with label "prometheus" with values any of "example-rules" or "example-rules-2"
4224
# ruleSelector:
4225
# matchExpressions:
4226
# - key: prometheus
4227
# operator: In
4228
# values:
4229
# - example-rules
4230
# - example-rules-2
4231
#
4232
## Example which select all PrometheusRules resources with label "role" set to "example-rules"
4233
# ruleSelector:
4234
# matchLabels:
4235
# role: example-rules
4236
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
4240
##
4241
serviceMonitorSelectorNilUsesHelmValues: true
4242
## ServiceMonitors to be selected for target discovery.
4243
## If {}, select all ServiceMonitors
4244
##
4245
serviceMonitorSelector: {}
4246
## Example which selects ServiceMonitors with label "prometheus" set to "somelabel"
4247
# serviceMonitorSelector:
4248
# matchLabels:
4249
# prometheus: somelabel
4250
4251
## Namespaces to be selected for ServiceMonitor discovery.
4252
##
4253
serviceMonitorNamespaceSelector: {}
4254
## Example which selects ServiceMonitors in namespaces with label "prometheus" set to "somelabel"
4255
# serviceMonitorNamespaceSelector:
4256
# matchLabels:
4257
# prometheus: somelabel
4258
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
4262
##
4263
podMonitorSelectorNilUsesHelmValues: true
4264
## PodMonitors to be selected for target discovery.
4265
## If {}, select all PodMonitors
4266
##
4267
podMonitorSelector: {}
4268
## Example which selects PodMonitors with label "prometheus" set to "somelabel"
4269
# podMonitorSelector:
4270
# matchLabels:
4271
# prometheus: somelabel
4272
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:
4277
# matchLabels:
4278
# prometheus: somelabel
4279
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
4283
##
4284
probeSelectorNilUsesHelmValues: true
4285
## Probes to be selected for target discovery.
4286
## If {}, select all Probes
4287
##
4288
probeSelector: {}
4289
## Example which selects Probes with label "prometheus" set to "somelabel"
4290
# probeSelector:
4291
# matchLabels:
4292
# prometheus: somelabel
4293
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:
4298
# matchLabels:
4299
# prometheus: somelabel
4300
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
4304
##
4305
## If null and scrapeConfigSelector is also null, exclude field from the prometheusSpec
4306
## (keeping downward compatibility with older versions of CRD)
4307
##
4308
scrapeConfigSelectorNilUsesHelmValues: true
4309
## scrapeConfigs to be selected for target discovery.
4310
## If {}, select all scrapeConfigs
4311
##
4312
scrapeConfigSelector: {}
4313
## Example which selects scrapeConfigs with label "prometheus" set to "somelabel"
4314
# scrapeConfigSelector:
4315
# matchLabels:
4316
# prometheus: somelabel
4317
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:
4323
# matchLabels:
4324
# prometheus: somelabel
4325
4326
## How long to retain metrics
4327
##
4328
retention: 10d
4329
## Maximum size of metrics
4330
## Unit format should be in the form of "50GiB"
4331
retentionSize: ""
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
4337
tsdb:
4338
outOfOrderTimeWindow: 0s
4339
## Per-chunk-type encoding overrides, requires Prometheus >= v3.13.0.
4340
chunkEncoding: {}
4341
# floats: Xor2
4342
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.
4346
##
4347
walCompression: true
4348
## If true, the Operator won't process any Prometheus configuration changes
4349
##
4350
paused: false
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.
4353
##
4354
replicas: 1
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.
4364
##
4365
shards: 1
4366
## Log level for Prometheus be configured in
4367
##
4368
logLevel: info
4369
## Log format for Prometheus be configured in
4370
##
4371
logFormat: logfmt
4372
## Prefix used to register routes, overriding externalUrl route.
4373
## Useful for proxies that rewrite URLs.
4374
##
4375
routePrefix: /
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.
4378
##
4379
podMetadata: {}
4380
# labels:
4381
# app: prometheus
4382
# k8s-app: prometheus
4383
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
4391
##
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/
4395
##
4396
affinity: {}
4397
# nodeAffinity:
4398
# requiredDuringSchedulingIgnoredDuringExecution:
4399
# nodeSelectorTerms:
4400
# - matchExpressions:
4401
# - key: kubernetes.io/e2e-az-name
4402
# operator: In
4403
# values:
4404
# - e2e-az1
4405
# - e2e-az2
4406
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
4409
remoteRead: []
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
4415
remoteWrite: []
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
4422
##
4423
resources: {}
4424
# requests:
4425
# memory: 400Mi
4426
4427
## Prometheus StorageSpec for persistent data
4428
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/platform/storage.md
4429
##
4430
storageSpec: {}
4431
## Using PersistentVolumeClaim
4432
##
4433
# volumeClaimTemplate:
4434
# spec:
4435
# storageClassName: gluster
4436
# accessModes: ["ReadWriteOnce"]
4437
# resources:
4438
# requests:
4439
# storage: 50Gi
4440
# selector: {}
4441
4442
## Using tmpfs volume
4443
##
4444
# emptyDir:
4445
# medium: Memory
4446
4447
# Additional volumes on the output StatefulSet definition.
4448
volumes: []
4449
# Additional VolumeMounts on the output StatefulSet definition.
4450
volumeMounts: []
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.
4459
##
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
4462
##
4463
additionalScrapeConfigs: []
4464
# - job_name: kube-etcd
4465
# kubernetes_sd_configs:
4466
# - role: node
4467
# scheme: https
4468
# tls_config:
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
4472
# relabel_configs:
4473
# - action: labelmap
4474
# regex: __meta_kubernetes_node_label_(.+)
4475
# - source_labels: [__address__]
4476
# action: replace
4477
# target_label: __address__
4478
# regex: ([^:;]+):(\d+)
4479
# replacement: ${1}:2379
4480
# - source_labels: [__meta_kubernetes_node_name]
4481
# action: keep
4482
# regex: .*mst.*
4483
# - source_labels: [__meta_kubernetes_node_name]
4484
# action: replace
4485
# target_label: node
4486
# regex: (.*)
4487
# replacement: ${1}
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)
4490
# action: labeldrop
4491
#
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"
4496
# gce_sd_configs:
4497
# {{range $zone := .Values.gcp_zones}}
4498
# - project: "project1"
4499
# zone: "{{$zone}}"
4500
# port: 9100
4501
# {{end}}
4502
# relabel_configs:
4503
# ...
4504
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: {}
4509
# enabled: false
4510
# name:
4511
# key:
4512
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.
4522
##
4523
additionalAlertManagerConfigs: []
4524
# - consul_sd_configs:
4525
# - server: consul.dev.test:8500
4526
# scheme: http
4527
# datacenter: dev
4528
# tag_separator: ','
4529
# services:
4530
# - metrics-prometheus-alertmanager
4531
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: {}
4537
# name:
4538
# key:
4539
# optional: false
4540
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.
4547
##
4548
additionalAlertRelabelConfigs: []
4549
# - separator: ;
4550
# regex: prometheus_replica
4551
# replacement: $1
4552
# action: labeldrop
4553
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: {}
4559
# name:
4560
# key:
4561
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
4565
##
4566
securityContext:
4567
runAsGroup: 2000
4568
runAsNonRoot: true
4569
runAsUser: 1000
4570
fsGroup: 2000
4571
seccompProfile:
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
4575
dnsConfig: {}
4576
## DNS policy for Prometheus.
4577
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#dnspolicystring-alias
4578
dnsPolicy: ""
4579
## Priority class assigned to the Pods
4580
##
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
4586
##
4587
thanos: {}
4588
# image: quay.io/thanos/thanos
4589
# secretProviderClass:
4590
# provider: gcp
4591
# parameters:
4592
# secrets: |
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: {}
4599
# # name: ""
4600
# # key: ""
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
4604
# secret: {}
4605
# # type: S3
4606
# # config:
4607
# # bucket: ""
4608
# # endpoint: ""
4609
# # region: ""
4610
# # access_key: ""
4611
# # secret_key: ""
4612
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
4615
containers: []
4616
# containers:
4617
# - name: oauth-proxy
4618
# image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.6
4619
# args:
4620
# - --upstream=http://127.0.0.1:9090
4621
# - --http-address=0.0.0.0:8081
4622
# - --metrics-address=0.0.0.0:8082
4623
# - ...
4624
# ports:
4625
# - containerPort: 8081
4626
# name: oauth-proxy
4627
# protocol: TCP
4628
# - containerPort: 8082
4629
# name: oauth-metrics
4630
# protocol: TCP
4631
# resources: {}
4632
4633
## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
4634
## (permissions, dir tree) on mounted volumes before starting prometheus
4635
initContainers: []
4636
## PortName to use for Prometheus.
4637
##
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/)
4669
queryLogFile: false
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.
4672
sampleLimit: false
4673
## TargetLimit defines a global limit on the number of scraped targets. 0 means no limit.
4674
targetLimit: 0
4675
## Per-scrape limit on number of labels that will be accepted for a sample. 0 means no limit.
4676
labelLimit: 0
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.
4684
bodySizeLimit: ""
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).
4721
minReadySeconds: 0
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.
4729
hostNetwork: false
4730
## Use the host's user namespace for Prometheus pods.
4731
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/
4732
hostUsers: ~
4733
# HostAlias holds the mapping between IP and hostnames that will be injected
4734
# as an entry in the pod's hosts file.
4735
hostAliases: []
4736
# - ip: 10.10.0.100
4737
# hostnames:
4738
# - a1.app.local
4739
# - b1.app.local
4740
4741
## TracingConfig configures tracing in Prometheus.
4742
## See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#prometheustracingconfig
4743
tracingConfig: {}
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.
4751
schedulerName: ""
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
4757
reloadStrategy: ""
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
4760
ruleQueryOffset: ""
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
4763
rules: {}
4764
# alert:
4765
# forOutageTolerance: 1h
4766
# forGracePeriod: 10m
4767
# resendDelay: 1m
4768
4769
## RuntimeConfig configures the values for the Prometheus process behavior.
4770
runtime: {}
4771
# goGC: 75
4772
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
4786
updateStrategy: {}
4787
# type: RollingUpdate
4788
# rollingUpdate:
4789
# maxUnavailable: 1
4790
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
4801
## minutes).
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
4805
scrapeProtocols: []
4806
additionalRulesForClusterRole: []
4807
# - apiGroups: [ "" ]
4808
# resources:
4809
# - nodes/proxy
4810
# verbs: [ "get", "list", "watch" ]
4811
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.
4817
##
4818
additionalServiceMonitors: null
4819
## Map example:
4820
# example-service:
4821
# selector:
4822
# matchLabels:
4823
# app: example-service
4824
# endpoints:
4825
# - port: metrics
4826
4827
## List example and available fields:
4828
## Name of the ServiceMonitor to create (required for list entries)
4829
##
4830
# - name: ""
4831
4832
## Additional labels to set used for the ServiceMonitorSelector. Together with standard labels from
4833
## the chart
4834
##
4835
# additionalLabels: {}
4836
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.
4839
##
4840
# jobLabel: ""
4841
4842
## labels to transfer from the kubernetes service to the target
4843
##
4844
# targetLabels: []
4845
4846
## labels to transfer from the kubernetes pods to the target
4847
##
4848
# podTargetLabels: []
4849
4850
## Label selector for services to which this ServiceMonitor applies
4851
##
4852
# selector: {}
4853
## Example which selects all services to be monitored
4854
## with label "monitoredby" with values any of "example-service-1" or "example-service-2"
4855
# matchExpressions:
4856
# - key: "monitoredby"
4857
# operator: In
4858
# values:
4859
# - example-service-1
4860
# - example-service-2
4861
4862
## label selector for services
4863
##
4864
# matchLabels: {}
4865
4866
## Namespaces from which services are selected
4867
##
4868
# namespaceSelector:
4869
## Match any namespace
4870
##
4871
# any: false
4872
4873
## Explicit list of namespace names to select
4874
##
4875
# matchNames: []
4876
4877
## Endpoints of the selected service to be monitored
4878
##
4879
# endpoints: []
4880
## Name of the endpoint's service port
4881
## Mutually exclusive with targetPort
4882
# - port: ""
4883
4884
## Name or number of the endpoint's target port
4885
## Mutually exclusive with port
4886
# - targetPort: ""
4887
4888
## File containing bearer token to be used when scraping targets
4889
##
4890
# bearerTokenFile: ""
4891
4892
## Interval at which metrics should be scraped
4893
##
4894
# interval: 30s
4895
4896
## HTTP path to scrape for metrics
4897
##
4898
# path: /metrics
4899
4900
## HTTP scheme to use for scraping
4901
##
4902
# scheme: http
4903
4904
## TLS configuration to use when scraping the endpoint
4905
##
4906
# tlsConfig:
4907
4908
## Path to the CA file
4909
##
4910
# caFile: ""
4911
4912
## Path to client certificate file
4913
##
4914
# certFile: ""
4915
4916
## Skip certificate verification
4917
##
4918
# insecureSkipVerify: false
4919
4920
## Path to client key file
4921
##
4922
# keyFile: ""
4923
4924
## Server name used to verify host name
4925
##
4926
# serverName: ""
4927
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
4930
##
4931
# metricRelabelings: []
4932
# - action: keep
4933
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
4934
# sourceLabels: [__name__]
4935
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
4938
##
4939
# relabelings: []
4940
# - sourceLabels: [__meta_kubernetes_pod_node_name]
4941
# separator: ;
4942
# regex: ^(.*)$
4943
# targetLabel: nodename
4944
# replacement: $1
4945
# action: replace
4946
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
4949
##
4950
# fallbackScrapeProtocol: ""
4951
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
4954
##
4955
# attachMetadata:
4956
# node: true
4957
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.
4963
##
4964
additionalPodMonitors: null
4965
## Map example:
4966
# example-pod:
4967
# selector:
4968
# matchLabels:
4969
# app: example-pod
4970
# podMetricsEndpoints:
4971
# - port: metrics
4972
## List example and available fields:
4973
## Name of the PodMonitor to create (required for list entries)
4974
##
4975
# - name: ""
4976
4977
## Additional labels to set used for the PodMonitorSelector. Together with standard labels from
4978
## the chart
4979
##
4980
# additionalLabels: {}
4981
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.
4984
##
4985
# jobLabel: ""
4986
4987
## Label selector for pods to which this PodMonitor applies
4988
##
4989
# selector: {}
4990
## Example which selects all Pods to be monitored
4991
## with label "monitoredby" with values any of "example-pod-1" or "example-pod-2"
4992
# matchExpressions:
4993
# - key: "monitoredby"
4994
# operator: In
4995
# values:
4996
# - example-pod-1
4997
# - example-pod-2
4998
4999
## label selector for pods
5000
##
5001
# matchLabels: {}
5002
5003
## PodTargetLabels transfers labels on the Kubernetes Pod onto the target.
5004
##
5005
# podTargetLabels: {}
5006
5007
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
5008
##
5009
# sampleLimit: 0
5010
5011
## Namespaces from which pods are selected
5012
##
5013
# namespaceSelector:
5014
## Match any namespace
5015
##
5016
# any: false
5017
5018
## Explicit list of namespace names to select
5019
##
5020
# matchNames: []
5021
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
5024
##
5025
# podMetricsEndpoints: []
5026
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
5029
##
5030
# fallbackScrapeProtocol: ""
5031
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
5034
##
5035
# attachMetadata:
5036
# node: true
5037
5038
## Configuration for thanosRuler
5039
## ref: https://thanos.io/tip/components/rule.md/
5040
##
5041
thanosRuler:
5042
## Deploy thanosRuler
5043
##
5044
enabled: false
5045
## Annotations for ThanosRuler
5046
##
5047
annotations: {}
5048
## Service account for ThanosRuler to use.
5049
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
5050
##
5051
serviceAccount:
5052
create: true
5053
name: ""
5054
annotations: {}
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
5062
##
5063
podDisruptionBudget:
5064
enabled: false
5065
minAvailable: 1
5066
# maxUnavailable: ""
5067
unhealthyPodEvictionPolicy: AlwaysAllow
5068
ingress:
5069
enabled: false
5070
ingressClassName: ""
5071
annotations: {}
5072
labels: {}
5073
## Hosts must be provided if Ingress is enabled.
5074
##
5075
hosts: []
5076
# - thanosruler.domain.com
5077
5078
## Paths to use for ingress rules - one path should match the thanosruler.routePrefix
5079
##
5080
paths: []
5081
# - /
5082
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
5086
5087
## TLS configuration for ThanosRuler Ingress
5088
## Secret must be manually created in the namespace
5089
##
5090
tls: []
5091
# - secretName: thanosruler-general-tls
5092
# hosts:
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)
5100
route:
5101
main:
5102
# -- Enables or disables the route
5103
enabled: false
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
5108
kind: HTTPRoute
5109
annotations: {}
5110
labels: {}
5111
hostnames: []
5112
# - my-filter.example.com
5113
parentRefs: []
5114
# - name: acme-gw
5115
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
5120
matches:
5121
- path:
5122
type: PathPrefix
5123
value: /
5124
## Filters define the filters that are applied to requests that match this rule.
5125
filters: []
5126
## Timeouts for the generated HTTPRoute backend rule.
5127
## Requires Gateway API CRDs and a controller that support HTTPRoute timeouts.
5128
timeouts: {}
5129
# request: 120s
5130
# backendRequest: 60s
5131
5132
## Session persistence configuration for the route rule.
5133
sessionPersistence: {}
5134
# sessionName: route
5135
# type: Cookie
5136
# absoluteTimeout: 12h
5137
# cookieConfig:
5138
# lifetimeType: Permanent
5139
5140
## Additional custom rules that can be added to the route
5141
additionalRules: []
5142
## Configuration for ThanosRuler service
5143
##
5144
service:
5145
enabled: true
5146
annotations: {}
5147
labels: {}
5148
clusterIP: ""
5149
ipDualStack:
5150
enabled: false
5151
ipFamilies: ["IPv6", "IPv4"]
5152
ipFamilyPolicy: "PreferDualStack"
5153
## Port for ThanosRuler Service to listen on
5154
##
5155
port: 10902
5156
## To be used with a proxy extraContainer port
5157
##
5158
targetPort: 10902
5159
## Port to expose on each node
5160
## Only used if service.type is 'NodePort'
5161
##
5162
nodePort: 30905
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
5165
##
5166
5167
## Additional ports to open for ThanosRuler service
5168
additionalPorts: []
5169
externalIPs: []
5170
loadBalancerIP: ""
5171
loadBalancerSourceRanges: []
5172
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
5173
##
5174
externalTrafficPolicy: Cluster
5175
## Service type
5176
##
5177
type: ClusterIP
5178
## Configuration for creating a ServiceMonitor for the ThanosRuler service
5179
##
5180
serviceMonitor:
5181
## If true, create a serviceMonitor for thanosRuler
5182
##
5183
selfMonitor: true
5184
## Scrape interval. If not set, the Prometheus default scrape interval is used.
5185
##
5186
interval: ""
5187
## Additional labels
5188
##
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.
5192
##
5193
scrapeClass: ""
5194
## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
5195
##
5196
sampleLimit: 0
5197
## TargetLimit defines a limit on the number of scraped targets that will be accepted.
5198
##
5199
targetLimit: 0
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.
5201
##
5202
labelLimit: 0
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.
5204
##
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.
5207
##
5208
labelValueLengthLimit: 0
5209
## proxyUrl: URL of a proxy that should be used for scraping.
5210
##
5211
proxyUrl: ""
5212
## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
5213
scheme: ""
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
5216
tlsConfig: {}
5217
bearerTokenFile:
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
5220
##
5221
metricRelabelings: []
5222
# - action: keep
5223
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
5224
# sourceLabels: [__name__]
5225
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
5228
##
5229
relabelings: []
5230
# - sourceLabels: [__meta_kubernetes_pod_node_name]
5231
# separator: ;
5232
# regex: ^(.*)$
5233
# targetLabel: nodename
5234
# replacement: $1
5235
# action: replace
5236
5237
## Additional Endpoints
5238
##
5239
additionalEndpoints: []
5240
# - port: oauth-metrics
5241
# path: /metrics
5242
## Settings affecting thanosRulerpec
5243
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#thanosrulerspec
5244
##
5245
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.
5248
##
5249
podMetadata: {}
5250
##
5251
serviceName:
5252
## Image of ThanosRuler
5253
##
5254
image:
5255
registry: cgr.dev
5256
repository: chainguard-private/thanos
5257
tag: 0.42.5-r4
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
5262
##
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
5267
##
5268
ruleSelectorNilUsesHelmValues: true
5269
## PrometheusRules to be selected for target discovery.
5270
## If {}, select all PrometheusRules
5271
##
5272
ruleSelector: {}
5273
## Example which select all PrometheusRules resources
5274
## with label "prometheus" with values any of "example-rules" or "example-rules-2"
5275
# ruleSelector:
5276
# matchExpressions:
5277
# - key: prometheus
5278
# operator: In
5279
# values:
5280
# - example-rules
5281
# - example-rules-2
5282
#
5283
## Example which select all PrometheusRules resources with label "role" set to "example-rules"
5284
# ruleSelector:
5285
# matchLabels:
5286
# role: example-rules
5287
5288
## Define Log Format
5289
# Use logfmt (default) or json logging
5290
logFormat: logfmt
5291
## Log level for ThanosRuler to be configured with.
5292
##
5293
logLevel: info
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.
5296
replicas: 1
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).
5299
##
5300
retention: 24h
5301
## Interval between consecutive evaluations.
5302
##
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
5306
##
5307
storage: {}
5308
# volumeClaimTemplate:
5309
# spec:
5310
# storageClassName: gluster
5311
# accessModes: ["ReadWriteOnce"]
5312
# resources:
5313
# requests:
5314
# storage: 50Gi
5315
# selector: {}
5316
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
5321
existingSecret: {}
5322
# name: ""
5323
# key: ""
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
5326
secret: {}
5327
# alertmanagers:
5328
# - api_version: v2
5329
# http_config:
5330
# basic_auth:
5331
# username: some_user
5332
# password: some_pass
5333
# static_configs:
5334
# - alertmanager.thanos.io
5335
# scheme: http
5336
# timeout: 10s
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.
5339
# alertmanagersUrl:
5340
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
5342
##
5343
externalPrefix:
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.
5349
##
5350
routePrefix: /
5351
## ObjectStorageConfig configures object storage in Thanos
5352
objectStorageConfig:
5353
# use existing secret, if configured, objectStorageConfig.secret will not be used
5354
existingSecret: {}
5355
# name: ""
5356
# key: ""
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
5359
secret: {}
5360
# type: S3
5361
# config:
5362
# bucket: ""
5363
# endpoint: ""
5364
# region: ""
5365
# access_key: ""
5366
# secret_key: ""
5367
## Labels by name to drop before sending to alertmanager
5368
## Maps to the --alert.label-drop flag of thanos ruler.
5369
alertDropLabels: []
5370
## QueryEndpoints defines Thanos querier endpoints from which to query metrics.
5371
## Maps to the --query flag of thanos ruler.
5372
queryEndpoints: []
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.
5375
queryConfig:
5376
# use existing secret, if configured, queryConfig.secret will not be used
5377
existingSecret: {}
5378
# name: ""
5379
# key: ""
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
5382
secret: {}
5383
# - http_config:
5384
# basic_auth:
5385
# username: some_user
5386
# password: some_pass
5387
# static_configs:
5388
# - URL
5389
# scheme: http
5390
# timeout: 10s
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.
5394
labels: {}
5395
## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
5396
##
5397
paused: false
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
5400
##
5401
additionalArgs: []
5402
# - name: remote-write.config
5403
# value: |-
5404
# "remote_write":
5405
# - "name": "receiver-0"
5406
# "remote_timeout": "30s"
5407
# "url": "http://thanos-receiver-0.thanos-receiver:8081/api/v1/receive"
5408
5409
## Define which Nodes the Pods are scheduled on.
5410
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
5411
##
5412
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/
5416
##
5417
resources: {}
5418
# requests:
5419
# memory: 400Mi
5420
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.
5425
##
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
5429
##
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/
5433
##
5434
affinity: {}
5435
# nodeAffinity:
5436
# requiredDuringSchedulingIgnoredDuringExecution:
5437
# nodeSelectorTerms:
5438
# - matchExpressions:
5439
# - key: kubernetes.io/e2e-az-name
5440
# operator: In
5441
# values:
5442
# - e2e-az1
5443
# - e2e-az2
5444
5445
## If specified, the pod's tolerations.
5446
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
5447
##
5448
tolerations: []
5449
# - key: "key"
5450
# operator: "Equal"
5451
# value: "value"
5452
# effect: "NoSchedule"
5453
5454
## If specified, the pod's topology spread constraints.
5455
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
5456
##
5457
topologySpreadConstraints: []
5458
# - maxSkew: 1
5459
# topologyKey: topology.kubernetes.io/zone
5460
# whenUnsatisfiable: DoNotSchedule
5461
# labelSelector:
5462
# matchLabels:
5463
# app: thanos-ruler
5464
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/
5468
##
5469
securityContext:
5470
runAsGroup: 2000
5471
runAsNonRoot: true
5472
runAsUser: 1000
5473
fsGroup: 2000
5474
seccompProfile:
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/
5478
hostUsers: ~
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.
5481
##
5482
listenLocal: false
5483
## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an ThanosRuler pod.
5484
##
5485
containers: []
5486
## Additional environment variables to set on the ThanosRuler container.
5487
## This is rendered through the Prometheus Operator strategic merge patch.
5488
##
5489
extraEnv: []
5490
# - name: EXAMPLE
5491
# value: test
5492
5493
# Additional volumes on the output StatefulSet definition.
5494
volumes: []
5495
# Additional VolumeMounts on the output StatefulSet definition.
5496
volumeMounts: []
5497
## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
5498
## (permissions, dir tree) on mounted volumes before starting prometheus
5499
initContainers: []
5500
## Priority class assigned to the Pods
5501
##
5502
priorityClassName: ""
5503
## PortName to use for ThanosRuler.
5504
##
5505
portName: "web"
5506
## Scheduler to use for Pod scheduling, defaulting to the Kubernetes default scheduler.
5507
##
5508
schedulerName: ""
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
5514
web: {}
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
5520
updateStrategy: {}
5521
# type: RollingUpdate
5522
# rollingUpdate:
5523
# maxUnavailable: 1
5524
5525
## Version of Thanos Ruler to deploy. Overrides the version derived from the image tag when set.
5526
version: ""
5527
## Image pull policy for the Thanos Ruler container.
5528
imagePullPolicy: ""
5529
## EnableFeatures API enables access to Thanos Ruler disabled features.
5530
enableFeatures: []
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.
5536
minReadySeconds: ~
5537
## Defines the DNS configuration for the pods.
5538
dnsConfig: {}
5539
# nameservers:
5540
# - 1.2.3.4
5541
# searches:
5542
# - ns1.svc.cluster-domain.example
5543
# options:
5544
# - name: ndots
5545
# value: "2"
5546
5547
## Defines the DNS policy for the pods.
5548
dnsPolicy: ""
5549
## Pods' hostAliases configuration
5550
## ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
5551
hostAliases: []
5552
# - ip: 10.10.0.100
5553
# hostnames:
5554
# - a1.app.local
5555
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
5558
remoteWrite: []
5559
## Configures tracing for Thanos Ruler. Maps to the tracing.config CLI argument.
5560
tracingConfig:
5561
# use existing secret, if configured, tracingConfig.secret will not be used
5562
existingSecret: {}
5563
# name: ""
5564
# key: ""
5565
# render tracingConfig secret data and configure it to be used by Thanos Ruler custom resource, ignored when tracingConfig.existingSecret is set
5566
secret: {}
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
5572
existingSecret: {}
5573
# name: ""
5574
# key: ""
5575
# render alertRelabelConfigs secret data and configure it to be used by Thanos Ruler custom resource, ignored when alertRelabelConfigs.existingSecret is set
5576
secret: {}
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.
5590
ruleGracePeriod: ""
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
5593
ruleQueryOffset: ""
5594
## Minimum amount of time to wait before resending an alert to Alertmanager.
5595
resendDelay: ""
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)
5608
extraSecret:
5609
## if not set, name will be auto generated
5610
# name: ""
5611
annotations: {}
5612
data: {}
5613
# auth: |
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.
5617
##
5618
cleanPrometheusOperatorObjectNames: 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.
5622
extraManifests: null
5623
# - apiVersion: v1
5624
# kind: ConfigMap
5625
# metadata:
5626
# labels:
5627
# name: prometheus-extra
5628
# data:
5629
# extra-data: "value"
5630
#
5631
# can also be defined as a string, useful for templating field names
5632
# - |
5633
# apiVersion: v1
5634
# kind: Secret
5635
# type: Opaque
5636
# metadata:
5637
# name: super-secret
5638
# labels:
5639
# {{- range $key, $value := .Values.commonLabels }}
5640
# {{ $key }}: {{ $value }}
5641
# {{- end }}
5642
# data:
5643
# plaintext: Zm9vYmFy
5644
# templated: '{{ print "foobar" | upper | b64enc }}'
5645

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.