lablabs / cloudflare-exporter

Prometheus CloudFlare Exporter
Apache License 2.0
313 stars 104 forks source link

Implement metrics denylist #77

Closed almirmcunhajr closed 1 year ago

almirmcunhajr commented 2 years ago

The exporter metrics cardinality exceeds 30k, and we don't need some metrics to be exported. A metrics denylist may help us to take more control over the cardinality.

The strategy is to not auto-register metrics when declaring, and register only when not presented in the denylist.

For the future, we should consider using a custom collector to follow the good practices as explained here: https://prometheus.io/docs/instrumenting/writing_exporters/#collectors

varuzam commented 1 year ago

when is it going to be merged ?