117 lines
2.7 KiB
YAML
117 lines
2.7 KiB
YAML
## Default values.yaml for Telegraf
|
|
## This is a YAML-formatted file.
|
|
## ref: https://hub.docker.com/r/library/telegraf/tags/
|
|
|
|
replicaCount: 1
|
|
|
|
image:
|
|
repo: "telegraf"
|
|
tag: "1.23"
|
|
pullPolicy: IfNotPresent
|
|
|
|
podAnnotations: {}
|
|
|
|
podLabels: {}
|
|
|
|
imagePullSecrets: []
|
|
|
|
## Configure args passed to Telegraf containers
|
|
args: []
|
|
|
|
|
|
# The name of a secret in the same kubernetes namespace which contains values to
|
|
# be added to the environment (must be manually created)
|
|
# This can be useful for auth tokens, etc.
|
|
|
|
# envFromSecret: "telegraf-tokens"
|
|
|
|
|
|
env:
|
|
- name: HOSTNAME
|
|
value: "telegraf-polling-service"
|
|
|
|
|
|
|
|
## 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
|
|
|
|
## Node labels for pod assignment
|
|
## ref: https://kubernetes.io/docs/user-guide/node-selection/
|
|
nodeSelector: {}
|
|
|
|
## Affinity for pod assignment
|
|
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
|
##
|
|
affinity: # launch on same node as nginx controller so that log file is readable
|
|
podAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: app.kubernetes.io/instance
|
|
operator: In
|
|
values:
|
|
- ingress-nginx
|
|
|
|
|
|
## 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)"
|
|
|
|
service:
|
|
enabled: false
|
|
type: ClusterIP
|
|
annotations: {}
|
|
|
|
|
|
|
|
## 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
|
|
processors:
|
|
- enum:
|
|
mapping:
|
|
field: "status"
|
|
dest: "status_code"
|
|
value_mappings:
|
|
healthy: 1
|
|
problem: 2
|
|
critical: 3
|
|
outputs:
|
|
- influxdb_v2:
|
|
urls:
|
|
- "http://influxdb-influxdb2.monitoring:80"
|
|
token: N_jNm1hZTfyhJneTJj2G357mQ7EJdNzdvebjSJX6JkbyaXNup_IAqeYowblMgV8EjLypNvauTl27ewJvI_rbqQ==
|
|
organization: "influxdata"
|
|
bucket: "kluster"
|
|
inputs:
|
|
- prometheus:
|
|
urls:
|
|
- "http://10.42.0.218:9113"
|