lightninglabs / lndmon

🔎lndmon: A drop-in monitoring solution for your lnd node using Prometheus+Grafana
MIT License
149 stars 47 forks source link

Prevent sending key count when 0. #81

Closed qustavo closed 2 years ago

qustavo commented 2 years ago

Since the introduction of https://github.com/lightningnetwork/lnd/commit/afc53d1c52f457ba24dc2a82d0f78e87865113b5, lnd will create 255 new wallets. Those might never be used but metrics are being sent, polluting the metric space.

This PR only send metrics when keycount is > 0 on both internal and external branches.