DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
prometheus logoHELM

prometheus

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
# yaml-language-server: $schema=values.schema.json
2
# Default values for prometheus.
3
# This is a YAML-formatted file.
4
# Declare variables to be passed into your templates.
5
6
rbac:
7
create: true
8
imagePullSecrets: []
9
# - name: "image-pull-secret"
10
11
## Define serviceAccount names for components. Defaults to component's fully qualified name.
12
##
13
serviceAccounts:
14
server:
15
create: true
16
name: ""
17
annotations: {}
18
## Opt out of automounting Kubernetes API credentials.
19
## It will be overridden by server.automountServiceAccountToken value, if set.
20
# automountServiceAccountToken: false
21
## Additional labels to attach to all resources
22
commonMetaLabels: {}
23
## Monitors ConfigMap changes and POSTs to a URL
24
## Ref: https://github.com/prometheus-operator/prometheus-operator/tree/main/cmd/prometheus-config-reloader
25
##
26
configmapReload:
27
## URL for configmap-reload to use for reloads
28
##
29
reloadUrl: ""
30
## env sets environment variables to pass to the container. Can be set as name/value pairs,
31
## read from secrets or configmaps.
32
env: []
33
# - name: SOMEVAR
34
# value: somevalue
35
# - name: PASSWORD
36
# valueFrom:
37
# secretKeyRef:
38
# name: mysecret
39
# key: password
40
# optional: false
41
42
prometheus:
43
## If false, the configmap-reload container will not be deployed
44
##
45
enabled: true
46
## configmap-reload container name
47
##
48
name: configmap-reload
49
## configmap-reload container image
50
##
51
image:
52
repository: cgr.dev/chainguard-private/prometheus-config-reloader
53
tag: 0.95.2-r1
54
# When digest is set to a non-empty value, images will be pulled by digest (regardless of tag value).
55
digest: sha256:fb987a793b3b7bf123ae4bd974eb5785d0621b9b7a2a71a7b90f24ac69fc886d
56
pullPolicy: IfNotPresent
57
## config-reloader's container port and port name for probes and metrics
58
containerPort: 8080
59
containerPortName: metrics
60
## Additional configmap-reload container arguments
61
## Set to null for argumentless flags
62
##
63
extraArgs: {}
64
## Additional configmap-reload volume directories
65
##
66
extraVolumeDirs: []
67
## Additional configmap-reload volume mounts
68
##
69
extraVolumeMounts: []
70
## Additional configmap-reload mounts
71
##
72
extraConfigmapMounts: []
73
# - name: prometheus-alerts
74
# mountPath: /etc/alerts.d
75
# subPath: ""
76
# configMap: prometheus-alerts
77
# readOnly: true
78
79
## Security context to be added to configmap-reload container
80
## Set to null to render no securityContext, or set a single field to override it.
81
##
82
containerSecurityContext:
83
allowPrivilegeEscalation: false
84
capabilities:
85
drop:
86
- ALL
87
readOnlyRootFilesystem: true
88
## Settings for Prometheus reloader's readiness, liveness and startup probes
89
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
90
##
91
livenessProbe:
92
httpGet:
93
path: /healthz
94
port: metrics
95
scheme: HTTP
96
periodSeconds: 10
97
initialDelaySeconds: 2
98
readinessProbe:
99
httpGet:
100
path: /healthz
101
port: metrics
102
scheme: HTTP
103
periodSeconds: 10
104
startupProbe:
105
enabled: false
106
httpGet:
107
path: /healthz
108
port: metrics
109
scheme: HTTP
110
periodSeconds: 10
111
## configmap-reload resource requests and limits
112
## Ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
113
##
114
resources: {}
115
server:
116
## Prometheus server container name
117
##
118
name: server
119
## Opt out of automounting Kubernetes API credentials.
120
## If set it will override serviceAccounts.server.automountServiceAccountToken value for ServiceAccount.
121
# automountServiceAccountToken: false
122
123
## If set it will override prometheus.server.fullname value for ClusterRole and ClusterRoleBinding
124
##
125
clusterRoleNameOverride: ""
126
## Name of an existing cluster role to use in a role binding in namespaces set in
127
## namespaces and releaseNamespace for namespaced discovery.
128
##
129
useExistingClusterRoleName: ""
130
## releaseNamespace to enable only the release namespace for service discovery.
131
## By default all namespaces are included in service discovery.
132
## If releaseNamespace and namespaces are both set, a merged list will be created.
133
## Note that kubernetes_sd_configs.namespaces in scrape configs must be specified
134
## if namespaced service discovery is desired. Setting useExistingClusterRoleName is required.
135
##
136
releaseNamespace: false
137
## namespaces to include in service discovery instead of clusterwide discovery. Needed if you want to run
138
## Prometheus without cluster-admin privileges (namespaced configuration). See also releaseNamespace.
139
## Setting useExistingClusterRoleName is required.
140
##
141
namespaces: []
142
# - yournamespace
143
144
# sidecarContainers - add more containers to prometheus server
145
# Key/Value where Key is the sidecar `- name: <Key>`
146
# Example:
147
# sidecarContainers:
148
# webserver:
149
# image: nginx
150
# OR for adding OAuth authentication to Prometheus
151
# sidecarContainers:
152
# oauth-proxy:
153
# image: quay.io/oauth2-proxy/oauth2-proxy
154
# args:
155
# - --upstream=http://127.0.0.1:9090
156
# - --http-address=0.0.0.0:8081
157
# - ...
158
# ports:
159
# - containerPort: 8081
160
# name: oauth-proxy
161
# protocol: TCP
162
# resources: {}
163
sidecarContainers: {}
164
# sidecarTemplateValues - context to be used in template for sidecarContainers
165
# Example:
166
# sidecarTemplateValues: *your-custom-globals
167
# sidecarContainers:
168
# webserver: |-
169
# {{ include "webserver-container-template" . }}
170
# Template for `webserver-container-template` might looks like this:
171
# image: "{{ .Values.server.sidecarTemplateValues.repository }}:{{ .Values.server.sidecarTemplateValues.tag }}"
172
# ...
173
#
174
sidecarTemplateValues: {}
175
## Prometheus server container image
176
##
177
image:
178
repository: cgr.dev/chainguard-private/prometheus
179
# If not set appVersion field from Chart.yaml is used. Supports templating.
180
tag: 3.16.0-r2
181
# When digest is set to a non-empty value, images will be pulled by digest (regardless of tag value).
182
digest: sha256:c1228a34ef4b252d9915ea41c285eaee27a2235a144a24317d2bac197628f381
183
# Use the distroless image variant.
184
distroless: false
185
pullPolicy: IfNotPresent
186
## Prometheus server command
187
##
188
command: []
189
## prometheus server priorityClassName
190
##
191
priorityClassName: ""
192
## prometheus server runtimeClassName
193
##
194
runtimeClassName: ""
195
## EnableServiceLinks indicates whether information about services should be injected
196
## into pod's environment variables, matching the syntax of Docker links.
197
## WARNING: the field is unsupported and will be skipped in K8s prior to v1.13.0.
198
##
199
enableServiceLinks: true
200
## The URL prefix at which the container can be accessed. Useful in the case the '-web.external-url' includes a slug
201
## so that the various internal URLs are still able to access as they are in the default case.
202
## (Optional)
203
prefixURL: ""
204
## External URL which can access prometheus
205
## Maybe same with Ingress host name
206
baseURL: ""
207
## Additional server container environment variables
208
##
209
## You specify this manually like you would a raw deployment manifest.
210
## This means you can bind in environment variables from secrets.
211
##
212
## e.g. static environment variable:
213
## - name: DEMO_GREETING
214
## value: "Hello from the environment"
215
##
216
## e.g. secret environment variable:
217
## - name: USERNAME
218
## valueFrom:
219
## secretKeyRef:
220
## name: mysecret
221
## key: username
222
env: []
223
# List of flags to override default parameters, e.g:
224
# - --enable-feature=agent
225
# - --storage.agent.retention.max-time=30m
226
# - --config.file=/etc/config/prometheus.yml
227
defaultFlagsOverride: []
228
extraFlags:
229
- web.enable-lifecycle
230
## web.enable-admin-api flag controls access to the administrative HTTP API which includes functionality such as
231
## deleting time series. This is disabled by default.
232
# - web.enable-admin-api
233
##
234
## storage.tsdb.no-lockfile flag controls BD locking
235
# - storage.tsdb.no-lockfile
236
##
237
## storage.tsdb.wal-compression flag enables compression of the write-ahead log (WAL)
238
# - storage.tsdb.wal-compression
239
## Path to a configuration file on prometheus server container FS
240
configPath: /etc/config/prometheus.yml
241
### The data directory used by prometheus to set --storage.tsdb.path
242
### When empty server.persistentVolume.mountPath is used instead
243
storagePath: ""
244
global:
245
## How frequently to scrape targets by default
246
##
247
scrape_interval: 1m
248
## How long until a scrape request times out
249
##
250
scrape_timeout: 10s
251
## How frequently to evaluate rules
252
##
253
evaluation_interval: 1m
254
## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
255
##
256
remoteWrite: []
257
## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_read
258
##
259
remoteRead: []
260
## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tsdb
261
##
262
tsdb: {}
263
# out_of_order_time_window: 0s
264
265
## https://prometheus.io/docs/guides/opentelemetry
266
##
267
otlp: {}
268
# promote_resource_attributes: []
269
# keep_identifying_resource_attributes: false
270
# translation_strategy: NoUTF8EscapingWithSuffixes
271
272
## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#exemplars
273
## Must be enabled via --enable-feature=exemplar-storage
274
##
275
exemplars: {}
276
# max_exemplars: 100000
277
278
## Custom HTTP headers for Liveness/Readiness/Startup Probe
279
##
280
## Useful for providing HTTP Basic Auth to healthchecks
281
probeHeaders: []
282
# - name: "Authorization"
283
# value: "Bearer ABCDEabcde12345"
284
285
## Additional Prometheus server container arguments
286
## Set to null for argumentless flags
287
##
288
extraArgs: {}
289
# web.enable-remote-write-receiver: null
290
291
## Additional InitContainers to initialize the pod
292
##
293
extraInitContainers: []
294
## Additional Prometheus server Volume mounts
295
##
296
extraVolumeMounts: []
297
## Additional Prometheus server Volumes
298
##
299
extraVolumes: []
300
## Additional Prometheus server hostPath mounts
301
##
302
extraHostPathMounts: []
303
# - name: certs-dir
304
# mountPath: /etc/kubernetes/certs
305
# subPath: ""
306
# hostPath: /etc/kubernetes/certs
307
# readOnly: true
308
309
extraConfigmapMounts: []
310
# - name: certs-configmap
311
# mountPath: /prometheus
312
# subPath: ""
313
# configMap: certs-configmap
314
# readOnly: true
315
316
## Additional Prometheus server Secret mounts
317
# Defines additional mounts with secrets. Secrets must be manually created in the namespace.
318
extraSecretMounts: []
319
# - name: secret-files
320
# mountPath: /etc/secrets
321
# subPath: ""
322
# secretName: prom-secret-files
323
# readOnly: true
324
325
## Prometheus server configuration from a secret
326
## Do not set both `configMapOverrideName` and `configFromSecret` simultaneously.
327
## Use either `configMapOverrideName` or `configFromSecret`.
328
## If `configFromSecret` is defined, a ConfigMap resource will NOT be generated.
329
configFromSecret: ""
330
## ConfigMap override where fullname is {{.Release.Name}}-{{.Values.server.configMapOverrideName}}
331
## Defining configMapOverrideName will cause templates/server-configmap.yaml
332
## to NOT generate a ConfigMap resource
333
##
334
configMapOverrideName: ""
335
## Extra labels for Prometheus server ConfigMap (ConfigMap that holds serverFiles)
336
extraConfigmapLabels: {}
337
## Override the prometheus.server.fullname for all objects related to the Prometheus server
338
fullnameOverride: ""
339
ingress:
340
## If true, Prometheus server Ingress will be created
341
##
342
enabled: false
343
ingressClassName: ""
344
## Prometheus server Ingress annotations
345
##
346
annotations: {}
347
# kubernetes.io/ingress.class: nginx
348
# kubernetes.io/tls-acme: 'true'
349
350
## Prometheus server Ingress additional labels
351
##
352
extraLabels: {}
353
## Redirect ingress to an additional defined port on the service
354
# servicePort: 8081
355
356
## Prometheus server Ingress hostnames with optional path (passed through tpl)
357
## Must be provided if Ingress is enabled
358
##
359
hosts: []
360
# - prometheus.domain.com
361
# - domain.com/prometheus
362
363
path: /
364
# pathType determines the interpretation of the path matching
365
pathType: Prefix
366
## Extra paths to prepend to every host configuration. This is useful when working with annotation based services. (passed through tpl)
367
extraPaths: []
368
# - path: /*
369
# backend:
370
# serviceName: ssl-redirect
371
# servicePort: use-annotation
372
373
## Prometheus server Ingress TLS configuration (hosts passed through tpl)
374
## Secrets must be manually created in the namespace
375
##
376
tls: []
377
# - secretName: prometheus-server-tls
378
# hosts:
379
# - prometheus.domain.com
380
## route (map) allows configuration of HTTPRoute resources
381
## Requires Gateway API resources and suitable controller installed within the cluster
382
## Ref. https://gateway-api.sigs.k8s.io/guides/http-routing/
383
route:
384
main:
385
## Enable this route
386
enabled: false
387
## ApiVersion set by default to "gateway.networking.k8s.io/v1"
388
apiVersion: ""
389
## kind set by default to HTTPRoute
390
kind: ""
391
## Annotations to attach to the HTTPRoute resource
392
annotations: {}
393
## Labels to attach to the HTTPRoute resource
394
labels: {}
395
## ParentRefs refers to resources this HTTPRoute is to be attached to (Gateways)
396
parentRefs: []
397
# - name: contour
398
# sectionName: http
399
400
## Hostnames (templated) defines a set of hostnames that should match against the HTTP Host
401
## header to select a HTTPRoute used to process the request
402
hostnames: []
403
# - my.example.com
404
405
## additionalRules (templated) allows adding custom rules to the route
406
additionalRules: []
407
## Filters define the filters that are applied to requests that match
408
## this rule
409
filters: []
410
## Matches define conditions used for matching the rule against incoming
411
## HTTP requests
412
matches:
413
- path:
414
type: PathPrefix
415
value: /
416
## httpsRedirect adds a filter for redirecting to https (HTTP 301 Moved Permanently).
417
## To redirect HTTP traffic to HTTPS, you need to have a Gateway with both HTTP and HTTPS listeners.
418
## Matches and filters do not take effect if enabled.
419
## Ref. https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/
420
httpsRedirect: false
421
## Server Deployment Strategy type
422
strategy:
423
type: Recreate
424
## hostAliases allows adding entries to /etc/hosts inside the containers
425
hostAliases: []
426
# - ip: "127.0.0.1"
427
# hostnames:
428
# - "example.com"
429
430
## Node tolerations for server scheduling to nodes with taints
431
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
432
##
433
tolerations: []
434
# - key: "key"
435
# operator: "Equal|Exists"
436
# value: "value"
437
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
438
439
## Node labels for Prometheus server pod assignment
440
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
441
##
442
nodeSelector: {}
443
## Pod affinity
444
##
445
affinity: {}
446
## Pod anti-affinity can prevent the scheduler from placing Prometheus server replicas on the same node.
447
## The value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
448
## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
449
## The default value "" will disable pod anti-affinity so that no anti-affinity rules will be configured (unless set in `server.affinity`).
450
##
451
podAntiAffinity: ""
452
## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
453
## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
454
##
455
podAntiAffinityTopologyKey: kubernetes.io/hostname
456
## Pod topology spread constraints
457
## ref. https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
458
topologySpreadConstraints: []
459
## PodDisruptionBudget settings
460
## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
461
##
462
podDisruptionBudget:
463
enabled: false
464
# maxUnavailable: 1
465
# minAvailable: 1
466
## unhealthyPodEvictionPolicy is available since 1.27.0 (beta)
467
## https://kubernetes.io/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy
468
# unhealthyPodEvictionPolicy: IfHealthyBudget
469
## Use an alternate scheduler, e.g. "stork".
470
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
471
##
472
# schedulerName:
473
persistentVolume:
474
## If true, Prometheus server will create/use a Persistent Volume Claim
475
## If false, use emptyDir
476
##
477
enabled: true
478
## If set it will override the name of the created persistent volume claim
479
## generated by the stateful set.
480
##
481
statefulSetNameOverride: ""
482
## Prometheus server data Persistent Volume access modes
483
## Must match those of existing PV or dynamic provisioner
484
## Ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
485
##
486
accessModes:
487
- ReadWriteOnce
488
## Prometheus server data Persistent Volume labels
489
##
490
labels: {}
491
## Prometheus server data Persistent Volume annotations
492
##
493
annotations: {}
494
## Prometheus server data Persistent Volume existing claim name
495
## Requires server.persistentVolume.enabled: true
496
## If defined, PVC must be created manually before volume will be bound
497
existingClaim: ""
498
## Prometheus server data Persistent Volume mount root path
499
##
500
mountPath: /data
501
## Prometheus server data Persistent Volume size
502
##
503
size: 8Gi
504
## Prometheus server data Persistent Volume Storage Class
505
## If defined, storageClassName: <storageClass>
506
## If set to "-", storageClassName: "", which disables dynamic provisioning
507
## If undefined (the default) or set to null, no storageClassName spec is
508
## set, choosing the default provisioner. (gp2 on AWS, standard on
509
## GKE, AWS & OpenStack)
510
##
511
# storageClass: "-"
512
513
## Subdirectory of Prometheus server data Persistent Volume to mount
514
## Useful if the volume's root directory is not empty
515
##
516
subPath: ""
517
## Persistent Volume Claim Selector
518
## Useful if Persistent Volumes have been provisioned in advance
519
## Ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
520
##
521
# selector:
522
# matchLabels:
523
# release: "stable"
524
# matchExpressions:
525
# - { key: environment, operator: In, values: [ dev ] }
526
527
## Persistent Volume Name
528
## Useful if Persistent Volumes have been provisioned in advance and you want to use a specific one
529
##
530
# volumeName: ""
531
emptyDir:
532
## Prometheus server emptyDir volume
533
## Configure size limit and medium
534
##
535
medium: ""
536
sizeLimit: ""
537
## Annotations to be added to Prometheus server pods
538
##
539
podAnnotations: {}
540
# iam.amazonaws.com/role: prometheus
541
542
## Labels to be added to Prometheus server pods
543
##
544
podLabels: {}
545
## Prometheus AlertManager configuration
546
##
547
alertmanagers: []
548
## Use a StatefulSet if replicaCount needs to be greater than 1 (see below)
549
##
550
replicaCount: 1
551
## Number of old history to retain to allow rollback
552
## Default Kubernetes value is set to 10
553
##
554
revisionHistoryLimit: 10
555
## Annotations to be added to ConfigMap
556
##
557
configMapAnnotations: {}
558
## Annotations to be added to deployment
559
##
560
deploymentAnnotations: {}
561
statefulSet:
562
## If true, use a statefulset instead of a deployment for pod management.
563
## This allows to scale replicas to more than 1 pod
564
##
565
enabled: false
566
annotations: {}
567
labels: {}
568
podManagementPolicy: OrderedReady
569
## Alertmanager headless service to use for the statefulset
570
##
571
headless:
572
annotations: {}
573
labels: {}
574
servicePort: 80
575
## Enable gRPC port on service to allow auto discovery with thanos-querier
576
gRPC:
577
enabled: false
578
servicePort: 10901
579
# nodePort: 10901
580
## Statefulset's persistent volume claim retention policy
581
## pvcDeleteOnStsDelete and pvcDeleteOnStsScale determine whether
582
## statefulset's PVCs are deleted (true) or retained (false) on scaling down
583
## and deleting statefulset, respectively. Requires 1.27.0+.
584
## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
585
##
586
pvcDeleteOnStsDelete: false
587
pvcDeleteOnStsScale: false
588
daemonSet:
589
## If true, use a daemonset instead of a deployment for pod management.
590
## This allows to run prometheus agent on every node in the cluster.
591
##
592
enabled: false
593
annotations: {}
594
labels: {}
595
## Prometheus server readiness and liveness probe initial delay and timeout
596
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
597
##
598
tcpSocketProbeEnabled: false
599
probeScheme: HTTP
600
readinessProbeInitialDelay: 30
601
readinessProbePeriodSeconds: 5
602
readinessProbeTimeout: 4
603
readinessProbeFailureThreshold: 3
604
readinessProbeSuccessThreshold: 1
605
livenessProbeInitialDelay: 30
606
livenessProbePeriodSeconds: 15
607
livenessProbeTimeout: 10
608
livenessProbeFailureThreshold: 3
609
livenessProbeSuccessThreshold: 1
610
startupProbe:
611
enabled: false
612
periodSeconds: 5
613
failureThreshold: 30
614
timeoutSeconds: 10
615
## Prometheus server resource requests and limits
616
## Ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
617
##
618
resources: {}
619
# limits:
620
# cpu: 500m
621
# memory: 512Mi
622
# requests:
623
# cpu: 500m
624
# memory: 512Mi
625
626
# Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
627
# because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
628
##
629
hostNetwork: false
630
# When hostNetwork is enabled, this will set to ClusterFirstWithHostNet automatically
631
dnsPolicy: ClusterFirst
632
# Use hostPort
633
# hostPort: 9090
634
635
# Use portName
636
portName: ""
637
## Vertical Pod Autoscaler config
638
## Ref: https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler
639
verticalAutoscaler:
640
## If true a VPA object will be created for the controller (either StatefulSet or Deployemnt, based on above configs)
641
enabled: false
642
# updateMode: "Auto"
643
# containerPolicies:
644
# - containerName: 'prometheus-server'
645
# Custom DNS configuration to be added to prometheus server pods
646
dnsConfig: {}
647
# nameservers:
648
# - 1.2.3.4
649
# searches:
650
# - ns1.svc.cluster-domain.example
651
# - my.dns.search.suffix
652
# options:
653
# - name: ndots
654
# value: "2"
655
# - name: edns0
656
657
## Security context to be added to server pods
658
##
659
securityContext:
660
runAsUser: 65534
661
runAsNonRoot: true
662
runAsGroup: 65534
663
fsGroup: 65534
664
seccompProfile:
665
type: RuntimeDefault
666
## Security context to be added to server container
667
## The root filesystem is read-only: Prometheus writes only to its data directory, which is the
668
## server.persistentVolume.mountPath volume (an emptyDir when persistence is disabled). If you move the storage
669
## path with server.storagePath or server.defaultFlagsOverride, keep it on a mounted volume.
670
## Set to null to render no securityContext, or set a single field to override it.
671
##
672
containerSecurityContext:
673
allowPrivilegeEscalation: false
674
capabilities:
675
drop:
676
- ALL
677
readOnlyRootFilesystem: true
678
service:
679
## If false, no Service will be created for the Prometheus server
680
##
681
enabled: true
682
annotations: {}
683
labels: {}
684
clusterIP: ""
685
## List of IP addresses at which the Prometheus server service is available
686
## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
687
##
688
externalIPs: []
689
loadBalancerIP: ""
690
loadBalancerSourceRanges: []
691
loadBalancerClass: ""
692
servicePort: 80
693
sessionAffinity: None
694
type: ClusterIP
695
## externalTrafficPolicy is applicable to service with externally-facing addresses (NodePorts, ExternalIPs, and LoadBalancer IPs)
696
externalTrafficPolicy: ""
697
## Enable gRPC port on service to allow auto discovery with thanos-querier
698
gRPC:
699
enabled: false
700
servicePort: 10901
701
# nodePort: 10901
702
## If using a statefulSet (statefulSet.enabled=true), configure the
703
## service to connect to a specific replica to have a consistent view
704
## of the data.
705
statefulsetReplica:
706
enabled: false
707
replica: 0
708
## Additional port to define in the Service
709
additionalPorts: []
710
# additionalPorts:
711
# - name: authenticated
712
# port: 8081
713
# targetPort: 8081
714
## Prometheus server pod termination grace period
715
##
716
terminationGracePeriodSeconds: 300
717
## Prometheus data retention period (default if not specified is 15 days)
718
##
719
retention: "15d"
720
## Prometheus' data retention size. Supported units: B, KB, MB, GB, TB, PB, EB.
721
##
722
retentionSize: ""
723
## scrapeConfigs (map) defines Prometheus' default scrape_configs.
724
## Each can be disabled by setting "enabled" to "false" or leaving it empty. The key sets the default "job_name".
725
## Further scrapeConfigs can be added as new keys, these are then enabled by default.
726
## `pre_relabel_configs` and `post_relabel_configs` accept templated YAML block-scalar strings.
727
## Their rendered rules are inserted before and after the chart-managed `relabel_configs`, respectively.
728
## ref. https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
729
# @schema additionalProperties: {type: object, properties: {pre_relabel_configs: {type: string}, post_relabel_configs: {type: string}}}
730
scrapeConfigs:
731
prometheus:
732
enabled: true
733
job_name: ""
734
static_configs:
735
- targets:
736
- localhost:9090
737
kubernetes-api-servers:
738
enabled: true
739
job_name: ""
740
kubernetes_sd_configs:
741
- role: endpointslice
742
scheme: https
743
tls_config:
744
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
745
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
746
relabel_configs:
747
- source_labels:
748
- __meta_kubernetes_namespace
749
- __meta_kubernetes_service_name
750
- __meta_kubernetes_endpointslice_port_name
751
action: keep
752
regex: default;kubernetes;https
753
pre_relabel_configs: ""
754
post_relabel_configs: ""
755
kubernetes-nodes:
756
enabled: true
757
job_name: ""
758
scheme: https
759
tls_config:
760
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
761
insecure_skip_verify: true
762
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
763
kubernetes_sd_configs:
764
- role: node
765
relabel_configs:
766
- action: labelmap
767
regex: __meta_kubernetes_node_label_(.+)
768
pre_relabel_configs: ""
769
post_relabel_configs: ""
770
kubernetes-nodes-cadvisor:
771
enabled: true
772
job_name: ""
773
scheme: https
774
tls_config:
775
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
776
insecure_skip_verify: true
777
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
778
metrics_path: /metrics/cadvisor
779
kubernetes_sd_configs:
780
- role: node
781
relabel_configs:
782
- action: labelmap
783
regex: __meta_kubernetes_node_label_(.+)
784
- source_labels: [__metrics_path__]
785
target_label: metrics_path
786
pre_relabel_configs: ""
787
post_relabel_configs: ""
788
kubernetes-service-endpoints:
789
enabled: true
790
job_name: ""
791
honor_labels: true
792
kubernetes_sd_configs:
793
- role: endpointslice
794
relabel_configs:
795
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
796
action: keep
797
regex: true
798
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape_slow]
799
action: drop
800
regex: true
801
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
802
action: replace
803
target_label: __scheme__
804
regex: (https?)
805
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
806
action: replace
807
target_label: __metrics_path__
808
regex: (.+)
809
- source_labels:
810
- __address__
811
- __meta_kubernetes_service_annotation_prometheus_io_port
812
action: replace
813
target_label: __address__
814
regex: (.+?)(?::\d+)?;(\d+)
815
replacement: $1:$2
816
- action: labelmap
817
regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+)
818
replacement: __param_$1
819
- action: labelmap
820
regex: __meta_kubernetes_service_label_(.+)
821
- source_labels: [__meta_kubernetes_namespace]
822
action: replace
823
target_label: namespace
824
- source_labels: [__meta_kubernetes_service_name]
825
action: replace
826
target_label: service
827
- source_labels: [__meta_kubernetes_pod_node_name]
828
action: replace
829
target_label: node
830
pre_relabel_configs: ""
831
post_relabel_configs: ""
832
kubernetes-service-endpoints-slow:
833
enabled: true
834
job_name: ""
835
honor_labels: true
836
scrape_interval: 5m
837
scrape_timeout: 30s
838
kubernetes_sd_configs:
839
- role: endpointslice
840
relabel_configs:
841
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape_slow]
842
action: keep
843
regex: true
844
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
845
action: replace
846
target_label: __scheme__
847
regex: (https?)
848
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
849
action: replace
850
target_label: __metrics_path__
851
regex: (.+)
852
- source_labels:
853
- __address__
854
- __meta_kubernetes_service_annotation_prometheus_io_port
855
action: replace
856
target_label: __address__
857
regex: (.+?)(?::\d+)?;(\d+)
858
replacement: $1:$2
859
- action: labelmap
860
regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+)
861
replacement: __param_$1
862
- action: labelmap
863
regex: __meta_kubernetes_service_label_(.+)
864
- source_labels: [__meta_kubernetes_namespace]
865
action: replace
866
target_label: namespace
867
- source_labels: [__meta_kubernetes_service_name]
868
action: replace
869
target_label: service
870
- source_labels: [__meta_kubernetes_pod_node_name]
871
action: replace
872
target_label: node
873
prometheus-pushgateway:
874
enabled: true
875
job_name: ""
876
honor_labels: true
877
kubernetes_sd_configs:
878
- role: service
879
relabel_configs:
880
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
881
action: keep
882
regex: pushgateway
883
pre_relabel_configs: ""
884
post_relabel_configs: ""
885
kubernetes-services:
886
enabled: true
887
job_name: ""
888
honor_labels: true
889
metrics_path: /probe
890
params:
891
module: [http_2xx]
892
kubernetes_sd_configs:
893
- role: service
894
relabel_configs:
895
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
896
action: keep
897
regex: true
898
- source_labels: [__address__]
899
target_label: __param_target
900
- target_label: __address__
901
replacement: blackbox
902
- source_labels: [__param_target]
903
target_label: instance
904
- action: labelmap
905
regex: __meta_kubernetes_service_label_(.+)
906
- source_labels: [__meta_kubernetes_namespace]
907
target_label: namespace
908
- source_labels: [__meta_kubernetes_service_name]
909
target_label: service
910
pre_relabel_configs: ""
911
post_relabel_configs: ""
912
kubernetes-pods:
913
enabled: true
914
job_name: ""
915
honor_labels: true
916
kubernetes_sd_configs:
917
- role: pod
918
relabel_configs:
919
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
920
action: keep
921
regex: true
922
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape_slow]
923
action: drop
924
regex: true
925
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme]
926
action: replace
927
regex: (https?)
928
target_label: __scheme__
929
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
930
action: replace
931
target_label: __metrics_path__
932
regex: (.+)
933
- source_labels:
934
- __meta_kubernetes_pod_annotation_prometheus_io_port
935
- __meta_kubernetes_pod_ip
936
action: replace
937
regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})
938
replacement: '[$2]:$1'
939
target_label: __address__
940
- source_labels:
941
- __meta_kubernetes_pod_annotation_prometheus_io_port
942
- __meta_kubernetes_pod_ip
943
action: replace
944
regex: (\d+);((([0-9]+?)(\.|$)){4})
945
replacement: $2:$1
946
target_label: __address__
947
- action: labelmap
948
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
949
replacement: __param_$1
950
- action: labelmap
951
regex: __meta_kubernetes_pod_label_(.+)
952
- source_labels: [__meta_kubernetes_namespace]
953
action: replace
954
target_label: namespace
955
- source_labels: [__meta_kubernetes_pod_name]
956
action: replace
957
target_label: pod
958
- source_labels: [__meta_kubernetes_pod_phase]
959
regex: Pending|Succeeded|Failed|Completed
960
action: drop
961
- source_labels: [__meta_kubernetes_pod_node_name]
962
action: replace
963
target_label: node
964
pre_relabel_configs: ""
965
post_relabel_configs: ""
966
kubernetes-pods-slow:
967
enabled: true
968
job_name: ""
969
honor_labels: true
970
scrape_interval: 5m
971
scrape_timeout: 30s
972
kubernetes_sd_configs:
973
- role: pod
974
relabel_configs:
975
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape_slow]
976
action: keep
977
regex: true
978
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme]
979
action: replace
980
regex: (https?)
981
target_label: __scheme__
982
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
983
action: replace
984
target_label: __metrics_path__
985
regex: (.+)
986
- source_labels:
987
- __meta_kubernetes_pod_annotation_prometheus_io_port
988
- __meta_kubernetes_pod_ip
989
action: replace
990
regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})
991
replacement: '[$2]:$1'
992
target_label: __address__
993
- source_labels:
994
- __meta_kubernetes_pod_annotation_prometheus_io_port
995
- __meta_kubernetes_pod_ip
996
action: replace
997
regex: (\d+);((([0-9]+?)(\.|$)){4})
998
replacement: $2:$1
999
target_label: __address__
1000
- action: labelmap
1001
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
1002
replacement: __param_$1
1003
- action: labelmap
1004
regex: __meta_kubernetes_pod_label_(.+)
1005
- source_labels: [__meta_kubernetes_namespace]
1006
action: replace
1007
target_label: namespace
1008
- source_labels: [__meta_kubernetes_pod_name]
1009
action: replace
1010
target_label: pod
1011
- source_labels: [__meta_kubernetes_pod_phase]
1012
regex: Pending|Succeeded|Failed|Completed
1013
action: drop
1014
- source_labels: [__meta_kubernetes_pod_node_name]
1015
action: replace
1016
target_label: node
1017
pre_relabel_configs: ""
1018
post_relabel_configs: ""
1019
# extraScrapeConfigs adds additional scrape configs to prometheus.yml
1020
# must be a string so you have to add a | after extraScrapeConfigs:
1021
# example adds prometheus-blackbox-exporter scrape config
1022
extraScrapeConfigs: ""
1023
# - job_name: 'prometheus-blackbox-exporter'
1024
# metrics_path: /probe
1025
# params:
1026
# module: [http_2xx]
1027
# static_configs:
1028
# - targets:
1029
# - https://example.com
1030
# relabel_configs:
1031
# - source_labels: [__address__]
1032
# target_label: __param_target
1033
# - source_labels: [__param_target]
1034
# target_label: instance
1035
# - target_label: __address__
1036
# replacement: prometheus-blackbox-exporter:9115
1037
1038
## Prometheus server ConfigMap entries for rule files (allow prometheus labels interpolation)
1039
ruleFiles: {}
1040
## Prometheus server ConfigMap entries for scrape_config_files
1041
## (allows scrape configs defined in additional files)
1042
##
1043
scrapeConfigFiles: []
1044
## Prometheus server ConfigMap entries
1045
##
1046
serverFiles:
1047
## Alerts configuration
1048
## Ref: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
1049
alerting_rules.yml: {}
1050
# groups:
1051
# - name: Instances
1052
# rules:
1053
# - alert: InstanceDown
1054
# expr: up == 0
1055
# for: 5m
1056
# labels:
1057
# severity: page
1058
# annotations:
1059
# description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.'
1060
# summary: 'Instance {{ $labels.instance }} down'
1061
## DEPRECATED DEFAULT VALUE, unless explicitly naming your files, please use alerting_rules.yml
1062
alerts: {}
1063
## Records configuration
1064
## Ref: https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/
1065
recording_rules.yml: {}
1066
## DEPRECATED DEFAULT VALUE, unless explicitly naming your files, please use recording_rules.yml
1067
rules: {}
1068
prometheus.yml:
1069
rule_files:
1070
- /etc/config/recording_rules.yml
1071
- /etc/config/alerting_rules.yml
1072
## Below two files are DEPRECATED will be removed from this default values file
1073
- /etc/config/rules
1074
- /etc/config/alerts
1075
# Adds option to add alert_relabel_configs to avoid duplicate alerts in alertmanager
1076
# useful in H/A prometheus with different external labels but the same alerts
1077
alertRelabelConfigs: {}
1078
# alert_relabel_configs:
1079
# - source_labels: [dc]
1080
# regex: (.+)\d+
1081
# target_label: dc
1082
1083
networkPolicy:
1084
## Enable creation of NetworkPolicy resources.
1085
##
1086
enabled: false
1087
# Force namespace of namespaced resources
1088
forceNamespace: ""
1089
# Extra manifests to deploy as an array
1090
extraManifests: []
1091
# - |
1092
# apiVersion: v1
1093
# kind: ConfigMap
1094
# metadata:
1095
# labels:
1096
# name: prometheus-extra
1097
# data:
1098
# extra-data: "value"
1099
1100
# Configuration of subcharts defined in Chart.yaml
1101
1102
## alertmanager sub-chart configurable values
1103
## Please see https://github.com/prometheus-community/helm-charts/tree/main/charts/alertmanager
1104
##
1105
alertmanager:
1106
## If false, alertmanager will not be installed
1107
##
1108
enabled: true
1109
persistence:
1110
## If true, storage will create or use Persistence Volume
1111
## If false, storage will use emptyDir
1112
##
1113
enabled: true
1114
## Custom annotations for the PVC created by the alertmanager StatefulSet.
1115
## Useful for configuring storage provider options such as disk type, KMS encryption keys, or custom volume name prefixes.
1116
annotations: {}
1117
## Custom labels for the PVC created by the alertmanager StatefulSet.
1118
## Useful for selecting, grouping, and organizing so that they can be queried or targeted in deployments, policies, etc.
1119
labels: {}
1120
## Persistent Volume Storage Class
1121
## If defined, storageClassName: <storageClass>
1122
## If set to "-", storageClassName: "", which disables dynamic provisioning
1123
## If undefined (the default) or set to null, no storageClassName spec is
1124
## set, choosing the default provisioner.
1125
##
1126
# storageClass: "-"
1127
accessModes:
1128
- ReadWriteOnce
1129
size: 2Gi
1130
## Configure emptyDir volume
1131
##
1132
emptyDir: {}
1133
podSecurityContext:
1134
runAsUser: 65534
1135
runAsNonRoot: true
1136
runAsGroup: 65534
1137
fsGroup: 65534
1138
## kube-state-metrics sub-chart configurable values
1139
## Please see https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-state-metrics
1140
##
1141
kube-state-metrics:
1142
## If false, kube-state-metrics sub-chart will not be installed
1143
##
1144
enabled: true
1145
## prometheus-node-exporter sub-chart configurable values
1146
## Please see https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-node-exporter
1147
##
1148
prometheus-node-exporter:
1149
## If false, node-exporter will not be installed
1150
##
1151
enabled: true
1152
## prometheus-pushgateway sub-chart configurable values
1153
## Please see https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-pushgateway
1154
##
1155
prometheus-pushgateway:
1156
## If false, pushgateway will not be installed
1157
##
1158
enabled: true
1159
# Optional service annotations
1160
serviceAnnotations:
1161
prometheus.io/probe: pushgateway
1162

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.