diff --git a/charts/tibber-exporter/Chart.yaml b/charts/tibber-exporter/Chart.yaml index 3a00149..7ab3c2f 100644 --- a/charts/tibber-exporter/Chart.yaml +++ b/charts/tibber-exporter/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: tibber-exporter -version: 3.6.3 +version: 3.6.4 description: Tibber exporter type: application keywords: diff --git a/main.go b/main.go index 1166a16..28a8087 100644 --- a/main.go +++ b/main.go @@ -105,6 +105,7 @@ func main() { log.Printf("Overiding websocket url with: %s\n", liveUrl) wsUrl = liveUrl } + prometheus.MustRegister(version.NewCollector("tibber_exporter")) var started []string for _, s := range homesQuery.Viewer.Homes { s := s @@ -140,7 +141,6 @@ func main() { s.MeteringPointData.PriceAreaCode, ).Set(1) - prometheus.MustRegister(version.NewCollector("tibber_exporter")) prometheus.MustRegister(metrics.NewHomeCollector(h)) log.Printf("Realtime consumption enabled for %v: %v\n", s.Id, s.Features.RealTimeConsumptionEnabled) if (s.Features.RealTimeConsumptionEnabled || slices.Contains(liveMeasurements, string(s.Id))) && !slices.Contains(disableLiveMeasurements, string(s.Id)) {