forked from marosmars/magent
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.yaml
99 lines (87 loc) · 2.39 KB
/
configuration.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
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
Collectors:
# Poll the version of VPP just once
Version:
Type: version.Version
Configuration:
Schedule:
Type: once
Aggregator: Global-aggregator
# Poll vpp interface information (interface name, index, MAC) every 10 seconds
Interface-info:
Type: ifc_info.InterfaceInfo
Configuration:
Schedule:
Type: scheduled
Delay: 10
Aggregator: Global-aggregator
# Receive vpp interface state change (admin/ling status) if it changes
Interface-state-notifications:
Type: ifc_state.InterfaceStateChanges
Configuration:
Schedule:
Type: notifications
Aggregator: Global-aggregator
# Receive vpp interface counters (dropped, ipv4, ipv6 byte and packet counts) if they change
Interface-counters:
Type: ifc_counters.InterfaceCounters
Configuration:
Schedule:
Type: notifications
Aggregator: Global-aggregator
Aggregators:
# Single central aggregator between collectors and producers
Global-aggregator:
Type: aggregator.Filtering
Configuration:
InboundBufferSize: 20
OutboundBufferSize: 1
Producers:
# Log updates in human readable form
Txt-logger:
Type: producer.Logging
Configuration:
FileName: /tmp/vpp-monitoring-log.txt
FileSize: 50
FileBackups: 1
FileAge: 0
Format: txt
Aggregator: Global-aggregator
# Log updates in json format
Json-logger:
Type: producer.Logging
Configuration:
FileName: /tmp/vpp-monitoring-log.json
FileSize: 50
FileBackups: 1
FileAge: 0
Format: json
Aggregator: Global-aggregator
# Dump updates in human readable form (not as verbose as log)
Txt-file:
Type: producer.File
Configuration:
Format: txt
FileName: /tmp/vpp-monitoring-backup.txt
FileSize: 100
FileBackups: 0
FileAge: 0
Aggregator: Global-aggregator
# Dump updates in json format (not as verbose as log, suitable for machine processing)
Json-file:
Type: producer.File
Configuration:
Format: json
FileName: /tmp/vpp-monitoring-backup.json
FileSize: 100
FileBackups: 0
FileAge: 0
Aggregator: Global-aggregator
# Push updates into kafka in txt or json format
# Kafka-producer:
# Type: producer.Kafka
# Configuration:
# Brokers:
# - 192.168.1.200:9092
# Format: json
# Topic: vpp-monitoring
# Aggregator: Global-aggregator