lightninglabs / lndmon

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

Add Channel Uptime Percentage #51

Closed carlaKC closed 4 years ago

carlaKC commented 4 years ago

This PR adds the remote node's uptime percentage to the node stats dashboard per channel we have open. This change relies on the experimental uptime field in `lnstchannels``.

channel uptime

This change could be generalized to adding uptime for all peers if we updated peer tracking to listpeers in lnd (which may be worth doing), or moved onto the peers dashboard if we call listchannels in the peers collector then just set uptime for the peers that we currently have channels for.