aboutsummaryrefslogtreecommitdiffstats
path: root/ticker.py
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2016-04-12 17:17:15 +0200
committerVolker Hoffmann <volker@cheleb.net>2016-04-12 17:17:15 +0200
commit93c90edb6f7939efb103d0ca092de83fb25aae55 (patch)
treebc58bccfef259610747694675ee84c4bfd8d2b7f /ticker.py
parenteb4241b5788a6f78f3b02aaeb130429d0d74c7e4 (diff)
feat: add support for gpu stats from gtx cards
Diffstat (limited to 'ticker.py')
-rw-r--r--ticker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ticker.py b/ticker.py
index 6b7d799..a7dd3ea 100644
--- a/ticker.py
+++ b/ticker.py
@@ -75,9 +75,9 @@ line = "room_temperature,room=zbox_room value=%.2f %i" % \
(temperature, netatmo_epoch)
lines.append(line)
-# GPU Stats
+# GPU Stats, Tesla Cards
for gpu_node in [ 'vesta1', 'vesta2' ]:
- df, gpu_epoch, sucess = nvidia.read_gpu_stats(node=gpu_node)
+ df, gpu_epoch, sucess = nvidia.read_gpu_stats(node=gpu_node, type='tesla')
for irow, [ index, row ] in enumerate(df.iterrows()):
line_01 = "gpu_temperature,node=%s,uuid=%s value=%.2f %i" % \
(row.node, row.uuid, row.gpu_temperature, gpu_epoch)