1157c4a2e257c785b999da4cee043f440b46ceba
[barometer.git] / docker / ansible / roles / config_files / templates / snmp_agent.conf.j2
1 #Copyright 2018 OPNFV and Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #LoadPlugin snmp_agent
16 <Plugin snmp_agent>
17 # Intel PMU MIB
18   <Table "pmuTable">
19     IndexOID "INTEL-PMU-MIB::pmuGroupIndex"
20     <Data "pmuGroupDescr">
21       Instance true
22       Plugin "intel_pmu"
23       OIDs "INTEL-PMU-MIB::pmuGroupDescr"
24     </Data>
25     <Data "pmuL1DCacheLoads">
26       Plugin "intel_pmu"
27       Type "counter"
28       TypeInstance "L1-dcache-loads"
29       OIDs "INTEL-PMU-MIB::pmuL1DCacheLoads"
30     </Data>
31     <Data "pmuL1DCacheLoadMisses">
32       Plugin "intel_pmu"
33       Type "counter"
34       TypeInstance "L1-dcache-load-misses"
35       OIDs "INTEL-PMU-MIB::pmuL1DCacheLoadMisses"
36     </Data>
37     <Data "pmuL1DCacheStores">
38       Plugin "intel_pmu"
39       Type "counter"
40       TypeInstance "L1-dcache-stores"
41       OIDs "INTEL-PMU-MIB::pmuL1DCacheStores"
42     </Data>
43     <Data "pmuL1DCacheStoreMisses">
44       Plugin "intel_pmu"
45       Type "counter"
46       TypeInstance "L1-dcache-store-misses"
47       OIDs "INTEL-PMU-MIB::pmuL1DCacheStoreMisses"
48     </Data>
49     <Data "pmuL1DCachePrefetches">
50       Plugin "intel_pmu"
51       Type "counter"
52       TypeInstance "L1-dcache-prefetches"
53       OIDs "INTEL-PMU-MIB::pmuL1DCachePrefetches"
54     </Data>
55     <Data "pmuL1DCachePrefetchMisses">
56       Plugin "intel_pmu"
57       Type "counter"
58       TypeInstance "L1-dcache-prefetch-misses"
59       OIDs "INTEL-PMU-MIB::pmuL1DCachePrefetchMisses"
60     </Data>
61     <Data "pmuL1ICacheLoads">
62       Plugin "intel_pmu"
63       Type "counter"
64       TypeInstance "L1-icache-loads"
65       OIDs "INTEL-PMU-MIB::pmuL1ICacheLoads"
66     </Data>
67     <Data "pmuL1ICacheLoadMisses">
68       Plugin "intel_pmu"
69       Type "counter"
70       TypeInstance "L1-icache-load-misses"
71       OIDs "INTEL-PMU-MIB::pmuL1ICacheLoadMisses"
72     </Data>
73     <Data "pmuL1ICachePrefetches">
74       Plugin "intel_pmu"
75       Type "counter"
76       TypeInstance "L1-icache-prefetches"
77       OIDs "INTEL-PMU-MIB::pmuL1ICachePrefetches"
78     </Data>
79     <Data "pmuL1ICachePrefetchMisses">
80       Plugin "intel_pmu"
81       Type "counter"
82       TypeInstance "L1-icache-prefetch-misses"
83       OIDs "INTEL-PMU-MIB::pmuL1ICachePrefetchMisses"
84     </Data>
85     <Data "pmuLLCLoads">
86       Plugin "intel_pmu"
87       Type "counter"
88       TypeInstance "LLC-loads"
89       OIDs "INTEL-PMU-MIB::pmuLLCLoads"
90     </Data>
91     <Data "pmuLLCLoadMisses">
92       Plugin "intel_pmu"
93       Type "counter"
94       TypeInstance "LLC-load-misses"
95       OIDs "INTEL-PMU-MIB::pmuLLCLoadMisses"
96     </Data>
97     <Data "pmuLLCStores">
98       Plugin "intel_pmu"
99       Type "counter"
100       TypeInstance "LLC-stores"
101       OIDs "INTEL-PMU-MIB::pmuLLCStores"
102     </Data>
103     <Data "pmuLLCStoreMisses">
104       Plugin "intel_pmu"
105       Type "counter"
106       TypeInstance "LLC-store-misses"
107       OIDs "INTEL-PMU-MIB::pmuLLCStoreMisses"
108     </Data>
109     <Data "pmuLLCPrefetches">
110       Plugin "intel_pmu"
111       Type "counter"
112       TypeInstance "LLC-prefetches"
113       OIDs "INTEL-PMU-MIB::pmuLLCPrefetches"
114     </Data>
115     <Data "pmuLLCPrefetchMisses">
116       Plugin "intel_pmu"
117       Type "counter"
118       TypeInstance "LLC-prefetch-misses"
119       OIDs "INTEL-PMU-MIB::pmuLLCPrefetchMisses"
120     </Data>
121     <Data "pmuDTLBLoads">
122       Plugin "intel_pmu"
123       Type "counter"
124       TypeInstance "dTLB-loads"
125       OIDs "INTEL-PMU-MIB::pmuDTLBLoads"
126     </Data>
127     <Data "pmuDTLBLoadMisses">
128       Plugin "intel_pmu"
129       Type "counter"
130       TypeInstance "dTLB-load-misses"
131       OIDs "INTEL-PMU-MIB::pmuDTLBLoadMisses"
132     </Data>
133     <Data "pmuDTLBStores">
134       Plugin "intel_pmu"
135       Type "counter"
136       TypeInstance "dTLB-stores"
137       OIDs "INTEL-PMU-MIB::pmuDTLBStores"
138     </Data>
139     <Data "pmuDTLBStoreMisses">
140       Plugin "intel_pmu"
141       Type "counter"
142       TypeInstance "dTLB-store-misses"
143       OIDs "INTEL-PMU-MIB::pmuDTLBStoreMisses"
144     </Data>
145     <Data "pmuDTLBPrefetches">
146       Plugin "intel_pmu"
147       Type "counter"
148       TypeInstance "dTLB-prefetches"
149       OIDs "INTEL-PMU-MIB::pmuDTLBPrefetches"
150     </Data>
151     <Data "pmuDTLBPrefetchMisses">
152       Plugin "intel_pmu"
153       Type "counter"
154       TypeInstance "dTLB-prefetch-misses"
155       OIDs "INTEL-PMU-MIB::pmuDTLBPrefetchMisses"
156     </Data>
157     <Data "pmuITLBLoads">
158       Plugin "intel_pmu"
159       Type "counter"
160       TypeInstance "iTLB-loads"
161       OIDs "INTEL-PMU-MIB::pmuITLBLoads"
162     </Data>
163     <Data "pmuITLBLoadMisses">
164       Plugin "intel_pmu"
165       Type "counter"
166       TypeInstance "iTLB-load-misses"
167       OIDs "INTEL-PMU-MIB::pmuITLBLoadMisses"
168     </Data>
169     <Data "pmuBranchLoads">
170       Plugin "intel_pmu"
171       Type "counter"
172       TypeInstance "branch-loads"
173       OIDs "INTEL-PMU-MIB::pmuBranchLoads"
174     </Data>
175     <Data "pmuBranchLoadMisses">
176       Plugin "intel_pmu"
177       Type "counter"
178       TypeInstance "branch-load-misses"
179       OIDs "INTEL-PMU-MIB::pmuBranchLoadMisses"
180     </Data>
181     <Data "pmuCpuCycles">
182       Plugin "intel_pmu"
183       Type "counter"
184       TypeInstance "cpu-cycles"
185       OIDs "INTEL-PMU-MIB::pmuCpuCycles"
186     </Data>
187     <Data "pmuInstructions">
188       Plugin "intel_pmu"
189       Type "counter"
190       TypeInstance "instructions"
191       OIDs "INTEL-PMU-MIB::pmuInstructions"
192     </Data>
193     <Data "pmuCacheReferences">
194       Plugin "intel_pmu"
195       Type "counter"
196       TypeInstance "cache-references"
197       OIDs "INTEL-PMU-MIB::pmuCacheReferences"
198     </Data>
199     <Data "pmuCacheMisses">
200       Plugin "intel_pmu"
201       Type "counter"
202       TypeInstance "cache-misses"
203       OIDs "INTEL-PMU-MIB::pmuCacheMisses"
204     </Data>
205     <Data "pmuBranches">
206       Plugin "intel_pmu"
207       Type "counter"
208       TypeInstance "branches"
209       OIDs "INTEL-PMU-MIB::pmuBranches"
210     </Data>
211     <Data "pmuBranchMisses">
212       Plugin "intel_pmu"
213       Type "counter"
214       TypeInstance "branch-misses"
215       OIDs "INTEL-PMU-MIB::pmuBranchMisses"
216     </Data>
217     <Data "pmuBusCycles">
218       Plugin "intel_pmu"
219       Type "counter"
220       TypeInstance "bus-cycles"
221       OIDs "INTEL-PMU-MIB::pmuBusCycles"
222     </Data>
223     <Data "pmuCpuClock">
224       Plugin "intel_pmu"
225       Type "counter"
226       TypeInstance "cpu-clock"
227       OIDs "INTEL-PMU-MIB::pmuCpuClock"
228     </Data>
229     <Data "pmuTaskClock">
230       Plugin "intel_pmu"
231       Type "counter"
232       TypeInstance "task-clock"
233       OIDs "INTEL-PMU-MIB::pmuTaskClock"
234     </Data>
235     <Data "pmuContextSwitches">
236       Plugin "intel_pmu"
237       Type "counter"
238       TypeInstance "context-switches"
239       OIDs "INTEL-PMU-MIB::pmuContextSwitches"
240     </Data>
241     <Data "pmuCpuMigrations">
242       Plugin "intel_pmu"
243       Type "counter"
244       TypeInstance "cpu-migrations"
245       OIDs "INTEL-PMU-MIB::pmuCpuMigrations"
246     </Data>
247     <Data "pmuPageFaults">
248       Plugin "intel_pmu"
249       Type "counter"
250       TypeInstance "page-faults"
251       OIDs "INTEL-PMU-MIB::pmuPageFaults"
252     </Data>
253     <Data "pmuMinorFaults">
254       Plugin "intel_pmu"
255       Type "counter"
256       TypeInstance "minor-faults"
257       OIDs "INTEL-PMU-MIB::pmuMinorFaults"
258     </Data>
259     <Data "pmuMajorFaults">
260       Plugin "intel_pmu"
261       Type "counter"
262       TypeInstance "major-faults"
263       OIDs "INTEL-PMU-MIB::pmuMajorFaults"
264     </Data>
265     <Data "pmuAlignmentFaults">
266       Plugin "intel_pmu"
267       Type "counter"
268       TypeInstance "alignment-faults"
269       OIDs "INTEL-PMU-MIB::pmuAlignmentFaults"
270     </Data>
271     <Data "pmuEmulationFaults">
272       Plugin "intel_pmu"
273       Type "counter"
274       TypeInstance "emulation-faults"
275       OIDs "INTEL-PMU-MIB::pmuEmulationFaults"
276     </Data>
277   </Table>
278 # Intel RDT MIB
279   <Table "rdtTable">
280     IndexOID "INTEL-RDT-MIB::rdtGroupIndex"
281     SizeOID "INTEL-RDT-MIB::rdtGroupNumber"
282     <Data "rdtGroupDescr">
283       Instance true
284       Plugin "intel_rdt"
285       OIDs "INTEL-RDT-MIB::rdtGroupDescr"
286     </Data>
287     <Data "rdtLlc">
288       Plugin "intel_rdt"
289       Type "bytes"
290       TypeInstance "llc"
291       OIDs "INTEL-RDT-MIB::rdtLlc"
292     </Data>
293     <Data "rdtIpc">
294       Plugin "intel_rdt"
295       Type "ipc"
296       OIDs "INTEL-RDT-MIB::rdtIpc"
297     </Data>
298     <Data "rdtMbmRemote">
299       Plugin "intel_rdt"
300       Type "memory_bandwidth"
301       TypeInstance "remote"
302       OIDs "INTEL-RDT-MIB::rdtMbmRemote"
303     </Data>
304     <Data "rdtMbmLocal">
305       Plugin "intel_rdt"
306       Type "memory_bandwidth"
307       TypeInstance "local"
308       OIDs "INTEL-RDT-MIB::rdtMbmLocal"
309     </Data>
310   </Table>
311 # Intel Mcelog MIB
312   <Table "mcelogTable">
313     IndexOID "INTEL-MCELOG-MIB::memoryGroupIndex"
314     <Data "memoryGroupDescr">
315       Instance true
316       Plugin "mcelog"
317       OIDs "INTEL-MCELOG-MIB::memoryGroupDescr"
318     </Data>
319     <Data "memoryCorrectedErrors">
320       Plugin "mcelog"
321       Type "errors"
322       TypeInstance "corrected_memory_errors"
323       OIDs "INTEL-MCELOG-MIB::memoryCorrectedErrors"
324     </Data>
325     <Data "memoryCorrectedTimedErrors">
326       Plugin "mcelog"
327       Type "errors"
328       TypeInstance "corrected_memory_errors_in_24h"
329       OIDs "INTEL-MCELOG-MIB::memoryCorrectedTimedErrors"
330     </Data>
331     <Data "memoryUncorrectedErrors">
332       Plugin "mcelog"
333       Type "errors"
334       TypeInstance "uncorrected_memory_errors"
335       OIDs "INTEL-MCELOG-MIB::memoryUncorrectedErrors"
336     </Data>
337     <Data "memoryUncorrectedTimedErrors">
338       Plugin "mcelog"
339       Type "errors"
340       TypeInstance "uncorrected_memory_errors_in_24h"
341       OIDs "INTEL-MCELOG-MIB::memoryUncorrectedTimedErrors"
342     </Data>
343   </Table>
344 # Hugepages
345   <Table "hugepagesTable">
346     <Data "hugepagesNode">
347       Instance true
348       Plugin "hugepages"
349       OIDs "INTEL-HUGEPAGES-MIB::hugepagesNode"
350     </Data>
351     <Data "hugepagesMemoryFree">
352       Plugin "hugepages"
353       Type "memory"
354       TypeInstance "free"
355       OIDs "INTEL-HUGEPAGES-MIB::hugepagesMemoryFree"
356     </Data>
357     <Data "hugepagesMemoryUsed">
358       Plugin "hugepages"
359       Type "memory"
360       TypeInstance "used"
361       OIDs "INTEL-HUGEPAGES-MIB::hugepagesMemoryUsed"
362     </Data>
363     <Data "hugepagesPagesFree">
364       Plugin "hugepages"
365       Type "vmpage_number"
366       TypeInstance "free"
367       OIDs "INTEL-HUGEPAGES-MIB::hugepagesPagesFree"
368     </Data>
369     <Data "hugepagesPagesUsed">
370       Plugin "hugepages"
371       Type "vmpage_number"
372       TypeInstance "used"
373       OIDs "INTEL-HUGEPAGES-MIB::hugepagesPagesUsed"
374     </Data>
375     <Data "hugepagesPercentFree">
376       Plugin "hugepages"
377       Type "percent"
378       TypeInstance "free"
379       OIDs "INTEL-HUGEPAGES-MIB::hugepagesPercentFree"
380     </Data>
381     <Data "hugepagesPercentUsed">
382       Plugin "hugepages"
383       Type "percent"
384       TypeInstance "used"
385       OIDs "INTEL-HUGEPAGES-MIB::hugepagesPercentUsed"
386     </Data>
387   </Table>
388 </Plugin>
389