-
Notifications
You must be signed in to change notification settings - Fork 36
/
classes.yml
74 lines (74 loc) · 1.95 KB
/
classes.yml
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
38
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
apiVersion: v1
kind: Namespace
metadata:
name: telegraf-operator
---
apiVersion: v1
kind: Secret
metadata:
name: telegraf-operator-classes
namespace: telegraf-operator
stringData:
# basic classes that can be used to develop telegraf-operator ; these classes
# report to InfluxDB v1 in same cluster as well as to stdout for convenience
app: |+
[[outputs.influxdb]]
urls = ["http://influxdb.influxdb:8086"]
[[outputs.file]]
files = ["stdout"]
[global_tags]
hostname = "$HOSTNAME"
nodename = "$NODENAME"
namespace = "$NAMESPACE"
type = "app"
basic: |+
[[outputs.influxdb]]
urls = ["http://influxdb.influxdb:8086"]
[[outputs.file]]
files = ["stdout"]
[global_tags]
hostname = "$HOSTNAME"
nodename = "$NODENAME"
infra: |+
[[outputs.influxdb]]
urls = ["http://influxdb.influxdb:8086"]
[[outputs.file]]
files = ["stdout"]
[global_tags]
hostname = "$HOSTNAME"
nodename = "$NODENAME"
type = "infra"
# example of reporting to InfluxDB v2
influxdb_v2: |+
[[outputs.influxdb_v2]]
urls = ["xxxxxx"]
token = "xxxxxxx"
organization = "xxxxxxx"
bucket = "app"
timeout = "5s"
metric_batch_size = 10000
metric_buffer_limit = 100000
[global_tags]
hostname = "$HOSTNAME"
nodename = "$NODENAME"
# example for a specific environment that sets global tags and reports to InfluxDB V2
acc: |+
[[outputs.influxdb_v2]]
urls = ["zzzzzzz"]
token = "zzzzzz"
organization = "xxxx"
bucket = "infra"
timeout = "5s"
[global_tags]
env = "acc"
hostname = "$HOSTNAME"
nodename = "$NODENAME"
[agent] interval = "10s"
round_interval = true
metric_batch_size = 100000
metric_buffer_limit = 100000
collection_jitter = "0s"
# example for gathering istio
istio: |+
[[outputs.influxdb]]
urls = ["http://influxdb.influxdb:8086"]