Fix metric names
This commit is contained in:
parent
29340a3933
commit
a5d989b3b7
1 changed files with 5 additions and 5 deletions
10
exporter.go
10
exporter.go
|
@ -38,12 +38,12 @@ var (
|
||||||
lifepo4weredPOutSummary = jmetrics.NewLiteGaugeSummary("lifepo4wered_power_out", "Power out (mW)")
|
lifepo4weredPOutSummary = jmetrics.NewLiteGaugeSummary("lifepo4wered_power_out", "Power out (mW)")
|
||||||
|
|
||||||
lifepo4weredHists = map[string]prometheus.Histogram{
|
lifepo4weredHists = map[string]prometheus.Histogram{
|
||||||
"VIN": promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Name: "voltage_in", Help: "Voltage in (mV)"}),
|
"VIN": promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Subsystem: "hist", Name: "voltage_in", Help: "Voltage in (mV)"}),
|
||||||
"VOUT": promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Name: "voltage_out", Help: "Voltage out (mV)"}),
|
"VOUT": promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Subsystem: "hist", Name: "voltage_out", Help: "Voltage out (mV)"}),
|
||||||
"VBAT": promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Name: "voltage_bat", Help: "Battery voltage (mV)"}),
|
"VBAT": promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Subsystem: "hist", Name: "voltage_bat", Help: "Battery voltage (mV)"}),
|
||||||
"IOUT": promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Name: "current_out", Help: "Current out (mA)"}),
|
"IOUT": promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Subsystem: "hist", Name: "current_out", Help: "Current out (mA)"}),
|
||||||
}
|
}
|
||||||
lifepo4weredPOutHist = promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Name: "power_out", Help: "Power out (mW)"})
|
lifepo4weredPOutHist = promauto.NewHistogram(prometheus.HistogramOpts{Namespace: "lifepo4wered", Subsystem: "hist", Name: "power_out", Help: "Power out (mW)"})
|
||||||
)
|
)
|
||||||
|
|
||||||
func pollVars() {
|
func pollVars() {
|
||||||
|
|
Loading…
Reference in a new issue