-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnmic-config.yml
129 lines (115 loc) · 2.51 KB
/
gnmic-config.yml
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
# Copyright 2020 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
username: admin
password: NokiaSrl1!
port: 57400
timeout: 10s
skip-verify: true
encoding: json_ietf
targets:
leaf1:
leaf2:
leaf3:
spine1:
spine2:
subscriptions:
srl_if_oper_state:
paths:
- /interface[name=ethernet-1/*]/oper-state
mode: stream
stream-mode: sample
sample-interval: 5s
srl_net_instance:
paths:
- /network-instance[name=*]/oper-state
mode: stream
stream-mode: sample
sample-interval: 5s
srl_if_stats:
paths:
- /interface[name=ethernet-1/*]/statistics
mode: stream
stream-mode: sample
sample-interval: 5s
srl_if_traffic_rate:
paths:
- /interface[name=ethernet-1/*]/traffic-rate
mode: stream
stream-mode: sample
sample-interval: 5s
srl_cpu:
paths:
- /platform/control[slot=*]/cpu[index=all]/total
mode: stream
stream-mode: sample
sample-interval: 5s
srl_mem:
paths:
- /platform/control[slot=*]/memory
mode: stream
stream-mode: sample
sample-interval: 5s
srl_bgp_stats:
paths:
- /network-instance[name=*]/protocols/bgp/statistics
mode: stream
stream-mode: sample
sample-interval: 5s
srl_ipv4_routes:
paths:
- /network-instance[name=*]/route-table/ipv4-unicast/statistics/
mode: stream
stream-mode: sample
sample-interval: 5s
srl_ipv6_routes:
paths:
- /network-instance[name=*]/route-table/ipv6-unicast/statistics/
mode: stream
stream-mode: sample
sample-interval: 5s
srl_apps:
paths:
- /system/app-management/application[name=*]
mode: stream
stream-mode: sample
sample-interval: 5s
outputs:
prom:
type: prometheus
listen: :9273
path: /metrics
metric-prefix: gnmic
append-subscription-name: true
export-timestamps: true
debug: false
event-processors:
- trim-prefixes
- up-down-map
# stdout:
# type: file
# file-type: stdout
# event-processors:
# - proc-convert-strings-to-int
# - trim-prefixes
processors:
trim-prefixes:
event-strings:
value-names:
- ".*"
transforms:
- path-base:
apply-on: "name"
up-down-map:
event-strings:
value-names:
- oper-state
transforms:
- replace:
apply-on: "value"
old: "up"
new: "1"
- replace:
apply-on: "value"
old: "down"
new: "0"