|
7 gadi atpakaļ | |
---|---|---|
LibreHardwareMonitor @ 3460ec7fb2 | 7 gadi atpakaļ | |
OhmGraphite | 7 gadi atpakaļ | |
OhmGraphite.Test | 7 gadi atpakaļ | |
assets | 7 gadi atpakaļ | |
.gitattributes | 7 gadi atpakaļ | |
.gitignore | 7 gadi atpakaļ | |
.gitmodules | 7 gadi atpakaļ | |
CHANGELOG.md | 7 gadi atpakaļ | |
Dockerfile | 7 gadi atpakaļ | |
LICENSE.txt | 7 gadi atpakaļ | |
OhmGraphite.sln | 7 gadi atpakaļ | |
README.md | 7 gadi atpakaļ | |
appveyor.yml | 7 gadi atpakaļ |
OhmGraphite takes the hard work of extracting hardware sensors from Open Hardware Monitor (technically LibreHardwareMonitor for most up to date hardware) and exports the data in a graphite (or InfluxdDB) compatible format. If you're missing any of the following in Grafana or (other time series UI), this tool is for you!
OhmGraphite functions as a console app (cross platform) or a Windows service that periodically polls the hardware. My recommendation is that even though OhmGraphite can be run via Mono / Docker, many hardware sensors aren't available in those modes.
I use this every day to create beautiful dashboards. Keep in mind, Open Hardware Monitor supported components will determine what metrics are available. Below are graphs / stats made with OhmGraphite (couple of the panels are complemented with telegraf as demonstrated in Monitoring Windows system metrics with grafana)
OhmGraphite.exe.config
) using either the Graphite config or InfluxDB config.\OhmGraphite.exe run
. Executing as administrator will most likely increase the number of sensors found (OhmGraphite will log how many sensors are found)..\OhmGraphite.exe install
. The command will install OhmGraphite as a Windows service (so you can manage it with your favorite powershell commands or services.msc
).\OhmGraphite.exe start
or your favorite Windows service management toolThe config below polls our hardware every 5
seconds and sends the results to a graphite server listening on localhost:2003
.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="host" value="localhost" />
<add key="port" value="2003" />
<add key="interval" value="5" />
</appSettings>
</configuration>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="type" value="influxdb" />
<add key="interval" value="5" />
<add key="influx_address" value="http://localhost:8086" />
<add key="influx_db" value="mydb" />
<!--
<add key="influx_user" value="myuser" />
<add key="influx_password" value="mypassword" />
-->
</appSettings>
</configuration>
.\OhmGraphite.exe stop
OhmGraphite.exe
to your installation directory..\OhmGraphite.exe start
.\OhmGraphite.exe stop
.\OhmGraphite.exe uninstall
Since the full gambit of metrics aren't available in a Docker container, I've refrained from putting the project on docker hub lest it misleads people to think otherwise.
docker build -t nickbabcock/ohm-graphite .
docker run -v $PWD/app.config:/opt/OhmGraphite/OhmGraphite.exe.config:ro nickbabcock/ohm-graphite
app.config
is in the same format as the above configuration.