/
telegraf.conf
68 lines (58 loc) · 1.73 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
# Configuration for telegraf agent
[agent]
interval = "20s"
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 = ""
omit_hostname = true
###############################################################################
# OUTPUT PLUGINS #
###############################################################################
# Configuration for influxdb server to send metrics to
[[outputs.influxdb]]
urls = ["http://localhost:8086"] # required
database = "apex" # required
retention_policy = ""
write_consistency = "any"
timeout = "5s"
###############################################################################
# INPUT PLUGINS #
###############################################################################
[[inputs.neptune_apex]]
servers = [
"http://192.168.5.5"
]
[[inputs.http]]
## One or more URLs from which to read formatted metrics
urls = [
"http://192.168.5.5/rest/status"
]
## Optional HTTP headers
username = "admin"
password = "1234"
data_format = "json_v2"
[[inputs.http.json_v2]]
[[inputs.http.json_v2.object]]
path = "modules"
###############################################################################
# PROCESSOR PLUGINS #
###############################################################################
[[processors.enum]]
namepass = ["neptune_apex"]
[[processors.enum.mapping]]
field = "state"
dest = "state_code"
default = 0
[processors.enum.mapping.value_mappings]
AON = 1
ON = 2
AOF = 3
OFF = 4