values.yaml 3.2 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"
Nicolas Steinmetz's avatar
Nicolas Steinmetz committed
9
  tag: "1.14-alpine"
Jack Zampolin's avatar
Jack Zampolin committed
10
  pullPolicy: IfNotPresent
11

12 13
podAnnotations: {}

14 15
imagePullSecrets: []

16 17 18 19
env:
  - name: HOSTNAME
    value: "telegraf-polling-service"

20 21 22 23 24 25 26 27 28 29
## 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

30 31 32 33
## Node labels for pod assignment
## ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}

34
service:
35
  enabled: true
36
  type: ClusterIP
37 38
  annotations: {}

39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
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:

85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
## 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
103 104 105 106 107 108 109 110 111
  processors:
    - enum:
        mapping:
          field: "status"
          dest: "status_code"
          value_mappings:
            healthy: 1
            problem: 2
            critical: 3
112
  outputs:
113 114 115 116 117 118 119
    - health:
        service_address: "http://:8888"
        compares:
          field: buffer_size
          lt: 5000.0
        contains:
          field: buffer_size
120
    - influxdb:
Jack Zampolin's avatar
Jack Zampolin committed
121
        urls:
122 123 124
          - "http://influxdb.monitoring.svc:8086"
        database: "telegraf"
  inputs:
125 126
    - internal:
        collect_memstats: false
127
    - statsd:
Jack Zampolin's avatar
Jack Zampolin committed
128
        service_address: ":8125"
129
        percentiles:
Jack Zampolin's avatar
Jack Zampolin committed
130 131 132 133 134
          - 50
          - 95
          - 99
        metric_separator: "_"
        allowed_pending_messages: 10000
135
        percentile_limit: 1000