@ -182,6 +182,7 @@ func main() {
// These are GaugeFuncs to more closely align Prometheus scrape time with
// the modbus scrape time.
for addr, reg := range sungrowInputRegs {
addr, reg := addr, reg
promauto.NewGaugeFunc(
prometheus.GaugeOpts{
Namespace: "sungrow",