-
Notifications
You must be signed in to change notification settings - Fork 57
/
config.toml
73 lines (62 loc) · 1.28 KB
/
config.toml
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
username = "admin"
password = "sros"
port = 57400
timeout = "5s"
skip-verify = true
tls-key = "/path/to/client.key"
tls-cert = "/path/to/client.crt"
tls-ca = "/path/to/ca.crt"
[targets]
[targets."172.17.0.100"]
timeout = "2s"
subscriptions = [ "sub1" ]
outputs = [
"output1",
"output3"
]
[targets."172.17.0.101"]
username = "sros"
password = "sros"
insecure = true
subscriptions = [ "sub2" ]
outputs = [
"output2",
"output3"
]
[targets."172.17.0.102:57000"]
password = "sros123"
tls-key = "/path/file1"
tls-cert = "/path/file2"
[subscriptions.sub1]
paths = [
"/configure/port[port-id=*]",
"/state/port[port-id=*]"
]
stream-mode = "on_change"
[subscriptions.sub2]
paths = [ "/configure/port[port-id=*]/statistics" ]
stream-mode = "sample"
sample-interval = "10s"
[outputs.output1]
type = "file"
file-type = "stdout"
[outputs.output2]
type = "file"
filename = "local.log"
[outputs.output3]
type = "nats"
address = "localhost:4222"
subject-prefix = "telemetry"
[outputs.output4]
type = "stan"
address = "localhost:4223"
subject = "telemetry"
cluster-name = "test-cluster"
[outputs.output5]
type = "kafka"
address = "localhost:9092"
topic = "telemetry"
[outputs.output6]
type = "nats"
address = "localhost:4222"
subject-prefix = "telemetry"