Browse Source

Type field missing in snmp data harware.cpu meters

Type field is missing in snmp.yaml for hardware.cpu.*
meters as a result it is throwing Missing field unit
errors in the log files. Adding Type gauge per the
telemetry-measurements documentation.

Change-Id: I4c349d82e3b2b35727c3f814116410dd1ffc8f37
Task: 36428
Story: 2006485
(cherry picked from commit fd9cf6a7bd)
changes/77/679877/1
Manuel Rodriguez 2 weeks ago
parent
commit
824be970df
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      ceilometer/hardware/pollsters/data/snmp.yaml

+ 7
- 0
ceilometer/hardware/pollsters/data/snmp.yaml View File

@@ -39,42 +39,49 @@ metric:
39 39
 
40 40
     - name: hardware.cpu.user
41 41
       unit: tick
42
+      type: gauge
42 43
       snmp_inspector:
43 44
           matching_type: "type_exact"
44 45
           oid: "1.3.6.1.4.1.2021.11.50.0"
45 46
           type: "int"
46 47
     - name: hardware.cpu.nice
47 48
       unit: tick
49
+      type: gauge
48 50
       snmp_inspector:
49 51
           matching_type: "type_exact"
50 52
           oid: "1.3.6.1.4.1.2021.11.51.0"
51 53
           type: "int"
52 54
     - name: hardware.cpu.system
53 55
       unit: tick
56
+      type: gauge
54 57
       snmp_inspector:
55 58
           matching_type: "type_exact"
56 59
           oid: "1.3.6.1.4.1.2021.11.52.0"
57 60
           type: "int"
58 61
     - name: hardware.cpu.idle
59 62
       unit: tick
63
+      type: gauge
60 64
       snmp_inspector:
61 65
           matching_type: "type_exact"
62 66
           oid: "1.3.6.1.4.1.2021.11.53.0"
63 67
           type: "int"
64 68
     - name: hardware.cpu.wait
65 69
       unit: tick
70
+      type: gauge
66 71
       snmp_inspector:
67 72
           matching_type: "type_exact"
68 73
           oid: "1.3.6.1.4.1.2021.11.54.0"
69 74
           type: "int"
70 75
     - name: hardware.cpu.kernel
71 76
       unit: tick
77
+      type: gauge
72 78
       snmp_inspector:
73 79
           matching_type: "type_exact"
74 80
           oid: "1.3.6.1.4.1.2021.11.55.0"
75 81
           type: "int"
76 82
     - name: hardware.cpu.interrupt
77 83
       unit: tick
84
+      type: gauge
78 85
       snmp_inspector:
79 86
           matching_type: "type_exact"
80 87
           oid: "1.3.6.1.4.1.2021.11.56.0"

Loading…
Cancel
Save