Commit 9a69a883 authored by Robert Dietrich's avatar Robert Dietrich

scale gpu_used metric for nvml

parent 26d1ec04
...@@ -111,7 +111,7 @@ LoadPlugin logfile ...@@ -111,7 +111,7 @@ LoadPlugin logfile
#INFLUXUSER #INFLUXUSER
#INFLUXPWD #INFLUXPWD
#INFLUXDBNAME #INFLUXDBNAME
batch_size 50 batch_size 500
cache_size 2000 cache_size 2000
StoreRates true StoreRates true
ssl false ssl false
...@@ -260,4 +260,17 @@ PreCacheChain "pika" ...@@ -260,4 +260,17 @@ PreCacheChain "pika"
Target "write" Target "write"
Target "stop" Target "stop"
</Rule> </Rule>
<Rule "handle_gpu_used">
<Match "regex">
TypeInstance "gpu_used$"
</Match>
<Target "scale">
Factor 0.01
</Target>
<Target "set">
Plugin "nvml"
</Target>
Target "write"
Target "stop"
</Rule>
</Chain> </Chain>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment