Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions client/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,7 @@
}
return &s, nil
}

func (client *NginxClient) GetApiEndpoint() string {

Check failure on line 97 in client/nginx.go

View workflow job for this annotation

GitHub Actions / Go Lint

var-naming: method GetApiEndpoint should be GetAPIEndpoint (revive)
return client.apiEndpoint
}
2 changes: 1 addition & 1 deletion collector/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (c *NginxCollector) Collect(ch chan<- prometheus.Metric) {
if err != nil {
c.upMetric.Set(nginxDown)
ch <- c.upMetric
c.logger.Error("error getting stats", "error", err.Error())
c.logger.Error("error getting stats", "uri", c.nginxClient.GetApiEndpoint(), "error", err)
return
}

Expand Down
Loading