1# Default values for opentelemetry-collector.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
7# Valid values are "daemonset", "deployment", and "statefulset".
9# Override the default apiVersion for custom controllers or for testing new API versions.
11# Specify which namespace should be used to deploy the resources into
13# Handles basic configuration of components that
14# also require k8s modifications to work correctly.
15# .Values.config can be used to modify/add to a preset
16# component configuration, but CANNOT be used to remove
17# preset configuration. If you require removal of any
18# sections of a preset configuration, you cannot use
19# the preset. Instead, configure the component manually in
20# .Values.config and use the other fields supplied in the
21# values.yaml to configure k8s as necessary.
23 # Configures the collector to collect logs.
24 # Adds the filelog receiver to the logs pipeline
25 # and adds the necessary volumes and volume mounts.
26 # Best used with mode = daemonset.
27 # See https://opentelemetry.io/docs/kubernetes/collector/components/#filelog-receiver for details on the receiver.
30 includeCollectorLogs: false
31 # Enabling this writes checkpoints in /var/lib/otelcol/ host directory.
32 # Note this changes collector's user to root, so that it can write to host directory.
33 storeCheckpoints: false
34 # The maximum bytes size of the recombined field.
35 # Once the size exceeds the limit, all received entries of the source will be combined and flushed.
36 maxRecombineLogSize: 102400
37 # Configures the collector to collect host metrics.
38 # Adds the hostmetrics receiver to the metrics pipeline
39 # and adds the necessary volumes and volume mounts.
40 # Best used with mode = daemonset.
41 # See https://opentelemetry.io/docs/kubernetes/collector/components/#host-metrics-receiver for details on the receiver.
44 # Configures the Kubernetes Processor to add Kubernetes metadata.
45 # Adds the k8sattributes processor to all the pipelines
46 # and adds a preset of minimum required RBAC rules to ClusterRole.
47 # Best used with mode = daemonset.
48 # See https://opentelemetry.io/docs/kubernetes/collector/components/#kubernetes-attributes-processor for details on the receiver.
51 # When enabled the processor will extract all labels for an associated pod and add them as resource attributes.
52 # The label's exact name will be the key.
53 extractAllPodLabels: false
54 # When enabled the processor will extract all annotations for an associated pod and add them as resource attributes.
55 # The annotation's exact name will be the key.
56 extractAllPodAnnotations: false
57 # Configures the collector to collect node, pod, and container metrics from the API server on a kubelet.
58 # Adds the kubeletstats receiver to the metrics pipeline
59 # and adds the necessary rules to ClusterRole.
60 # Best used with mode = daemonset.
61 # See https://opentelemetry.io/docs/kubernetes/collector/components/#kubeletstats-receiver for details on the receiver.
64 # Configures the collector to collect kubernetes events.
65 # Adds the k8sobjects receiver to the logs pipeline
66 # and collects kubernetes events by default.
67 # Best used with mode = deployment or statefulset.
68 # See https://opentelemetry.io/docs/kubernetes/collector/components/#kubernetes-objects-receiver for details on the receiver.
71 # Collects Kubernetes objects via the k8sobjects receiver in pull mode (default interval: 1h).
72 # Can be used with mode = deployment, statefulset, or daemonset.
73 # Compatible with kubernetesEvents preset. Extra resources can be added via
74 # config.receivers.k8sobjects.objects (ClusterRole rules must be added manually via clusterRole.rules).
77 # When enabled with mode = daemonset, leader election is setup to prevent telemetry duplication.
78 # disableLeaderElection: false
79 # When enabled, watch mode is added alongside pull to stream real-time changes.
81 # Core Kubernetes workload resources: pods, nodes, namespaces, services, serviceaccounts, deployments, replicasets, daemonsets, statefulsets, jobs, cronjobs
84 # RBAC resources: roles, rolebindings, clusterroles, clusterrolebindings
87 # Storage resources: storageclasses, persistentvolumes, persistentvolumeclaims
90 # Networking resources: ingresses, networkpolicies
93 # Autoscaling resources: horizontalpodautoscalers
96 # VPA resources: verticalpodautoscalers (requires VPA CRD to be installed)
99 # Policy resources: poddisruptionbudgets
102 # API extensions resources: customresourcedefinitions
105 # Configures the Kubernetes Cluster Receiver to collect cluster-level metrics.
106 # Adds the k8s_cluster receiver to the metrics pipeline
107 # and adds the necessary rules to ClusterRole.
108 # Can be used with mode = deployment, statefulset, or daemonset.
109 # When used as a daemonset, a leader election is setup to prevent duplication
110 # See https://opentelemetry.io/docs/kubernetes/collector/components/#kubernetes-cluster-receiver for details on the receiver.
113 # When enabled with mode = daemonset, leader election is setup to prevent telemetry duplication.
114 # disableLeaderElection: false
115 # Configures the collector to collect logs and metrics from pods with specific annotations.
116 # This preset can not be used together with the `logsCollection` preset.
117 # Adds the receiver_creator receiver to the logs and metrics pipelines
118 # and adds the necessary rules to ClusterRole.
119 # Best used with mode = daemonset.
120 # See https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/receivercreator/README.md#generate-receiver-configurations-from-provided-hints for details on the receiver.
126 # Configures the collector to collect profiling data.
127 # Adds profiles pipeline with the profiling receiver,
128 # and adds the necessary volumes, security context and host PID access.
130 # Warning: The profiling receiver requires privileged access and hostPID,
131 # so it should be used with a dedicated collector distribution (e.g. otelcol-ebpf-profiler)
132 # rather than the general-purpose k8s distribution. This avoids granting elevated privileges
133 # to the same collector that handles metrics, traces, and logs.
134 # See https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-ebpf-profiler for more details.
137 # Configures the collector to detect resource attributes using the resourcedetection processor.
138 # Adds the resourcedetection/env processor to all pipelines.
139 # Each detector can be enabled individually. Base detectors 'env' and 'k8snode' are always included when any detector is enabled.
140 # Typically used to resolve the 'k8s.cluster.name' resource attribute.
141 # See https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourcedetectionprocessor for details.
155 # Specifies whether a configMap should be created (true by default)
157 # Specifies an existing ConfigMap to be mounted to the pod
158 # The ConfigMap MUST include the collector configuration via a key named 'relay' or the collector will not start.
159 # This also supports template content, which will eventually be converted to yaml.
161 # Specifies the relative path to custom ConfigMap template file. This option SHOULD be used when bundling a custom
162 # ConfigMap template, as it enables pod restart via a template checksum annotation.
164# When enabled, the chart will configure the collector to emit its traces, metrics, and logs over http via the OTLP using the Otel Go SDK.
165# If internalTelemetryViaOTLP.metrics.enabled the chart will remove the default prometheus receiver (which was configured to scrape the Collector's metrics)
166# and the service.telemetry.metrics.address value.
167# Learn more about the Collector telemetry at https://opentelemetry.io/docs/collector/internal-telemetry/.
169# THIS OPTION IS EXPERIMENTAL AND SUBJECT TO BREAKING CHANGES
170internalTelemetryViaOTLP:
171 # The endpoint where the telemetry will be exported
173 # Optional headers to configure the exporters
175 # - name: "x-dest-auth"
176 # value: "some auth key"
179 # overrides internalTelemetryViaOTLP.endpoint for traces
181 # overrides internalTelemetryViaOTLP.headers for traces
185 # overrides internalTelemetryViaOTLP.endpoint for metrics
187 # overrides internalTelemetryViaOTLP.headers for metrics
191 # overrides internalTelemetryViaOTLP.endpoint for logs
193 # overrides internalTelemetryViaOTLP.headers for logs
195# Base collector configuration.
196# Supports templating. To escape existing instances of {{ }}, use {{` <original content> `}}.
197# For example, {{ REDACTED_EMAIL }} becomes {{` {{ REDACTED_EMAIL }} `}}.
202 # The health_check extension is mandatory for this chart.
203 # Without the health_check extension the collector will fail the readiness and liveness probes.
204 # The health_check extension can be modified, but should never be removed.
206 endpoint: ${env:MY_POD_IP}:13133
209 # Default memory limiter configuration for the collector based on k8s resource limits.
211 # check_interval is the time between measurements of memory usage.
213 # By default limit_mib is set to 80% of ".Values.resources.limits.memory"
215 # By default spike_limit_mib is set to 25% of ".Values.resources.limits.memory"
216 spike_limit_percentage: 25
221 endpoint: ${env:MY_POD_IP}:14250
223 endpoint: ${env:MY_POD_IP}:14268
225 endpoint: ${env:MY_POD_IP}:6831
229 endpoint: ${env:MY_POD_IP}:4317
231 endpoint: ${env:MY_POD_IP}:4318
232 # if internalTelemetryViaOTLP.metrics.enabled = true, prometheus receiver will be removed
236 - job_name: opentelemetry-collector
240 - ${env:MY_POD_IP}:8888
242 endpoint: ${env:MY_POD_IP}:9411
246 k8s.namespace.name: "${env:OTEL_K8S_NAMESPACE}"
247 k8s.node.name: "${env:OTEL_K8S_NODE_NAME}"
248 k8s.node.ip: "${env:OTEL_K8S_NODE_IP}"
249 k8s.pod.name: "${env:OTEL_K8S_POD_NAME}"
250 k8s.pod.ip: "${env:OTEL_K8S_POD_IP}"
251 host.name: "${env:OTEL_K8S_NODE_NAME}"
257 host: ${env:MY_POD_IP}
278 # if internalTelemetryViaOTLP.metrics.enabled = true, prometheus receiver will be removed
290# Helm currently has an issue (https://github.com/helm/helm/pull/12879) when using null to remove
291# default configuration from a subchart. The result is that you cannot remove default configuration
292# from `config`, such as a specific receiver or a specific pipeline, when the chart is used as a
295# Until the helm bug is fixed, this field is provided as an alternative when using this chart as a subchart.
296# It is not recommended to use this field when installing the chart directly.
298# When not empty, `alternateConfig` will be used to set the collector's configuration. It has NO default
299# values and IS NOT MERGED with config. Any configuration provided via `config` will be ignored when
300# `alternateConfig` is set. You MUST provide your own collector configuration.
302# Reminder that the healthcheck extension (or something else that provides the same functionality) is required.
304# Components configured by presets will be injected in the same way they are for `config`.
307 # If you want to use the core image `otel/opentelemetry-collector`, you also need to change `command.name` value to `otelcol`.
308 repository: cgr.dev/scratch-images/test-tmp/opentelemetry-collector-contrib
309 pullPolicy: IfNotPresent
310 # Overrides the image tag whose default is the chart appVersion.
312 # When digest is set to a non-empty value, images will be pulled by digest (regardless of tag value).
313 digest: sha256:88d2fa7dd7f1359888635331b37b6c3a9b002f3ee2735452131bb231c505c209
315# OpenTelemetry Collector executable
320 # Specifies whether a service account should be created
322 # Annotations to add to the service account
324 # The name of the service account to use.
325 # If not set and create is true, a name is generated using the fullname template
327 # Automatically mount a ServiceAccount's API credentials?
328 automountServiceAccountToken: true
330 # Specifies whether a clusterRole should be created
331 # Some presets also trigger the creation of a cluster role and cluster role binding.
332 # If using one of those presets, this field is no-op.
334 # Annotations to add to the clusterRole
335 # Can be used in combination with presets that create a cluster role.
337 # The name of the clusterRole to use.
338 # If not set a name is generated using the fullname template
339 # Can be used in combination with presets that create a cluster role.
341 # A set of rules as documented here : https://kubernetes.io/docs/reference/access-authn-authz/rbac/
342 # Can be used in combination with presets that create a cluster role to add additional rules.
355 # Annotations to add to the clusterRoleBinding
356 # Can be used in combination with presets that create a cluster role binding.
358 # The name of the clusterRoleBinding to use.
359 # If not set a name is generated using the fullname template
360 # Can be used in combination with presets that create a cluster role binding.
362podSecurityContext: {}
367topologySpreadConstraints: []
368# Allows for pod scheduler prioritisation
370# Allows for pod to use a specific runtime class, e.g. gvisor, kata-containers
371# Also useful for the pod security admissions plugins that rely on runtimeClassName
373terminationGracePeriodSeconds: 30
376# This also supports template content, which will eventually be converted to yaml.
378# This also supports template content, which will eventually be converted to yaml.
380# This also supports template content, which will eventually be converted to yaml.
382# Configuration for ports
383# nodePort is also allowed
424 # The metrics port is disabled by default. However you need to enable the port
425 # in order to use the ServiceMonitor (serviceMonitor.enabled) or PodMonitor (podMonitor.enabled).
430# When enabled, the chart will set the GOMEMLIMIT env var to 80% of the configured resources.limits.memory.
431# If no resources.limits.memory are defined then enabling does nothing.
432# It is HIGHLY recommend to enable this setting and set a value for resources.limits.memory.
434# Container resize policy for in-place resource resize (Kubernetes >= 1.27).
435# https://kubernetes.io/docs/concepts/workloads/autoscaling/#in-place-resizing
439# restartPolicy: NotRequired
440# - resourceName: memory
441# restartPolicy: RestartContainer
443# Resource limits & requests.
444# It is HIGHLY recommended to set resource limits.
451enableConfigChecksumAnnotation: true
454# Common labels to add to all otel-collector resources. Evaluated as a template.
456# app.kubernetes.io/part-of: my-app
458# Host networking requested for this pod. Use the host's network namespace.
460# Enable sharing the host's PID namespace with the pod.
461# WARNING: This grants visibility into all host processes and should only be enabled when required.
463# Adding entries to Pod /etc/hosts with HostAliases
464# https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/
470# Pod DNS policy ClusterFirst, ClusterFirstWithHostNet, None, Default, None
472# Custom DNS config. Required when DNS policy is None.
474# Custom kube scheduler name.
476# only used with deployment mode
478revisionHistoryLimit: 10
480# List of extra sidecars to add.
481# This also supports template content, which will eventually be converted to yaml.
490# image: busybox:latest
495# List of init container specs, e.g. for copying a binary to be executed as a lifecycle hook.
496# This also supports template content, which will eventually be converted to yaml.
497# Another usage of init containers is e.g. initializing filesystem permissions to the OTLP Collector user `10001` in case you are using persistence and the volume is producing a permission denied error for the OTLP Collector container.
501# image: busybox:latest
511# image: busybox:latest
515# - 'chown -R 10001: /var/lib/storage/otc' # use the path given as per `extensions.file_storage.directory` & `extraVolumeMounts[x].mountPath`
517# - name: opentelemetry-collector-data # use the name of the volume used for persistence
518# mountPath: /var/lib/storage/otc # use the path given as per `extensions.file_storage.directory` & `extraVolumeMounts[x].mountPath`
520# Pod lifecycle policies.
529# liveness probe configuration
530# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
533 # Number of seconds after the container has started before startup, liveness or readiness probes are initiated.
534 # initialDelaySeconds: 1
535 # How often in seconds to perform the probe.
537 # Number of seconds after which the probe times out.
539 # Minimum consecutive failures for the probe to be considered failed after having succeeded.
540 # failureThreshold: 1
541 # Duration in seconds the pod needs to terminate gracefully upon probe failure.
542 # terminationGracePeriodSeconds: 10
546# readiness probe configuration
547# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
550 # Number of seconds after the container has started before startup, liveness or readiness probes are initiated.
551 # initialDelaySeconds: 1
552 # How often (in seconds) to perform the probe.
554 # Number of seconds after which the probe times out.
556 # Minimum consecutive successes for the probe to be considered successful after having failed.
557 # successThreshold: 1
558 # Minimum consecutive failures for the probe to be considered failed after having succeeded.
559 # failureThreshold: 1
563# startup probe configuration
564# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
567# Number of seconds after the container has started before startup probes are initiated.
568# initialDelaySeconds: 1
569# How often in seconds to perform the probe.
571# Number of seconds after which the probe times out.
573# Minimum consecutive failures for the probe to be considered failed after having succeeded.
575# Duration in seconds the pod needs to terminate gracefully upon probe failure.
576# terminationGracePeriodSeconds: 10
582 # Enable the creation of a Service.
583 # By default, it's enabled on mode != daemonset.
584 # However, to enable it on mode = daemonset, its creation must be explicitly enabled
587 # Supported values: PreferClose (deprecated in K8s 1.33+), PreferSameZone, PreferSameNode
588 # trafficDistribution: PreferClose
590 # loadBalancerIP: 1.2.3.4
591 # loadBalancerSourceRanges: []
593 # By default, Service of type 'LoadBalancer' will be created setting 'externalTrafficPolicy: Cluster'
594 # unless other value is explicitly set.
595 # Possible values are Cluster or Local (https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip)
596 # externalTrafficPolicy: Cluster
598 # By default, Service will be created setting 'internalTrafficPolicy: Local' on mode = daemonset
599 # unless other value is explicitly set.
600 # Setting 'internalTrafficPolicy: Cluster' on a daemonset is not recommended
601 # internalTrafficPolicy: Cluster
605 # ingressClassName: nginx
607 # - host: collector.example.com
613 # - secretName: collector-tls
615 # - collector.example.com
617 # Additional ingresses - only created if ingress.enabled is true
618 # Useful for when differently annotated ingress services are required
619 # Each additional ingress needs key "name" set to something unique
620 additionalIngresses: []
622 # ingressClassName: nginx
625 # - host: collector.example.com
631 # - secretName: collector-tls
633 # - collector.example.com
635 # The pod monitor by default scrapes the metrics port.
636 # The metrics port needs to be enabled as well.
641 # additional labels for the PodMonitor
643 # release: kube-prometheus-stack
645 # The service monitor by default scrapes the metrics port.
646 # The metrics port needs to be enabled as well.
651 # additional labels for the ServiceMonitor
653 # release: kube-prometheus-stack
654 # Used to set relabeling and metricRelabeling configs on the ServiceMonitor
655 # https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
657 metricRelabelings: []
658 # Sets a sample limit on the ServiceMonitor
660# PodDisruptionBudget is used only if mode is "deployment" or "statefulset"
666# autoscaling is used only if mode is "deployment" or "statefulset"
672 targetCPUUtilizationPercentage: 80
673 # targetMemoryUtilizationPercentage: 80
674 # Supply an array of custom metrics to be used for autoscaling. It includes externalMetrics, objectMetrics, and podsMetrics.
675 additionalMetrics: []
678 # When 'mode: daemonset', maxSurge cannot be used when hostPort is set for any of the ports
681 strategy: RollingUpdate
685 # Create default rules for monitoring the collector
688 ## Additional labels for PrometheusRule alerts
689 additionalRuleLabels: {}
690 ## Additional annotations for PrometheusRule alerts
691 additionalRuleAnnotations: {}
692 # additional labels for the PrometheusRule
695 # volumeClaimTemplates for a statefulset
696 volumeClaimTemplates: []
697 podManagementPolicy: "Parallel"
698 # Controls if and how PVCs created by the StatefulSet are deleted. Available in Kubernetes 1.23+.
699 persistentVolumeClaimRetentionPolicy:
705 # Annotations to add to the NetworkPolicy
707 # Configure the 'from' clause of the NetworkPolicy.
708 # By default this will restrict traffic to ports enabled for the Collector. If
709 # you wish to further restrict traffic to other hosts or specific namespaces,
710 # see the standard NetworkPolicy 'spec.ingress.from' definition for more info:
711 # https://kubernetes.io/docs/reference/kubernetes-api/policy-resources/network-policy-v1/
713 # # Allow traffic from any pod in any namespace, but not external hosts
714 # - namespaceSelector: {}
715 # # Allow external access from a specific cidr block
717 # cidr: 192.168.1.64/32
718 # # Allow access from pods in specific namespaces
719 # - namespaceSelector:
721 # - key: kubernetes.io/metadata.name
727 # Add additional ingress rules to specific ports
728 # Useful to allow external hosts/services to access specific ports
729 # An example is allowing an external prometheus server to scrape metrics
731 # See the standard NetworkPolicy 'spec.ingress' definition for more info:
732 # https://kubernetes.io/docs/reference/kubernetes-api/policy-resources/network-policy-v1/
733 extraIngressRules: []
739 # cidr: 192.168.1.64/32
741 # Restrict egress traffic from the OpenTelemetry collector pod
742 # See the standard NetworkPolicy 'spec.egress' definition for more info:
743 # https://kubernetes.io/docs/reference/kubernetes-api/policy-resources/network-policy-v1/
746 # - namespaceSelector: {}
748 # cidr: 192.168.10.10/24
752# Allow containers to share processes across pod namespace
753shareProcessNamespace: false