From 4396ec6592640e39b8e8e846eebba9d1d71fa964 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Mon, 4 Jan 2021 16:21:29 +1100 Subject: [PATCH] connect to device via name in case of further network blips --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 35bd8ad..7bf7daf 100644 --- a/main.go +++ b/main.go @@ -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)