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