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.
9# - name: "image-pull-secret"
11## Define serviceAccount names for components. Defaults to component's fully qualified name.
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
23## Monitors ConfigMap changes and POSTs to a URL
24## Ref: https://github.com/prometheus-operator/prometheus-operator/tree/main/cmd/prometheus-config-reloader
27 ## URL for configmap-reload to use for reloads
30 ## env sets environment variables to pass to the container. Can be set as name/value pairs,
31 ## read from secrets or configmaps.
43 ## If false, the configmap-reload container will not be deployed
46 ## configmap-reload container name
48 name: configmap-reload
49 ## configmap-reload container image
52 repository: cgr.dev/chainguard-private/prometheus-config-reloader
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
59 containerPortName: metrics
60 ## Additional configmap-reload container arguments
61 ## Set to null for argumentless flags
64 ## Additional configmap-reload volume directories
67 ## Additional configmap-reload volume mounts
70 ## Additional configmap-reload mounts
72 extraConfigmapMounts: []
73 # - name: prometheus-alerts
74 # mountPath: /etc/alerts.d
76 # configMap: prometheus-alerts
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.
82 containerSecurityContext:
83 allowPrivilegeEscalation: false
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/
97 initialDelaySeconds: 2
111 ## configmap-reload resource requests and limits
112 ## Ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
116 ## Prometheus server container name
119 ## Opt out of automounting Kubernetes API credentials.
120 ## If set it will override serviceAccounts.server.automountServiceAccountToken value for ServiceAccount.
121 # automountServiceAccountToken: false
123 ## If set it will override prometheus.server.fullname value for ClusterRole and ClusterRoleBinding
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.
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.
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.
144 # sidecarContainers - add more containers to prometheus server
145 # Key/Value where Key is the sidecar `- name: <Key>`
150 # OR for adding OAuth authentication to Prometheus
153 # image: quay.io/oauth2-proxy/oauth2-proxy
155 # - --upstream=http://127.0.0.1:9090
156 # - --http-address=0.0.0.0:8081
159 # - containerPort: 8081
163 sidecarContainers: {}
164 # sidecarTemplateValues - context to be used in template for sidecarContainers
166 # sidecarTemplateValues: *your-custom-globals
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 }}"
174 sidecarTemplateValues: {}
175 ## Prometheus server container image
178 repository: cgr.dev/chainguard-private/prometheus
179 # If not set appVersion field from Chart.yaml is used. Supports templating.
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.
185 pullPolicy: IfNotPresent
186 ## Prometheus server command
189 ## prometheus server priorityClassName
191 priorityClassName: ""
192 ## prometheus server 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.
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.
204 ## External URL which can access prometheus
205 ## Maybe same with Ingress host name
207 ## Additional server container environment variables
209 ## You specify this manually like you would a raw deployment manifest.
210 ## This means you can bind in environment variables from secrets.
212 ## e.g. static environment variable:
213 ## - name: DEMO_GREETING
214 ## value: "Hello from the environment"
216 ## e.g. secret environment variable:
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: []
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
234 ## storage.tsdb.no-lockfile flag controls BD locking
235 # - storage.tsdb.no-lockfile
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
245 ## How frequently to scrape targets by default
248 ## How long until a scrape request times out
251 ## How frequently to evaluate rules
253 evaluation_interval: 1m
254 ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
257 ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_read
260 ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tsdb
263 # out_of_order_time_window: 0s
265 ## https://prometheus.io/docs/guides/opentelemetry
268 # promote_resource_attributes: []
269 # keep_identifying_resource_attributes: false
270 # translation_strategy: NoUTF8EscapingWithSuffixes
272 ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#exemplars
273 ## Must be enabled via --enable-feature=exemplar-storage
276 # max_exemplars: 100000
278 ## Custom HTTP headers for Liveness/Readiness/Startup Probe
280 ## Useful for providing HTTP Basic Auth to healthchecks
282 # - name: "Authorization"
283 # value: "Bearer ABCDEabcde12345"
285 ## Additional Prometheus server container arguments
286 ## Set to null for argumentless flags
289 # web.enable-remote-write-receiver: null
291 ## Additional InitContainers to initialize the pod
293 extraInitContainers: []
294 ## Additional Prometheus server Volume mounts
296 extraVolumeMounts: []
297 ## Additional Prometheus server Volumes
300 ## Additional Prometheus server hostPath mounts
302 extraHostPathMounts: []
304 # mountPath: /etc/kubernetes/certs
306 # hostPath: /etc/kubernetes/certs
309 extraConfigmapMounts: []
310 # - name: certs-configmap
311 # mountPath: /prometheus
313 # configMap: certs-configmap
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
322 # secretName: prom-secret-files
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.
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
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
340 ## If true, Prometheus server Ingress will be created
344 ## Prometheus server Ingress annotations
347 # kubernetes.io/ingress.class: nginx
348 # kubernetes.io/tls-acme: 'true'
350 ## Prometheus server Ingress additional labels
353 ## Redirect ingress to an additional defined port on the service
356 ## Prometheus server Ingress hostnames with optional path (passed through tpl)
357 ## Must be provided if Ingress is enabled
360 # - prometheus.domain.com
361 # - domain.com/prometheus
364 # pathType determines the interpretation of the path matching
366 ## Extra paths to prepend to every host configuration. This is useful when working with annotation based services. (passed through tpl)
370 # serviceName: ssl-redirect
371 # servicePort: use-annotation
373 ## Prometheus server Ingress TLS configuration (hosts passed through tpl)
374 ## Secrets must be manually created in the namespace
377 # - secretName: prometheus-server-tls
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/
387 ## ApiVersion set by default to "gateway.networking.k8s.io/v1"
389 ## kind set by default to HTTPRoute
391 ## Annotations to attach to the HTTPRoute resource
393 ## Labels to attach to the HTTPRoute resource
395 ## ParentRefs refers to resources this HTTPRoute is to be attached to (Gateways)
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
405 ## additionalRules (templated) allows adding custom rules to the route
407 ## Filters define the filters that are applied to requests that match
410 ## Matches define conditions used for matching the rule against incoming
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/
421 ## Server Deployment Strategy type
424 ## hostAliases allows adding entries to /etc/hosts inside the containers
430 ## Node tolerations for server scheduling to nodes with taints
431 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
435 # operator: "Equal|Exists"
437 # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
439 ## Node labels for Prometheus server pod assignment
440 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
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`).
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
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/
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/
474 ## If true, Prometheus server will create/use a Persistent Volume Claim
475 ## If false, use emptyDir
478 ## If set it will override the name of the created persistent volume claim
479 ## generated by the stateful set.
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/
488 ## Prometheus server data Persistent Volume labels
491 ## Prometheus server data Persistent Volume 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
498 ## Prometheus server data Persistent Volume mount root path
501 ## Prometheus server data Persistent Volume size
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)
513 ## Subdirectory of Prometheus server data Persistent Volume to mount
514 ## Useful if the volume's root directory is not empty
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
525 # - { key: environment, operator: In, values: [ dev ] }
527 ## Persistent Volume Name
528 ## Useful if Persistent Volumes have been provisioned in advance and you want to use a specific one
532 ## Prometheus server emptyDir volume
533 ## Configure size limit and medium
537 ## Annotations to be added to Prometheus server pods
540 # iam.amazonaws.com/role: prometheus
542 ## Labels to be added to Prometheus server pods
545 ## Prometheus AlertManager configuration
548 ## Use a StatefulSet if replicaCount needs to be greater than 1 (see below)
551 ## Number of old history to retain to allow rollback
552 ## Default Kubernetes value is set to 10
554 revisionHistoryLimit: 10
555 ## Annotations to be added to ConfigMap
557 configMapAnnotations: {}
558 ## Annotations to be added to deployment
560 deploymentAnnotations: {}
562 ## If true, use a statefulset instead of a deployment for pod management.
563 ## This allows to scale replicas to more than 1 pod
568 podManagementPolicy: OrderedReady
569 ## Alertmanager headless service to use for the statefulset
575 ## Enable gRPC port on service to allow auto discovery with thanos-querier
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
586 pvcDeleteOnStsDelete: false
587 pvcDeleteOnStsScale: false
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.
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/
598 tcpSocketProbeEnabled: false
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
615 ## Prometheus server resource requests and limits
616 ## Ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
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
630 # When hostNetwork is enabled, this will set to ClusterFirstWithHostNet automatically
631 dnsPolicy: ClusterFirst
637 ## Vertical Pod Autoscaler config
638 ## Ref: https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler
640 ## If true a VPA object will be created for the controller (either StatefulSet or Deployemnt, based on above configs)
644 # - containerName: 'prometheus-server'
645 # Custom DNS configuration to be added to prometheus server pods
650 # - ns1.svc.cluster-domain.example
651 # - my.dns.search.suffix
657 ## Security context to be added to server pods
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.
672 containerSecurityContext:
673 allowPrivilegeEscalation: false
677 readOnlyRootFilesystem: true
679 ## If false, no Service will be created for the Prometheus server
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
690 loadBalancerSourceRanges: []
691 loadBalancerClass: ""
693 sessionAffinity: None
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
702 ## If using a statefulSet (statefulSet.enabled=true), configure the
703 ## service to connect to a specific replica to have a consistent view
708 ## Additional port to define in the Service
711 # - name: authenticated
714 ## Prometheus server pod termination grace period
716 terminationGracePeriodSeconds: 300
717 ## Prometheus data retention period (default if not specified is 15 days)
720 ## Prometheus' data retention size. Supported units: B, KB, MB, GB, TB, PB, EB.
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}}}
737 kubernetes-api-servers:
740 kubernetes_sd_configs:
741 - role: endpointslice
744 ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
745 bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
748 - __meta_kubernetes_namespace
749 - __meta_kubernetes_service_name
750 - __meta_kubernetes_endpointslice_port_name
752 regex: default;kubernetes;https
753 pre_relabel_configs: ""
754 post_relabel_configs: ""
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:
767 regex: __meta_kubernetes_node_label_(.+)
768 pre_relabel_configs: ""
769 post_relabel_configs: ""
770 kubernetes-nodes-cadvisor:
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:
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:
792 kubernetes_sd_configs:
793 - role: endpointslice
795 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
798 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape_slow]
801 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
803 target_label: __scheme__
805 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
807 target_label: __metrics_path__
811 - __meta_kubernetes_service_annotation_prometheus_io_port
813 target_label: __address__
814 regex: (.+?)(?::\d+)?;(\d+)
817 regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+)
818 replacement: __param_$1
820 regex: __meta_kubernetes_service_label_(.+)
821 - source_labels: [__meta_kubernetes_namespace]
823 target_label: namespace
824 - source_labels: [__meta_kubernetes_service_name]
826 target_label: service
827 - source_labels: [__meta_kubernetes_pod_node_name]
830 pre_relabel_configs: ""
831 post_relabel_configs: ""
832 kubernetes-service-endpoints-slow:
838 kubernetes_sd_configs:
839 - role: endpointslice
841 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape_slow]
844 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
846 target_label: __scheme__
848 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
850 target_label: __metrics_path__
854 - __meta_kubernetes_service_annotation_prometheus_io_port
856 target_label: __address__
857 regex: (.+?)(?::\d+)?;(\d+)
860 regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+)
861 replacement: __param_$1
863 regex: __meta_kubernetes_service_label_(.+)
864 - source_labels: [__meta_kubernetes_namespace]
866 target_label: namespace
867 - source_labels: [__meta_kubernetes_service_name]
869 target_label: service
870 - source_labels: [__meta_kubernetes_pod_node_name]
873 prometheus-pushgateway:
877 kubernetes_sd_configs:
880 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
883 pre_relabel_configs: ""
884 post_relabel_configs: ""
892 kubernetes_sd_configs:
895 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
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
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: ""
916 kubernetes_sd_configs:
919 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
922 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape_slow]
925 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme]
928 target_label: __scheme__
929 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
931 target_label: __metrics_path__
934 - __meta_kubernetes_pod_annotation_prometheus_io_port
935 - __meta_kubernetes_pod_ip
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__
941 - __meta_kubernetes_pod_annotation_prometheus_io_port
942 - __meta_kubernetes_pod_ip
944 regex: (\d+);((([0-9]+?)(\.|$)){4})
946 target_label: __address__
948 regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
949 replacement: __param_$1
951 regex: __meta_kubernetes_pod_label_(.+)
952 - source_labels: [__meta_kubernetes_namespace]
954 target_label: namespace
955 - source_labels: [__meta_kubernetes_pod_name]
958 - source_labels: [__meta_kubernetes_pod_phase]
959 regex: Pending|Succeeded|Failed|Completed
961 - source_labels: [__meta_kubernetes_pod_node_name]
964 pre_relabel_configs: ""
965 post_relabel_configs: ""
966 kubernetes-pods-slow:
972 kubernetes_sd_configs:
975 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape_slow]
978 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme]
981 target_label: __scheme__
982 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
984 target_label: __metrics_path__
987 - __meta_kubernetes_pod_annotation_prometheus_io_port
988 - __meta_kubernetes_pod_ip
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__
994 - __meta_kubernetes_pod_annotation_prometheus_io_port
995 - __meta_kubernetes_pod_ip
997 regex: (\d+);((([0-9]+?)(\.|$)){4})
999 target_label: __address__
1001 regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
1002 replacement: __param_$1
1004 regex: __meta_kubernetes_pod_label_(.+)
1005 - source_labels: [__meta_kubernetes_namespace]
1007 target_label: namespace
1008 - source_labels: [__meta_kubernetes_pod_name]
1011 - source_labels: [__meta_kubernetes_pod_phase]
1012 regex: Pending|Succeeded|Failed|Completed
1014 - source_labels: [__meta_kubernetes_pod_node_name]
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
1022extraScrapeConfigs: ""
1023# - job_name: 'prometheus-blackbox-exporter'
1024# metrics_path: /probe
1029# - https://example.com
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
1038## Prometheus server ConfigMap entries for rule files (allow prometheus labels interpolation)
1040## Prometheus server ConfigMap entries for scrape_config_files
1041## (allows scrape configs defined in additional files)
1043scrapeConfigFiles: []
1044## Prometheus server ConfigMap entries
1047 ## Alerts configuration
1048 ## Ref: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
1049 alerting_rules.yml: {}
1053 # - alert: InstanceDown
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
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
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
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
1077alertRelabelConfigs: {}
1078# alert_relabel_configs:
1079# - source_labels: [dc]
1084 ## Enable creation of NetworkPolicy resources.
1087# Force namespace of namespaced resources
1089# Extra manifests to deploy as an array
1096# name: prometheus-extra
1098# extra-data: "value"
1100# Configuration of subcharts defined in Chart.yaml
1102## alertmanager sub-chart configurable values
1103## Please see https://github.com/prometheus-community/helm-charts/tree/main/charts/alertmanager
1106 ## If false, alertmanager will not be installed
1110 ## If true, storage will create or use Persistence Volume
1111 ## If false, storage will use emptyDir
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.
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.
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.
1130 ## Configure emptyDir volume
1138## kube-state-metrics sub-chart configurable values
1139## Please see https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-state-metrics
1142 ## If false, kube-state-metrics sub-chart will not be installed
1145## prometheus-node-exporter sub-chart configurable values
1146## Please see https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-node-exporter
1148prometheus-node-exporter:
1149 ## If false, node-exporter will not be installed
1152## prometheus-pushgateway sub-chart configurable values
1153## Please see https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-pushgateway
1155prometheus-pushgateway:
1156 ## If false, pushgateway will not be installed
1159 # Optional service annotations
1161 prometheus.io/probe: pushgateway