-
Notifications
You must be signed in to change notification settings - Fork 37
/
31-config.yaml
38 lines (34 loc) · 941 Bytes
/
31-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
apiVersion: v1
kind: ConfigMap
metadata:
name: telegraf
namespace: monitoring
labels:
app.kubernetes.io/name: telegraf
app.kubernetes.io/instance: telegraf
data:
telegraf.conf: |+
[agent]
collection_jitter = "0s"
debug = false
flush_interval = "10s"
flush_jitter = "0s"
hostname = "$HOSTNAME"
interval = "10s"
logfile = ""
metric_batch_size = 1000
metric_buffer_limit = 10000
omit_hostname = false
precision = ""
quiet = false
round_interval = true
[[outputs.influxdb_v2]]
urls = [ "http://influxdb.monitoring.svc:8086" ]
token ="pre-shared-local-token"
organization = "aks-cluster"
bucket = "metrics"
[[inputs.kube_inventory]]
url = "https://kubernetes.default.svc"
namespace = ""
bearer_token = "/var/run/secrets/kubernetes.io/serviceaccount/token"
insecure_skip_verify = true