Closed qustavo closed 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.
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.