From 700719e2fb121af794dab4213810b15db0dc6f21 Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Fri, 11 Aug 2017 14:45:14 +1000 Subject: [PATCH] finally corrected the cuda collectd script Former-commit-id: 5a682b0662d92504f2c37b9a7516a12f0e067480 --- roles/collectd/templates/cuda_collectd.py.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/collectd/templates/cuda_collectd.py.j2 b/roles/collectd/templates/cuda_collectd.py.j2 index 0e672fea..e004238c 100644 --- a/roles/collectd/templates/cuda_collectd.py.j2 +++ b/roles/collectd/templates/cuda_collectd.py.j2 @@ -21,12 +21,12 @@ def read(data=None): pass try: - vl.dispatch(type='mem_utilization', + vl.dispatch(type='gauge', type_instance='mem_utilization', values=[1e6 * float(gpu.find('utilization/memory_util').text.split()[0])]) except: pass try: - vl.dispatch(type='gpu_utilization', + vl.dispatch(type='gauge', type_instance='gpu_utilization', values=[1e6 * float(gpu.find('utilization/gpu_util').text.split()[0])]) except: pass -- GitLab