lovoo / ipmi_exporter

IPMI Exporter for prometheus.io, written in Go.
BSD 3-Clause "New" or "Revised" License
80 stars 32 forks source link

collector: Submit % with pct #11

Closed daenney closed 7 years ago

daenney commented 7 years ago

% is not a valid character in a metric name for Prometheus but some hosts have sensors like P1 Therm Ctrl %. This would convert it to P1 Therm Ctrl pct which makes Prometheus happy. pct is the usual abbreviation of percent.

daenney commented 7 years ago

I think when just using strings.Replace a bare % is fine like this but it might have to be %% (though I think part only goes for the *print family of functions)