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: cgr.dev/chainguard-private/grafana-pyroscope
16 pullPolicy: IfNotPresent
17 # Allows to override the image tag, which defaults to the appVersion in the chart metadata
18 tag: 1.19@sha256:4a8b20979b345d757d527b79203ca0152aada0d4cf0cfc120faf7b9327aa38be
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 # Specifies whether a service account should be created
44 # Annotations to add to the service account
46 # The name of the service account to use.
47 # If not set and create is true, a name is generated using the fullname template
50 # Scrapes itself see https://grafana.com/docs/pyroscope/latest/deploy-kubernetes/helm/#optional-scrape-your-own-workloads-profiles
51 profiles.grafana.com/memory.scrape: "true"
52 profiles.grafana.com/memory.port_name: http2
53 profiles.grafana.com/cpu.scrape: "true"
54 profiles.grafana.com/cpu.port_name: http2
55 profiles.grafana.com/goroutine.scrape: "true"
56 profiles.grafana.com/goroutine.port_name: http2
57 # profiles.grafana.com/block.scrape: "true"
58 # profiles.grafana.com/mutex.scrape: "true"
70 # readOnlyRootFilesystem: true
80 headlessAnnotations: {}
91 # We usually recommend not to specify default resources and to leave this as a conscious
92 # choice for the user. This also increases chances charts run on environments with little
93 # resources, such as Minikube. If you do want to specify resources, uncomment the following
94 # lines, adjust them as necessary, and remove the curly braces after 'resources'.
96 # Note that if memory consumption is higher than you would like, you can decrease the interval
97 # that profiles are written into blocks by setting `pyroscopedb.max-block-duration` in the `extraArgs`
98 # stanza. By default, it is set to 3h - override it, for example, as below:
101 # pyroscopedb.max-block-duration: 30m
112 # -- Topology Spread Constraints
113 topologySpreadConstraints: []
114 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
115 ## If you set enabled as "True", you need :
116 ## - create a pv which above 10Gi and has same namespace with pyroscope
117 ## - keep storageClassName same with below setting
126 # app.kubernetes.io/name: pyroscope
131 # subPath to use of the data volume for the metastore persistence.
135 # subPath to use of the data volume for the shared storage used as bucket replacement.
138 # - name: backup-volume
141 extraVolumeMounts: []
143 # mountPath: /var/lib/testing
145 # - name: test-volume
146 # mountPath: /var/tmp/test-volume
147 # existingClaim: test-volume
152 # Override the PodPriorityClass
153 # priorityClassName: high
155 # run specific components separately
157 # -- Allows to override Pyroscope's configuration using structured format.
159 # -- Contains Pyroscope's configuration as a string.
160 # @default -- The config depends on other values been set, details can be found in [`values.yaml`](./values.yaml)
162 {{- if .Values.minio.enabled }}
166 endpoint: "{{ include "pyroscope.fullname" . }}-minio:9000"
167 bucket_name: {{(index .Values.minio.buckets 0).name | quote }}
168 access_key_id: {{ .Values.minio.rootUser | quote }}
169 secret_access_key: {{ .Values.minio.rootPassword | quote }}
172 # -- Allows to add tenant specific overrides to the default limit configuration.
175 # ingestion_rate_mb: 1
176 # ingestion_burst_size_mb: 2
177 # -- Grafana Agent Configuration.
180 # -- (bool) Enable v1 storage layer.
182 # -- (bool) Enable v2 storage layer.
185 # -- (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.
187 # -- (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.
188 segmentWriterWeight: 1.0
189 # -- (bool) Specify a time stamp from when the v2 read path should serve traffic.
191 # -- (string) Specify a time stamp from when the v2 read path should serve traffic.
192 queryBackendFrom: auto
193 # -- This flag is useful for testing, it will overwrite all pods resource statements with its contents
194 overwriteResources: {}
198 # -- Deploy unified write/read services. These endpoints will can be used no matter if the helm chart is configured as single-binary or microservices
199 deployUnifiedServices: false
201 # -- (bool) Enable micro-services deployment mode. This is recommend for larger scale deployment and allow right size each aspect of Pyroscope.
203 # -- (string) Memberlist cluster label that will be used for all members of this cluster
204 clusterLabelSuffix: -micro-services
206 # Not useful to be indivually exposed
218 store-gateway.sharding-ring.replication-factor: "3"
249 terminationGracePeriodSeconds: 600
259 terminationGracePeriodSeconds: 1200
272 # The store-gateway needs not need persistent storage, but we still run it as a StatefulSet
273 # This is to avoid having blocks of data being
282 # The store gateway can be configured to wait on startup for ring stability to be reached before it becomes
283 # ready. See the `store-gateway.sharding-ring.wait-stability-min-duration` server argument for more information.
285 # Depending on this flag and the number of tenants + blocks that need to be synced on startup, pods can take
286 # some time to become ready. This value can be used to ensure Kubernetes waits long enough and reduce errors.
287 initialDelaySeconds: 60
289 store-gateway.sharding-ring.replication-factor: "3"
309 # Not useful to be indivually exposed
341 terminationGracePeriodSeconds: 600
351 terminationGracePeriodSeconds: 1200
363 terminationGracePeriodSeconds: 1200
373 # Expect 3 metastores
374 metastore.raft.bootstrap-expect-peers: 3
375 # TODO(kolesnikovae): Update defaults.
376 adaptive-placement.max-dataset-shards: 1024
377 adaptive-placement.unit-size-bytes: 131072
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
488# ServiceMonitor configuration
490 # -- If enabled, ServiceMonitor resources for Prometheus Operator are created
492 # -- Namespace selector for ServiceMonitor resources
493 namespaceSelector: {}
494 # -- Optional expressions to match on
496 # - key: prometheus.io/service-monitor
500 # -- ServiceMonitor annotations
502 # -- Additional ServiceMonitor labels
504 # -- ServiceMonitor scrape interval
506 # -- ServiceMonitor scrape timeout in Go duration format (e.g. 15s)
508 # -- ServiceMonitor relabel configs to apply to samples before scraping
509 # https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
511 # -- ServiceMonitor metric relabel configs to apply to samples before ingestion
512 # https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#endpoint
513 metricRelabelings: []
514 # --ServiceMonitor will add labels from the service to the Prometheus metric
515 # https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitorspec
517 # -- ServiceMonitor will use http by default, but you can pick https as well
519 # -- ServiceMonitor will use these tlsConfig settings to make the health check requests