nickbabcock / OhmGraphite

Expose hardware sensor data to Graphite / InfluxDB / Prometheus / Postgres / Timescaledb
Other
409 stars 37 forks source link

Feature request: Metric containing build info (version, git tag etc) #450

Open easymoney322 opened 1 month ago

easymoney322 commented 1 month ago

Hello, I'd like to ask for a metric that would contain the information about the build version.

This would allow the users to monitor if the software is up to date.

For example, Windows Exporter has this:

windows_exporter_build_info{branch="heads/tags/v0.25.1",goarch="amd64",goos="windows",goversion="go1.21.5",revision="f70fa009de541dc99ed210aa7e67c9550133ef02",tags="unknown",version="0.25.1"} 1

SSL Exporter has this:

ssl_exporter_build_info{branch="tags/v2.4.3",goarch="amd64",goos="linux",goversion="go1.22.2",revision="3f34a7b234ce861a5bc41d726a90d7be5e808cd8",tags="unknown",version="2.4.3"} 1

Node exporter has this:

node_exporter_build_info{branch="HEAD",goarch="amd64",goos="linux",goversion="go1.20.6",revision="4a1b77600c1873a8233f3ffb55afcedbb63b8d84",tags="netgo osusergo static_build",version="1.6.1"} 1

Given that the project is written on C#, and that there is no non-hardware-metrics yet, it might be non-easy to do. But just the version string like "0.34.0" would be enough for me.

nickbabcock commented 1 month ago

This is a good idea. And I will get around to implementing it (or someone else can beat me to it).