Fix label name
This commit is contained in:
parent
3b53190410
commit
a6f03eec66
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@ func mainImpl() error {
|
||||||
return fmt.Errorf("failed to open new sensor: %v", err)
|
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{
|
busVoltageHist := promauto.NewHistogram(prometheus.HistogramOpts{
|
||||||
Namespace: "ina219",
|
Namespace: "ina219",
|
||||||
Name: "bus_voltage",
|
Name: "bus_voltage",
|
||||||
|
|
Loading…
Reference in a new issue