From e0961cce085f735d9d3243169c60feeeed2b5d16 Mon Sep 17 00:00:00 2001 From: TJ Hoplock Date: Thu, 25 Apr 2024 12:15:36 -0400 Subject: [PATCH] chore: add http sd enabled/refresh interval info log --- cmd/ns1_exporter/ns1_exporter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/ns1_exporter/ns1_exporter.go b/cmd/ns1_exporter/ns1_exporter.go index 12fa21e..4313b1d 100644 --- a/cmd/ns1_exporter/ns1_exporter.go +++ b/cmd/ns1_exporter/ns1_exporter.go @@ -23,6 +23,7 @@ import ( "os" "os/signal" "runtime" + "strconv" "syscall" "time" @@ -238,6 +239,7 @@ func Run(logger log.Logger) { case true: ticker := time.NewTicker(*flagNS1SDRefreshInterval) defer ticker.Stop() + level.Info(logger).Log("msg", "Prometheus HTTP service discovery enabled", "sd_refresh_interval", strconv.FormatBool(*flagNS1EnableSD)) for { // work around the fact that tickers