1# Default values for pyroscope.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
5 # -- Overrides the Docker registry globally for all images
9 # -- Enable or disable Self profile push, useful to test
10 disableSelfProfile: true
11 # -- Kubernetes cluster domain suffix for DNS discovery
12 cluster_domain: .cluster.local.
15 repository: chainreg.biz/scratch-images/test-tmp/grafana-pyroscope
16 pullPolicy: IfNotPresent
17 # Allows to override the image tag, which defaults to the appVersion in the chart metadata
18 tag: 1.21.1-r7@sha256:f79b1689391871f27c00583f6ac91ffbd1b7fc4cbfd79f96a065e19bf0646a31
23 # The following environment variables are set by the Helm chart.
24 # JAEGER_AGENT_HOST: jaeger-agent.jaeger.svc.cluster.local.
26 extraCustomEnvVars: {}
27 # The following environment variables raw form.
28 # - name: MY_NODE_NAME
31 # fieldPath: spec.nodeName
33 # -- Environment variables from secrets or configmaps to add to the pods
36 dnsPolicy: ClusterFirst
42 # -- Whether to create RBAC resources
45 # Specifies whether a service account should be created
47 # Annotations to add to the service account
49 # The name of the service account to use.
50 # If not set and create is true, a name is generated using the fullname template
53 # Scrapes itself see https://grafana.com/docs/pyroscope/latest/deploy-kubernetes/helm/#optional-scrape-your-own-workloads-profiles
54 profiles.grafana.com/memory.scrape: "true"
55 profiles.grafana.com/memory.port_name: http2
56 profiles.grafana.com/cpu.scrape: "true"
57 profiles.grafana.com/cpu.port_name: http2
58 profiles.grafana.com/goroutine.scrape: "true"
59 profiles.grafana.com/goroutine.port_name: http2
60 # profiles.grafana.com/block.scrape: "true"
61 # profiles.grafana.com/mutex.scrape: "true"
73 # readOnlyRootFilesystem: true
83 headlessAnnotations: {}
94 # We usually recommend not to specify default resources and to leave this as a conscious
95 # choice for the user. This also increases chances charts run on environments with little
96 # resources, such as Minikube. If you do want to specify resources, uncomment the following
97 # lines, adjust them as necessary, and remove the curly braces after 'resources'.
99 # Note that if memory consumption is higher than you would like, you can decrease the interval
100 # that profiles are written into blocks by setting `pyroscopedb.max-block-duration` in the `extraArgs`
101 # stanza. By default, it is set to 3h - override it, for example, as below:
104 # pyroscopedb.max-block-duration: 30m
115 # -- Topology Spread Constraints
116 topologySpreadConstraints: []
117 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
118 ## If you set enabled as "True", you need :
119 ## - create a pv which above 10Gi and has same namespace with pyroscope
120 ## - keep storageClassName same with below setting
129 # app.kubernetes.io/name: pyroscope
134 # subPath to use of the data volume for the metastore persistence.
138 # subPath to use of the data volume for the shared storage used as bucket replacement.
141 # - name: backup-volume
144 extraVolumeMounts: []
146 # mountPath: /var/lib/testing
148 # - name: test-volume
149 # mountPath: /var/tmp/test-volume
150 # existingClaim: test-volume
155 # Override the PodPriorityClass
156 # priorityClassName: high
158 # run specific components separately
160 # -- Allows to override Pyroscope's configuration using structured format.
162 # -- Contains Pyroscope's configuration as a string.
163 # @default -- The config depends on other values been set, details can be found in [`values.yaml`](./values.yaml)
165 {{- if .Values.minio.enabled }}
169 endpoint: "{{ include "pyroscope.fullname" . }}-minio:9000"
170 bucket_name: {{(index .Values.minio.buckets 0).name | quote }}
171 access_key_id: {{ .Values.minio.rootUser | quote }}
172 secret_access_key: {{ .Values.minio.rootPassword | quote }}
175 # -- Allows to add tenant specific overrides to the default limit configuration.
178 # ingestion_rate_mb: 1
179 # ingestion_burst_size_mb: 2
180 # -- Grafana Agent Configuration.
183 # -- (bool) Enable v1 storage layer.
185 # -- (bool) Enable v2 storage layer.
188 # -- (float) Specifies the fraction [0:1] that should be send to the v1 write path / ingester in combined mode. 0 means no traffics is sent to ingester. 1 means 100% of requests are sent to ingester.
190 # -- (float) Specifies the fraction [0:1] that should be send to the v2 write path / segment-writer in combined mode. 0 means no traffics is sent to segment-writer. 1 means 100% of requests are sent to segment-writer.
191 segmentWriterWeight: 1.0
192 # -- (bool) Specify a time stamp from when the v2 read path should serve traffic.
194 # -- (string) Specify a time stamp from when the v2 read path should serve traffic.
195 queryBackendFrom: auto
196 # -- This flag is useful for testing, it will overwrite all pods resource statements with its contents
197 overwriteResources: {}
201 # -- Deploy unified write/read services. These endpoints will can be used no matter if the helm chart is configured as single-binary or microservices
202 deployUnifiedServices: false
204 # -- (bool) Enable micro-services deployment mode. This is recommend for larger scale deployment and allow right size each aspect of Pyroscope.
206 # -- (string) Memberlist cluster label that will be used for all members of this cluster
207 clusterLabelSuffix: -micro-services
209 # Not useful to be indivually exposed
221 store-gateway.sharding-ring.replication-factor: "3"
252 terminationGracePeriodSeconds: 600
262 terminationGracePeriodSeconds: 1200
275 # The store-gateway needs not need persistent storage, but we still run it as a StatefulSet
276 # This is to avoid having blocks of data being
285 # The store gateway can be configured to wait on startup for ring stability to be reached before it becomes
286 # ready. See the `store-gateway.sharding-ring.wait-stability-min-duration` server argument for more information.
288 # Depending on this flag and the number of tenants + blocks that need to be synced on startup, pods can take
289 # some time to become ready. This value can be used to ensure Kubernetes waits long enough and reduce errors.
290 initialDelaySeconds: 60
292 store-gateway.sharding-ring.replication-factor: "3"
312 # Not useful to be indivually exposed
344 terminationGracePeriodSeconds: 600
354 terminationGracePeriodSeconds: 1200
366 terminationGracePeriodSeconds: 1200
376 # Expect 3 metastores
377 metastore.raft.bootstrap-expect-peers: 3
378 # enable cleanup of blocks beyond retention
379 metastore.index.cleanup-interval: 1m
380 metastore.snapshot-compact-on-restore: true
408# -------------------------------------
409# Configuration for `alloy` child chart
410# -------------------------------------
417 profiles.grafana.com/memory.scrape: "true"
418 profiles.grafana.com/memory.port_name: "http-metrics"
419 profiles.grafana.com/cpu.scrape: "true"
420 profiles.grafana.com/cpu.port_name: "http-metrics"
421 profiles.grafana.com/goroutine.scrape: "true"
422 profiles.grafana.com/goroutine.port_name: "http-metrics"
423 profiles.grafana.com/service_repository: 'https://github.com/grafana/alloy'
424 profiles.grafana.com/service_git_ref: 'v1.8.1'
426 stabilityLevel: "public-preview" # This needs to be set for some of our resources until verison v1.2 is released
429 name: alloy-config-pyroscope
432# -------------------------------------
433# Configuration for `grafana-agent` child chart
434# -------------------------------------
441 profiles.grafana.com/memory.scrape: "true"
442 profiles.grafana.com/memory.port_name: "http-metrics"
443 profiles.grafana.com/cpu.scrape: "true"
444 profiles.grafana.com/cpu.port_name: "http-metrics"
445 profiles.grafana.com/goroutine.scrape: "true"
446 profiles.grafana.com/goroutine.port_name: "http-metrics"
450 name: grafana-agent-config-pyroscope
453# -------------------------------------
454# Configuration for `minio` child chart
455# -------------------------------------
459 # Minio requires 2 to 16 drives for erasure code (drivesPerNode * replicas)
460 # https://docs.min.io/docs/minio-erasure-code-quickstart-guide
461 # Since we only have 1 replica, that means 2 drives must be used.
463 rootUser: grafana-pyroscope
464 rootPassword: supersecret
466 - name: grafana-pyroscope-data
479 pathType: ImplementationSpecific
480 # Additional labels to add to the ingress resource
482 # Additional annotations to add to the ingress resource
487 # - secretName: certificate
493 # -- Optional to specify listener's name.
495 # -- Additional labels to add to HTTPRoute resource.
497 # -- Additional annotations to add to HTTPRoute resource.
500 # -- Timeout settings to add to each rule in HTTPRoute resource.
501 # https://gateway-api.sigs.k8s.io/reference/spec/#httproutetimeouts.
504# ServiceMonitor configuration
506 # -- If enabled, ServiceMonitor resources for Prometheus Operator are created
508 # -- Namespace selector for ServiceMonitor resources
509 namespaceSelector: {}
510 # -- Optional expressions to match on
512 # - key: prometheus.io/service-monitor
516 # -- ServiceMonitor annotations
518 # -- Additional ServiceMonitor labels
520 # -- ServiceMonitor scrape interval
522 # -- ServiceMonitor scrape timeout in Go duration format (e.g. 15s)
524 # -- ServiceMonitor relabel configs to apply to samples before scraping
525 # https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
527 # -- ServiceMonitor metric relabel configs to apply to samples before ingestion
528 # https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#endpoint
529 metricRelabelings: []
530 # --ServiceMonitor will add labels from the service to the Prometheus metric
531 # https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitorspec
533 # -- ServiceMonitor will use http by default, but you can pick https as well
535 # -- ServiceMonitor will use these tlsConfig settings to make the health check requests