Skip to content

Commit

Permalink
Add comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 9, 2023
1 parent 5bcfbd6 commit 8245706
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"log"
"net/http"
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand Down Expand Up @@ -44,6 +45,8 @@ func (c *Collector) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}()

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

0 comments on commit 8245706

Please sign in to comment.