1## Default values.yaml for Telegraf
2## This is a YAML-formatted file.
3## ref: https://hub.docker.com/r/library/telegraf/tags/
7 repo: cgr.dev/scratch-images/test-tmp/telegraf
8 tag: 1.39.3-r7@sha256:ffb707aedd9e0b84d264dd088b28aa2f3e93dbf0903ec5d1e5c573ff6b44dc1b
9 pullPolicy: IfNotPresent
10## Annotations to add to the Deployment object itself.
11## Use podAnnotations below to annotate the pods.
12deploymentAnnotations: {}
16## Configure args passed to Telegraf containers
18# The name of a secret in the same kubernetes namespace which contains values to
19# be added to the environment (must be manually created)
20# This can be useful for auth tokens, etc.
22## Init containers to run before Telegraf starts
23## Useful for waiting on dependencies, preparing configs, or setting permissions
26# - name: wait-for-service
28# command: ['sh', '-c', 'until nc -z myservice 8086; do sleep 1; done']
30# envFromSecret: "telegraf-tokens"
33 value: "telegraf-polling-service"
34# An older "volumeMounts" key was previously added which will likely
35# NOT WORK as you expect. Please use this newer configuration.
38# - name: telegraf-output-influxdb2
40# name: "telegraf-output-influxdb2"
42# - name: telegraf-output-influxdb2
43# mountPath: /etc/telegraf/conf.d
44# subPath: influxdb2.conf
46## Configure resource requests and limits
47## ref: http://kubernetes.io/docs/user-guide/compute-resources/
56## Node labels for pod assignment
57## ref: https://kubernetes.io/docs/user-guide/node-selection/
59## Affinity for pod assignment
60## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
63## Tolerations for pod assignment
64## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
68# operator: "Equal|Exists"
70# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
72## Configure the updateStrategy used to replace Telegraf Pods
73## See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/
75# type: RollingUpdate|Recreate
85 # Specifies whether RBAC resources should be created
87 # Create only for the release namespace or cluster wide (Role vs ClusterRole)
89 # Rules for the created rule
91# When using the prometheus input to scrape all pods you need extra rules set to the ClusterRole to be
92# able to scan the pods for scraping labels. The following rules have been taken from:
93# https://github.com/helm/charts/blob/master/stable/prometheus/templates/server-clusterrole.yaml#L8-L46
124 # Specifies whether a ServiceAccount should be created
126 # The name of the ServiceAccount to use.
127 # If not set and create is true, a name is generated using the fullname template
129 # Annotations for the ServiceAccount
131## Specify priorityClassName
132## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
133# priorityClassName: system-node-critical
135## Exposed telegraf configuration
136## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml`
137## ref: https://docs.influxdata.com/telegraf/v1.1/administration/configuration/
142 metric_batch_size: 1000
143 metric_buffer_limit: 10000
144 collection_jitter: "0s"
145 flush_interval: "10s"
151 hostname: "$HOSTNAME"
165 - "http://influxdb.monitoring.svc:8086"
169 service_address: ":8125"
174 metric_separator: "_"
175 allowed_pending_messages: 10000
176 percentile_limit: 1000
180 service_address: "http://:8888"
184 collect_memstats: false
187# postStart: ["/bin/sh", "-c", "echo Telegraf started"]
188# preStop: ["/bin/sh", "-c", "sleep 60"]
190## Pod disruption budget configuration
193 ## Specifies whether a Pod disruption budget should be created