connect to device via name in case of further network blips

This commit is contained in:
Josh Deprez 2021-01-04 16:21:29 +11:00
parent 833dcb07f6
commit 4396ec6592

View file

@ -19,7 +19,7 @@ import (
var (
httpAddr = flag.String("http-addr", ":9455", "Address to listen on")
inverterAddr = flag.String("inverter-addr", "192.168.86.33:502", "Address of inverter")
inverterAddr = flag.String("inverter-addr", "rakmodule_00DBC1.local:502", "Address of inverter")
scrapeInterval = flag.Duration("scrape-interval", 15*time.Second, "Period of modbus scraping loop")
registerGauges = make(map[uint16]prometheus.Gauge)