feat(telemetry): Add telemetry export
[csit.git] / resources / templates / telemetry / vpp_runtime.yaml
1 ---
2 logging:
3   version: 1
4   formatters:
5     console_stdout:
6       format: '%(asctime)s - %(name)s - %(message)s'
7     console_stderr:
8       format: '%(message)s'
9     prom:
10       format: '%(message)s'
11   handlers:
12     console_stdout:
13       class: logging.StreamHandler
14       level: INFO
15       formatter: console_stdout
16       stream: ext://sys.stdout
17     console_stderr:
18       class: logging.StreamHandler
19       level: ERROR
20       formatter: console_stderr
21       stream: ext://sys.stderr
22     prom:
23       class: logging.handlers.RotatingFileHandler
24       level: INFO
25       formatter: prom
26       filename: /tmp/metric.prom
27       mode: w
28   loggers:
29     prom:
30       handlers: [prom]
31       level: INFO
32       propagate: False
33   root:
34     level: INFO
35     handlers: [console_stdout, console_stderr]
36 scheduler:
37   duration: 1
38 programs:
39   - name: bundle_vpp
40     metrics:
41       gauge:
42         - name: calls
43           documentation: Number of calls total
44           namespace: vpp
45           subsystem: runtime
46           labelnames:
47             - node_name
48             - state
49             - thread_name
50             - thread_id
51             - thread_lcore
52         - name: vectors
53           documentation: Number of vectors total
54           namespace: vpp
55           subsystem: runtime
56           labelnames:
57             - node_name
58             - state
59             - thread_name
60             - thread_id
61             - thread_lcore
62         - name: suspends
63           documentation: Number of suspends total
64           namespace: vpp
65           subsystem: runtime
66           labelnames:
67             - node_name
68             - state
69             - thread_name
70             - thread_id
71             - thread_lcore
72         - name: clocks
73           documentation: Number of clocks total
74           namespace: vpp
75           subsystem: runtime
76           labelnames:
77             - node_name
78             - state
79             - thread_name
80             - thread_id
81             - thread_lcore
82         - name: vectors_calls
83           documentation: Number of vectors per call
84           namespace: vpp
85           subsystem: runtime
86           labelnames:
87             - node_name
88             - state
89             - thread_name
90             - thread_id
91             - thread_lcore
92     code: |
93       clear runtime
94       wait {duration}
95       show runtime
96   - name: bundle_vpp
97     metrics:
98       gauge:
99         - name: calls
100           documentation: Instructions/packet, cycles/packet and IPC (calls)
101           namespace: vpp
102           subsystem: inst_and_clock
103           labelnames:
104             - node_name
105             - thread_name
106             - thread_id
107         - name: packets
108           documentation: Instructions/packet, cycles/packet and IPC (packets)
109           namespace: vpp
110           subsystem: inst_and_clock
111           labelnames:
112             - node_name
113             - thread_name
114             - thread_id
115         - name: packets_per_call
116           documentation: Instructions/packet, cycles/packet and IPC (packets/call)
117           namespace: vpp
118           subsystem: inst_and_clock
119           labelnames:
120             - node_name
121             - thread_name
122             - thread_id
123         - name: clocks_per_packets
124           documentation: Instructions/packet, cycles/packet and IPC (clocks/packets)
125           namespace: vpp
126           subsystem: inst_and_clock
127           labelnames:
128             - node_name
129             - thread_name
130             - thread_id
131         - name: instructions_per_packets
132           documentation: Instructions/packet, cycles/packet and IPC (clocks/packets)
133           namespace: vpp
134           subsystem: inst_and_clock
135           labelnames:
136             - node_name
137             - thread_name
138             - thread_id
139         - name: ipc
140           documentation: Instructions/packet, cycles/packet and IPC (clocks/packets)
141           namespace: vpp
142           subsystem: inst_and_clock
143           labelnames:
144             - node_name
145             - thread_name
146             - thread_id
147     code: |
148       perfmon reset
149       perfmon start bundle inst-and-clock
150       wait {duration}
151       perfmon stop
152       show perfmon statistics
153   - name: bundle_vpp
154     metrics:
155       gauge:
156         - name: l1_hit
157           documentation:  Cache hits and misses (L1 hit)
158           namespace: vpp
159           subsystem: cache_hierarchy
160           labelnames:
161             - node_name
162             - thread_name
163             - thread_id
164         - name: l1_miss
165           documentation:  Cache hits and misses (L1 miss)
166           namespace: vpp
167           subsystem: cache_hierarchy
168           labelnames:
169             - node_name
170             - thread_name
171             - thread_id
172         - name: l2_hit
173           documentation:  Cache hits and misses (L2 hit)
174           namespace: vpp
175           subsystem: cache_hierarchy
176           labelnames:
177             - node_name
178             - thread_name
179             - thread_id
180         - name: l2_miss
181           documentation:  Cache hits and misses (L2 miss)
182           namespace: vpp
183           subsystem: cache_hierarchy
184           labelnames:
185             - node_name
186             - thread_name
187             - thread_id
188         - name: l3_hit
189           documentation:  Cache hits and misses (L3 hit)
190           namespace: vpp
191           subsystem: cache_hierarchy
192           labelnames:
193             - node_name
194             - thread_name
195             - thread_id
196         - name: l3_miss
197           documentation:  Cache hits and misses (L3 miss)
198           namespace: vpp
199           subsystem: cache_hierarchy
200           labelnames:
201             - node_name
202             - thread_name
203             - thread_id
204     code: |
205       perfmon reset
206       perfmon start bundle cache-hierarchy
207       wait {duration}
208       perfmon stop
209       show perfmon statistics