We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1226398 commit 581b5a9Copy full SHA for 581b5a9
collector/nginx_plus.go
@@ -1,6 +1,7 @@
1
package collector
2
3
import (
4
+ "context"
5
"fmt"
6
"log/slog"
7
"strconv"
@@ -622,7 +623,7 @@ func (c *NginxPlusCollector) Collect(ch chan<- prometheus.Metric) {
622
623
c.mutex.Lock() // To protect metrics from concurrent collects
624
defer c.mutex.Unlock()
625
- stats, err := c.nginxClient.GetStats()
626
+ stats, err := c.nginxClient.GetStats(context.TODO())
627
if err != nil {
628
c.upMetric.Set(nginxDown)
629
ch <- c.upMetric
0 commit comments