bitcoin-prometheus-exporter
bitcoin-prometheus-exporter copied to clipboard
Option to disable banlist metrics
I'm using a banlist that's got ~5000 entries which make the exporter output huge. It's not fatal but it's not ideal either. I wonder if there's some more elegant solution than introducing "boolean" env variable to turn it off?
Instead of the bitcoin_ban_created
and bitcoin_banned_until
metrics, I expect you probably only care about aggregate ban metrics, not any of the per-peer metrics.
Maybe just a high level bitcoin_banned_peers
gauge, along with the ability to turn off the per-client metrics.
Yep, exactly.
Also consider Prometheus' general advice on labels: https://prometheus.io/docs/practices/instrumentation/#do-not-overuse-labels