Dockerized Prometheus exporter for GPU statistics from nvidia-smi written in Go.
Supports multiple GPUs.
Dockerized Prometheus exporter for GPU statistics from nvidia-smi written in Go.
License: MIT License
if some value is "N/A", the prometheus will not parse the task correctly.
the problem occurs in filterNumber
.
to fix the problem, add an if (value == "N/A")
to solve this problem.
func filterNumber(value string) string {
if (value == "N/A") {
return "0"
}
r := regexp.MustCompile("[^0-9.]")
return r.ReplaceAllString(value, "")
}
I have setup and deployed the container but it looks like it needs something to feed to data Into port 9202 first? is that correct what is that missing step?
I'm trying to run the container, and it starts fine, but I get an error it can't find my nvidia-smi
:~$ sudo docker run -p 9202:9202 -v /usr/bin:/usr/bin kristophjunge/prometheus-nvidiasmi
2018/02/22 13:07:36 Nvidia SMI exporter listening on :9202
2018/02/22 13:07:39 Serving /metrics
fork/exec /usr/bin/nvidia-smi: no such file or directory
2018/02/22 13:07:39 Serving /index```
Any hint as to what I might be doing wrong here? ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.