values.yaml 3.98 KB
Newer Older
Jack Zampolin's avatar
Jack Zampolin committed
1 2 3
## Default values.yaml for Telegraf
## This is a YAML-formatted file.
## ref: https://hub.docker.com/r/library/telegraf/tags/
4 5 6

replicaCount: 1

Jack Zampolin's avatar
Jack Zampolin committed
7 8
image:
  repo: "telegraf"
9
  tag: "1.15-alpine"
Jack Zampolin's avatar
Jack Zampolin committed
10
  pullPolicy: IfNotPresent
11

12 13
podAnnotations: {}

14 15
podLabels: {}

16 17
imagePullSecrets: []

18 19 20
## Configure args passed to Telegraf containers
args: []

21 22 23 24
env:
  - name: HOSTNAME
    value: "telegraf-polling-service"

25 26 27 28 29 30 31 32 33 34 35 36 37
# An older "volumeMounts" key was previously added which will likely
# NOT WORK as you expect. Please use this newer configuration.

# volumes:
# - name: telegraf-output-influxdb2
#   configMap:
#     name: "telegraf-output-influxdb2"
# mountPoints:
# - name: telegraf-output-influxdb2
#   mountPath: /etc/telegraf/conf.d
#   subPath: influxdb2.conf


38 39 40 41 42 43 44 45 46 47
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
resources: {}
  # requests:
  #   memory: 128Mi
  #   cpu: 100m
  # limits:
  #   memory: 128Mi
  #   cpu: 100m

48 49 50 51
## Node labels for pod assignment
## ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}

52 53 54 55 56 57 58 59 60 61 62 63 64 65
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}

## Tolerations for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
# - key: "key"
#   operator: "Equal|Exists"
#   value: "value"
#   effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"

66
service:
67
  enabled: true
68
  type: ClusterIP
69 70
  annotations: {}

71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
rbac:
  # Specifies whether RBAC resources should be created
  create: true
  # Create only for the release namespace or cluster wide (Role vs ClusterRole)
  clusterWide: false
  # Rules for the created rule
  rules: []
# When using the prometheus input to scrape all pods you need extra rules set to the ClusterRole to be
# able to scan the pods for scraping labels. The following rules have been taken from:
# https://github.com/helm/charts/blob/master/stable/prometheus/templates/server-clusterrole.yaml#L8-L46
#    - apiGroups:
#        - ""
#      resources:
#        - nodes
#        - nodes/proxy
#        - nodes/metrics
#        - services
#        - endpoints
#        - pods
#        - ingresses
#        - configmaps
#      verbs:
#        - get
#        - list
#        - watch
#    - apiGroups:
#        - "extensions"
#      resources:
#        - ingresses/status
#        - ingresses
#      verbs:
#        - get
#        - list
#        - watch
#    - nonResourceURLs:
#        - "/metrics"
#      verbs:
#        - get

serviceAccount:
  # Specifies whether a ServiceAccount should be created
  create: true
  # The name of the ServiceAccount to use.
  # If not set and create is true, a name is generated using the fullname template
  name:
116 117
  # Annotations for the ServiceAccount
  annotations: {}
118

119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
## Exposed telegraf configuration
## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml`
## ref: https://docs.influxdata.com/telegraf/v1.1/administration/configuration/
config:
  agent:
    interval: "10s"
    round_interval: true
    metric_batch_size: 1000
    metric_buffer_limit: 10000
    collection_jitter: "0s"
    flush_interval: "10s"
    flush_jitter: "0s"
    precision: ""
    debug: false
    quiet: false
    logfile: ""
    hostname: "$HOSTNAME"
    omit_hostname: false
137 138 139 140 141 142 143 144 145
  processors:
    - enum:
        mapping:
          field: "status"
          dest: "status_code"
          value_mappings:
            healthy: 1
            problem: 2
            critical: 3
146 147
  outputs:
    - influxdb:
Jack Zampolin's avatar
Jack Zampolin committed
148
        urls:
149 150 151 152
          - "http://influxdb.monitoring.svc:8086"
        database: "telegraf"
  inputs:
    - statsd:
Jack Zampolin's avatar
Jack Zampolin committed
153
        service_address: ":8125"
154
        percentiles:
Jack Zampolin's avatar
Jack Zampolin committed
155 156 157 158 159
          - 50
          - 95
          - 99
        metric_separator: "_"
        allowed_pending_messages: 10000
160
        percentile_limit: 1000
161 162 163 164

# Lifecycle hooks
# hooks:
#   postStart: ["/bin/sh", "-c", "echo Telegraf started"]
165
#   preStop: ["/bin/sh", "-c", "sleep 60"]