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