0xERR0R / dex

Prometheus Docker EXporter
52 stars 8 forks source link

Remove default go runtime metrics #88

Closed nmmsantos closed 6 months ago

nmmsantos commented 6 months ago

This PR removes the Go runtime metrics from the metrics that are being exported.

From client_golang documentation:

"Also note that the DefaultRegisterer comes registered with a Collector for Go runtime metrics (via NewGoCollector) and a Collector for process metrics (via NewProcessCollector). With a custom registry, you are in control and decide yourself about the Collectors to register."

While I think these are good metrics to have for a business application dealing with domain traffic, being this application solely an exporter of metrics and being it so lightweight, these runtime and process metrics do not really matter and are only filling upstream Prometheus with additional time-series.

Before: (dex metrics + go runtime) image

After: (only dex metrics) image