nvidia_smi: power chart algorithm,mul,div fix (#5940)
Ilya Mashchenko committed
Apr 30, 2019 at 18:19 UTC
1b0f2f35497a3936c8556c43998f702ad88e8417
1 file changed
+2
-1
collectors/python.d.plugin/nvidia_smi/nvidia_smi.chart.py
+2
-1
@@ -107,7 +107,7 @@ def gpu_charts(gpu):
107
POWER: {
108
'options': [None, 'Power Utilization', 'Watts', fam, 'nvidia_smi.power', 'line'],
109
'lines': [
110
- ['power_draw', 'power', 1, 100],
110
+ ['power_draw', 'power', 'absolute', 1, 100],
111
]
112
},
113
PROCESSES_MEM: {
@@ -336,6 +336,7 @@ class GPU:
336
('gpu{0}_{1}'.format(self.num, k), v) for k, v in data.items() if v is not None and v != BAD_VALUE
337
)
338
339
+
340
class Service(SimpleService):
341
def __init__(self, configuration=None, name=None):
342
super(Service, self).__init__(configuration=configuration, name=name)