lndmon icon indicating copy to clipboard operation
lndmon copied to clipboard

lnd_channels_open_balance_sat not including channel reserve

Open SeverinAlexB opened this issue 1 year ago • 2 comments

The lnd_channels_open_balance_sat metrics only includes the local_balance shown in lncli listchannels and does not include the local_chan_reserve_sat. This leaves 1% of the funds missing.

SeverinAlexB avatar Nov 06 '24 13:11 SeverinAlexB

This only passes through values from https://lightning.engineering/api-docs/api/lnd/lightning/channel-balance/index.html, where the reserve is probably not included. The question is whether it should be, or if we need to add a different metric to track how much funds are in the reserve?

bitromortac avatar Nov 11 '24 08:11 bitromortac

I guess to guarantee backwards compatibility, it should be a new metric?

SeverinAlexB avatar Nov 11 '24 09:11 SeverinAlexB