blob: 2f8509a4074a13b91d07f60de233fed091a0f634 [file] [log] [blame]
Alex Dehnf6a8d452024-09-26 07:14:30 +00001## Default values.yaml for Telegraf
2## This is a YAML-formatted file.
3## ref: https://hub.docker.com/r/library/telegraf/tags/
4
5replicaCount: 1
6image:
7 repo: "docker.io/library/telegraf"
8 tag: "1.28-alpine"
9 pullPolicy: IfNotPresent
10podAnnotations: {}
11podLabels: {}
12imagePullSecrets: []
13## Configure args passed to Telegraf containers
14args: []
15# The name of a secret in the same kubernetes namespace which contains values to
16# be added to the environment (must be manually created)
17# This can be useful for auth tokens, etc.
18
19# envFromSecret: "telegraf-tokens"
20env:
21 - name: HOSTNAME
22 value: "telegraf-polling-service"
23# An older "volumeMounts" key was previously added which will likely
24# NOT WORK as you expect. Please use this newer configuration.
25
26# volumes:
27# - name: telegraf-output-influxdb2
28# configMap:
29# name: "telegraf-output-influxdb2"
30# mountPoints:
31# - name: telegraf-output-influxdb2
32# mountPath: /etc/telegraf/conf.d
33# subPath: influxdb2.conf
34
35## Configure resource requests and limits
36## ref: http://kubernetes.io/docs/user-guide/compute-resources/
37resources: {}
38# requests:
39# memory: 128Mi
40# cpu: 100m
41# limits:
42# memory: 128Mi
43# cpu: 100m
44
45## Node labels for pod assignment
46## ref: https://kubernetes.io/docs/user-guide/node-selection/
47nodeSelector: {}
48## Affinity for pod assignment
49## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
50##
51affinity: {}
52## Tolerations for pod assignment
53## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
54##
55tolerations: []
56# - key: "key"
57# operator: "Equal|Exists"
58# value: "value"
59# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
60
61service:
62 enabled: true
63 type: ClusterIP
64 annotations: {}
65rbac:
66 # Specifies whether RBAC resources should be created
67 create: true
68 # Create only for the release namespace or cluster wide (Role vs ClusterRole)
69 clusterWide: false
70 # Rules for the created rule
71 rules: []
72# When using the prometheus input to scrape all pods you need extra rules set to the ClusterRole to be
73# able to scan the pods for scraping labels. The following rules have been taken from:
74# https://github.com/helm/charts/blob/master/stable/prometheus/templates/server-clusterrole.yaml#L8-L46
75# - apiGroups:
76# - ""
77# resources:
78# - nodes
79# - nodes/proxy
80# - nodes/metrics
81# - services
82# - endpoints
83# - pods
84# - ingresses
85# - configmaps
86# verbs:
87# - get
88# - list
89# - watch
90# - apiGroups:
91# - "extensions"
92# resources:
93# - ingresses/status
94# - ingresses
95# verbs:
96# - get
97# - list
98# - watch
99# - nonResourceURLs:
100# - "/metrics"
101# verbs:
102# - get
103
104serviceAccount:
105 # Specifies whether a ServiceAccount should be created
106 create: true
107 # The name of the ServiceAccount to use.
108 # If not set and create is true, a name is generated using the fullname template
109 name:
110 # Annotations for the ServiceAccount
111 annotations: {}
112## Exposed telegraf configuration
113## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml`
114## ref: https://docs.influxdata.com/telegraf/v1.1/administration/configuration/
115config:
116 agent:
117 interval: "10s"
118 round_interval: true
119 metric_batch_size: 1000
120 metric_buffer_limit: 10000
121 collection_jitter: "0s"
122 flush_interval: "10s"
123 flush_jitter: "0s"
124 precision: ""
125 debug: false
126 quiet: false
127 logfile: ""
128 hostname: "$HOSTNAME"
129 omit_hostname: false
130 processors:
131 - enum:
132 mapping:
133 field: "status"
134 dest: "status_code"
135 value_mappings:
136 healthy: 1
137 problem: 2
138 critical: 3
139 outputs:
140 - influxdb:
141 urls:
142 - "http://influxdb.monitoring.svc:8086"
143 database: "telegraf"
144 inputs:
145 - statsd:
146 service_address: ":8125"
147 percentiles:
148 - 50
149 - 95
150 - 99
151 metric_separator: "_"
152 allowed_pending_messages: 10000
153 percentile_limit: 1000
154metrics:
155 health:
156 enabled: false
157 service_address: "http://:8888"
158 threshold: 5000.0
159 internal:
160 enabled: true
161 collect_memstats: false
162# Lifecycle hooks
163# hooks:
164# postStart: ["/bin/sh", "-c", "echo Telegraf started"]
165# preStop: ["/bin/sh", "-c", "sleep 60"]
166
167## Pod disruption budget configuration
168##
169pdb:
170 ## Specifies whether a Pod disruption budget should be created
171 ##
172 create: true
173 minAvailable: 1
174 # maxUnavailable: 1