mdlayher / apcupsd_exporter

Prometheus exporter that exposes metrics from apcupsd's NIS. MIT Licensed.
MIT License
153 stars 65 forks source link

Disable OpenMetrics #28

Open olegbilovus opened 2 months ago

olegbilovus commented 2 months ago

By default Prometheus enables OpenMetrics which adds quite a lot of metrics about the used resources and such metrics may not be desirable and create more network traffic.

If anyone would like to disable it, you have to edit the main.go and rebuild.

Here an example of how to add a new flag to enable and disable the OpenMetrics: https://github.com/olegbilovus/apcupsd_exporter/commit/0c8bab41a2dc24f90b3199e459be0cf8af5a100d