-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtelegraf.conf
220 lines (155 loc) · 4.84 KB
/
telegraf.conf
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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
[global_tags]
[agent]
interval = "60s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = "127.0.0.1"
omit_hostname = false
# Uncomment two lines for debug
debug = true
logtarget = "stdout"
#[[outputs.influxdb]]
# urls = ["http://172.28.192.4:8086"]
# database = "influx"
# timeout = "5s"
# username = "admin"
# password = "admin"
[[outputs.file]]
files = ["stdout"]
#data_format = "influx"
data_format = "json"
[[outputs.http]]
url = "http://172.28.192.4:8086/write?db=influx"
method = "POST"
data_format = "influx"
[[inputs.huawei_telemetry_dialout]]
service_address = ":57400"
#data_format = "grpc"
data_format = "json"
transport = "grpc" # only grpci
#[[inputs.cisco_telemetry_mdt]]
# ## Telemetry transport can be "tcp" or "grpc". TLS is only supported when
# ## using the grpc transport.
# transport = "grpc"
# ## Address and port to host telemetry listener
# service_address = ":57401"
[[processors.converter]]
[processors.converter.fields]
integer = ["collection_end_time"]
[[processors.converter]]
[processors.converter.fields]
integer = ["collection_start_time"]
[[processors.converter]]
[processors.converter.fields]
integer = ["data_gpb.row.0.content"]
[[processors.converter]]
[processors.converter.fields]
integer = ["collection_id"]
[[processors.converter]]
[processors.converter.fields]
boolean = ["data_gpb.row.0.timestamp"]
[[processors.converter]]
[processors.converter.fields]
boolean = ["except_desc"]
[[processors.converter]]
[processors.converter.fields]
integer = ["interfaces.interface.0.mib_statistics.receive_broad_packet"]
[[processors.converter]]
[processors.converter.fields]
integer = ["interfaces.interface.0.mib_statistics.receive_byte"]
[[processors.converter]]
[processors.converter.fields]
integer = ["interfaces.interface.0.mib_statistics.receive_multicast_packet"]
[[processors.converter]]
[processors.converter.fields]
integer = ["interfaces.interface.0.mib_statistics.receive_packet"]
[[processors.converter]]
[processors.converter.fields]
integer = ["interfaces.interface.0.mib_statistics.receive_unicast_packet"]
[[processors.converter]]
[processors.converter.fields]
integer = ["interfaces.interface.0.mib_statistics.send_byte"]
[[processors.converter]]
[processors.converter.fields]
integer = ["interfaces.interface.0.mib_statistics.send_packet"]
[[processors.converter]]
[processors.converter.fields]
integer = ["interfaces.interface.0.mib_statistics.send_unicast_packet"]
#[[processors.converter]]
# [processors.converter.fields]
# boolean = ["interfaces.interface.0.name"]
[[processors.converter]]
[processors.converter.fields]
boolean = ["msg_timestamp"]
#[[processors.converter]]
# [processors.converter.fields]
# boolean = ["node_id_str"]
#[[processors.converter]]
# [processors.converter.fields]
# boolean = ["product_name"]
#[[processors.converter]]
# [processors.converter.fields]
# boolean = ["proto_path"]
#[[processors.converter]]
# [processors.converter.fields]
# boolean = ["sensor_path"]
#[[processors.converter]]
# [processors.converter.fields]
# boolean = ["software_version"]
#[[processors.converter]]
# [processors.converter.fields]
# boolean = ["subscription_id_str"]
#[[processors.converter]]
# [processors.converter.tags]
# boolean = ["host"]
[[processors.converter]]
[processors.converter.fields]
tag = ["content.twamp-controller.client.sessions.session.0.id"]
[[processors.converter]]
[processors.converter.fields]
tag = ["node_id_str"]
# Rename fields
#[[processors.rename]]
# [[processors.rename.replace]]
# field = "collection_end_time"
# dest = "AAA"
#[[processors.rename]]
# [[processors.rename.replace]]
# measurement = "huawei-ifm:ifm/interfaces/interface/mib-statistics"
# dest = "mibstat"
# "fields.collection_end_time" = ""
# "fields.collection_start_time" = ""
# "fields.current_period" = ""
# "fields.except_desc" = ""
# "fields.data_gpb.row.0.content" = ""
# "fields.msg_timestamp" = ""
#[[inputs.huawei_telemetry_dialin]]
#data_format = "grpc"
#[[inputs.huawei_telemetry_dialin.routers]]
#address = "10.255.99.120:57400"
#sample_interval = 1000
#encoding="json" # or "gpb"
#suppress_redundant = true
#request_id = 1024
# [inputs.huawei_telemetry_dialin.routers.aaa]
# username = "M2M_user"
# password = "M2M_user_123"
# [[inputs.huawei_telemetry_dialin.routers.Paths]]
# depth = 1
# path = "huawei-debug:debug/memory-infos/cpu-info"
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false
[[inputs.diskio]]
[[inputs.kernel]]
[[inputs.mem]]
[[inputs.processes]]
[[inputs.swap]]
[[inputs.system]]