Fix label name

This commit is contained in:
Josh Deprez 2024-09-27 13:05:07 +10:00
parent 3b53190410
commit a6f03eec66

View file

@ -75,7 +75,8 @@ func mainImpl() error {
return fmt.Errorf("failed to open new sensor: %v", err)
}
constLabels := prometheus.Labels{"i2c-addr": fmt.Sprintf("0x%x", *i2cAddress)}
constLabels := prometheus.Labels{"i2c_addr": fmt.Sprintf("0x%x", *i2cAddress)}
busVoltageHist := promauto.NewHistogram(prometheus.HistogramOpts{
Namespace: "ina219",
Name: "bus_voltage",