Migrate to structured logging (klog)
This commit is contained in:
parent
93ac8d5a21
commit
108637bb1c
31 changed files with 161 additions and 171 deletions
|
|
@ -165,7 +165,7 @@ func parse(data string) *basicStatus {
|
|||
|
||||
// nginxStatusCollector scrape the nginx status
|
||||
func (p nginxStatusCollector) scrape(ch chan<- prometheus.Metric) {
|
||||
klog.V(3).Infof("start scraping socket: %v", nginx.StatusPath)
|
||||
klog.V(3).InfoS("starting scraping socket", "path", nginx.StatusPath)
|
||||
status, data, err := nginx.NewGetStatusRequest(nginx.StatusPath)
|
||||
if err != nil {
|
||||
log.Printf("%v", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue