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/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: 2.0.3-r1@sha256:48d82fe2ff7a485c1063af863472caad03367430402bcde2c13123c438ccbd85
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.
137 # - name: backup-volume
140 extraVolumeMounts: []
142 # mountPath: /var/lib/testing
144 # - name: test-volume
145 # mountPath: /var/tmp/test-volume
146 # existingClaim: test-volume
151 # Override the PodPriorityClass
152 # priorityClassName: high
154 # run specific components separately
156 # -- Allows to override Pyroscope's configuration using structured format.
158 # -- Contains Pyroscope's configuration as a string.
159 # @default -- The config depends on other values been set, details can be found in [`values.yaml`](./values.yaml)
161 {{- if .Values.minio.enabled }}
165 endpoint: "{{ include "pyroscope.fullname" . }}-minio:9000"
166 bucket_name: {{(index .Values.minio.buckets 0).name | quote }}
167 access_key_id: {{ .Values.minio.rootUser | quote }}
168 secret_access_key: {{ .Values.minio.rootPassword | quote }}
171 # -- Allows to add tenant specific overrides to the default limit configuration.
174 # ingestion_rate_mb: 1
175 # ingestion_burst_size_mb: 2
176 # -- Grafana Agent Configuration.
179 # -- (bool) Enable v1 storage layer.
181 # -- (bool) Enable v2 storage layer.
184 # -- (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.
186 # -- (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.
187 segmentWriterWeight: 1.0
188 # -- (string) Specify a time stamp from when the v2 read path should serve traffic. Defaults to "auto" which determines the split point from the metastore.
189 queryBackendFrom: auto
190 # -- This flag is useful for testing, it will overwrite all pods resource statements with its contents
191 overwriteResources: {}
195 # -- Deploy unified write/read services. These endpoints will can be used no matter if the helm chart is configured as single-binary or microservices
196 deployUnifiedServices: false
198 # -- (bool) Enable micro-services deployment mode. This is recommend for larger scale deployment and allow right size each aspect of Pyroscope.
200 # -- (string) Memberlist cluster label that will be used for all members of this cluster
201 clusterLabelSuffix: -micro-services
203 # Not useful to be indivually exposed
215 store-gateway.sharding-ring.replication-factor: "3"
246 terminationGracePeriodSeconds: 600
256 terminationGracePeriodSeconds: 1200
269 # The store-gateway needs not need persistent storage, but we still run it as a StatefulSet
270 # This is to avoid having blocks of data being
279 # The store gateway can be configured to wait on startup for ring stability to be reached before it becomes
280 # ready. See the `store-gateway.sharding-ring.wait-stability-min-duration` server argument for more information.
282 # Depending on this flag and the number of tenants + blocks that need to be synced on startup, pods can take
283 # some time to become ready. This value can be used to ensure Kubernetes waits long enough and reduce errors.
284 initialDelaySeconds: 60
286 store-gateway.sharding-ring.replication-factor: "3"
306 # Not useful to be indivually exposed
338 terminationGracePeriodSeconds: 600
348 terminationGracePeriodSeconds: 1200
360 terminationGracePeriodSeconds: 1200
370 # Expect 3 metastores
371 metastore.raft.bootstrap-expect-peers: 3
372 # enable cleanup of blocks beyond retention
373 metastore.index.cleanup-interval: 1m
374 metastore.snapshot-compact-on-restore: true
402# -------------------------------------
403# Configuration for `alloy` child chart
404# -------------------------------------
411 profiles.grafana.com/memory.scrape: "true"
412 profiles.grafana.com/memory.port_name: "http-metrics"
413 profiles.grafana.com/cpu.scrape: "true"
414 profiles.grafana.com/cpu.port_name: "http-metrics"
415 profiles.grafana.com/goroutine.scrape: "true"
416 profiles.grafana.com/goroutine.port_name: "http-metrics"
417 profiles.grafana.com/service_repository: 'https://github.com/grafana/alloy'
418 profiles.grafana.com/service_git_ref: 'v1.8.1'
420 stabilityLevel: "public-preview" # This needs to be set for some of our resources until verison v1.2 is released
423 name: alloy-config-pyroscope
426# -------------------------------------
427# Configuration for `grafana-agent` child chart
428# -------------------------------------
435 profiles.grafana.com/memory.scrape: "true"
436 profiles.grafana.com/memory.port_name: "http-metrics"
437 profiles.grafana.com/cpu.scrape: "true"
438 profiles.grafana.com/cpu.port_name: "http-metrics"
439 profiles.grafana.com/goroutine.scrape: "true"
440 profiles.grafana.com/goroutine.port_name: "http-metrics"
444 name: grafana-agent-config-pyroscope
447# -------------------------------------
448# Configuration for `minio` child chart
449# -------------------------------------
453 # Minio requires 2 to 16 drives for erasure code (drivesPerNode * replicas)
454 # https://docs.min.io/docs/minio-erasure-code-quickstart-guide
455 # Since we only have 1 replica, that means 2 drives must be used.
457 rootUser: grafana-pyroscope
458 rootPassword: supersecret
460 - name: grafana-pyroscope-data
473 pathType: ImplementationSpecific
474 # Additional labels to add to the ingress resource
476 # Additional annotations to add to the ingress resource
481 # - secretName: certificate
487 # -- Optional to specify listener's name.
489 # -- Additional labels to add to HTTPRoute resource.
491 # -- Additional annotations to add to HTTPRoute resource.
494 # -- Timeout settings to add to each rule in HTTPRoute resource.
495 # https://gateway-api.sigs.k8s.io/reference/spec/#httproutetimeouts.
498# ServiceMonitor configuration
500 # -- If enabled, ServiceMonitor resources for Prometheus Operator are created
502 # -- Namespace selector for ServiceMonitor resources
503 namespaceSelector: {}
504 # -- Optional expressions to match on
506 # - key: prometheus.io/service-monitor
510 # -- ServiceMonitor annotations
512 # -- Additional ServiceMonitor labels
514 # -- ServiceMonitor scrape interval
516 # -- ServiceMonitor scrape timeout in Go duration format (e.g. 15s)
518 # -- ServiceMonitor relabel configs to apply to samples before scraping
519 # https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
521 # -- ServiceMonitor metric relabel configs to apply to samples before ingestion
522 # https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#endpoint
523 metricRelabelings: []
524 # --ServiceMonitor will add labels from the service to the Prometheus metric
525 # https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitorspec
527 # -- ServiceMonitor will use http by default, but you can pick https as well
529 # -- ServiceMonitor will use these tlsConfig settings to make the health check requests
531# -- Array of extra K8s manifests to deploy alongside the chart
534# - apiVersion: autoscaling.k8s.io/v1
535# kind: VerticalPodAutoscaler
537# name: pyroscope-distributor
542# name: '{{ include "pyroscope.fullname" . }}-distributor'