Skip to content

Commit 8245706

Browse files
author
Denis Krivak
committed
Add comments.
1 parent 5bcfbd6 commit 8245706

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

collector.go

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"log"
66
"net/http"
7+
"time"
78

89
"github.com/prometheus/client_golang/prometheus"
910
"github.com/prometheus/client_golang/prometheus/promhttp"
@@ -44,6 +45,8 @@ func (c *Collector) ServeHTTP(w http.ResponseWriter, r *http.Request) {
4445
}
4546
}()
4647

48+
// NOTE: Parallel requests are not possible due to how the auth system
49+
// works - a new token is required for every request
4750
reg := prometheus.NewRegistry()
4851
c.collectCMState(r.Context(), reg, client)
4952
c.collectCMSSystemInfo(r.Context(), reg, client)

0 commit comments

Comments
 (0)