Alex Dehn | f6a8d45 | 2024-09-26 07:14:30 +0000 | [diff] [blame^] | 1 | ## Default values.yaml for Telegraf |
| 2 | ## This is a YAML-formatted file. |
| 3 | ## ref: https://hub.docker.com/r/library/telegraf/tags/ |
| 4 | |
| 5 | replicaCount: 1 |
| 6 | image: |
| 7 | repo: "docker.io/library/telegraf" |
| 8 | tag: "1.28-alpine" |
| 9 | pullPolicy: IfNotPresent |
| 10 | podAnnotations: {} |
| 11 | podLabels: {} |
| 12 | imagePullSecrets: [] |
| 13 | ## Configure args passed to Telegraf containers |
| 14 | args: [] |
| 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" |
| 20 | env: |
| 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/ |
| 37 | resources: {} |
| 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/ |
| 47 | nodeSelector: {} |
| 48 | ## Affinity for pod assignment |
| 49 | ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity |
| 50 | ## |
| 51 | affinity: {} |
| 52 | ## Tolerations for pod assignment |
| 53 | ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ |
| 54 | ## |
| 55 | tolerations: [] |
| 56 | # - key: "key" |
| 57 | # operator: "Equal|Exists" |
| 58 | # value: "value" |
| 59 | # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)" |
| 60 | |
| 61 | service: |
| 62 | enabled: true |
| 63 | type: ClusterIP |
| 64 | annotations: {} |
| 65 | rbac: |
| 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 | |
| 104 | serviceAccount: |
| 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/ |
| 115 | config: |
| 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 |
| 154 | metrics: |
| 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 | ## |
| 169 | pdb: |
| 170 | ## Specifies whether a Pod disruption budget should be created |
| 171 | ## |
| 172 | create: true |
| 173 | minAvailable: 1 |
| 174 | # maxUnavailable: 1 |