Skip to content

Commit

Permalink
chore: add http sd enabled/refresh interval info log
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Apr 25, 2024
1 parent 0c8f273 commit e0961cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ns1_exporter/ns1_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"os"
"os/signal"
"runtime"
"strconv"
"syscall"
"time"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e0961cc

Please sign in to comment.