-
Notifications
You must be signed in to change notification settings - Fork 9
/
gnmic.yaml
76 lines (66 loc) · 1.49 KB
/
gnmic.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
username: admin
password: admin
skip-verify: true
encoding: json_ietf
log: true
loader:
type: docker # file, consul, http
interval: 60s
filters:
- containers:
# equivalent to: docker ps -f label=containerlab=nanog83 -f label=clab-node-kind=srl
- label=containerlab: nanog83
label=clab-node-kind: srl
subscriptions:
interfaces:
paths:
- /interface/statistics
stream-mode: sample
sample-interval: 10s
bgp:
paths:
- /network-instance/protocols/bgp/statistics
stream-mode: sample
sample-interval: 10s
ipv4_routes:
paths:
- /network-instance/route-table/ipv4-unicast/statistics
stream-mode: sample
sample-interval: 10s
cpu:
paths:
- /platform/control[slot=*]/cpu[index=all]/total
stream-mode: sample
sample-interval: 10s
mem:
paths:
- /platform/control[slot=*]/memory
stream-mode: sample
sample-interval: 10s
api-server:
enable-metrics: true
# clustering config
clustering:
cluster-name: cluster1
targets-watch-timer: 30s
leader-wait-timer: 60s
locker:
type: consul
address: clab-nanog83-consul-agent:8500
outputs:
output1:
type: prometheus
metric-prefix: gnmic
append-subscription-name: true
event-processors:
- trim-prefixes
service-registration:
address: clab-nanog83-consul-agent:8500
processors:
trim-prefixes:
event-strings:
value-names:
- ".*"
transforms:
- path-base:
apply-on: "name"