-
Notifications
You must be signed in to change notification settings - Fork 4
/
netgate-vpp-prometheus.yang
111 lines (87 loc) · 2.28 KB
/
netgate-vpp-prometheus.yang
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
module netgate-vpp-prometheus {
yang-version 1.1;
namespace "urn:netgate:xml:yang:netgate-vpp-prometheus";
prefix "ngvpppro";
import netgate-cli-extensions {
prefix "ngcliext";
}
import netgate-common {
prefix "ngcom";
}
organization "Netgate";
contact "Web: <http://www.netgate.com>";
description
"Provide RPCs to control VPP Prometheus Exporter
Copyright 2018-2020 Rubicon Communications, LLC.
";
revision 2021-02-15 {
description
"TNSR Release 21.02.";
}
revision 2020-09-15 {
description
"Initial revision.";
}
rpc prometheus-control {
input {
leaf namespace {
type ngcom:network-namespace;
mandatory true;
description
"operating namespace";
}
leaf operation {
type ngcom:service-operation;
mandatory true;
description
"The operation to perform";
}
}
output {
leaf stdout {
type string;
}
}
}
container prometheus-exporter {
description
"configuration of the prometheus exporter";
ngcliext:parent-fmt "prometheus";
container host-space {
presence
"indicates the host namespace exporter
is enabled.";
ngcliext:node-fmt "$< host enable$n";
ngcliext:parent-fmt "$< host";
container filters {
description
"list of data items to export";
ngcliext:parent-fmt "$<";
leaf-list filter {
type string;
description
"regular expression for data to export";
ngcliext:node-fmt "$< $% @@$n";
}
}
}
container dataplane-space {
presence
"indicates the dataplane namespace exporter
is enabled.";
ngcliext:node-fmt "$< dataplane enable$n";
ngcliext:parent-fmt "$< dataplane";
container filters {
description
"list of data items to export";
ngcliext:parent-fmt "$<";
leaf-list filter {
type string;
description
"regular expression for data to export";
ngcliext:node-fmt "$< $% @@$n";
}
}
}
}
}