better startup log
This commit is contained in:
parent
ff5b52e142
commit
06f0d25e65
|
|
@ -77,7 +77,8 @@ func init() { // nolint: gochecknoinits
|
||||||
func (u *InfluxUnifi) PollController() {
|
func (u *InfluxUnifi) PollController() {
|
||||||
interval := u.Interval.Round(time.Second)
|
interval := u.Interval.Round(time.Second)
|
||||||
ticker := time.NewTicker(interval)
|
ticker := time.NewTicker(interval)
|
||||||
log.Printf("[INFO] Everything checks out! Poller started, InfluxDB interval: %v", interval)
|
log.Printf("[INFO] Poller->InfluxDB started, interval: %v, dp: %v, db: %s, url: %s",
|
||||||
|
interval, u.DeadPorts, u.DB, u.URL)
|
||||||
|
|
||||||
for u.LastCheck = range ticker.C {
|
for u.LastCheck = range ticker.C {
|
||||||
metrics, err := u.Collector.Metrics(&poller.Filter{Name: "unifi"})
|
metrics, err := u.Collector.Metrics(&poller.Filter{Name: "unifi"})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue