apache_exporter icon indicating copy to clipboard operation
apache_exporter copied to clipboard

Use MustNewConstMetric to collect proxy metrics

Open Lusitaniae opened this issue 3 years ago • 0 comments

I think that this fix is not correct, we should instead use a MustNewConstMetric and collect it on every scrape.

The current approach is fragile because if 2 prometheus scrape at the same time, they will get hazardous results.

Originally posted by @roidelapluie in https://github.com/Lusitaniae/apache_exporter/issues/111#issuecomment-922882394

Lusitaniae avatar Sep 20 '21 13:09 Lusitaniae