Skip to content

Commit

Permalink
Change order of metrics calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 9, 2023
1 parent 342d1ac commit da8394e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ 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)
c.collectLANUserTable(r.Context(), reg, client)
c.collectCMState(r.Context(), reg, client)

h := promhttp.HandlerFor(reg, promhttp.HandlerOpts{})
h.ServeHTTP(w, r)
Expand Down

0 comments on commit da8394e

Please sign in to comment.