lightninglabs / lndmon

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

multi: switch to lndclient and fail on errors #58

Closed carlaKC closed 3 years ago

carlaKC commented 3 years ago

This PR does some prepwork for adding the output from the htlc subscription api to lndmon, as described in #57. Since we will need access to routerrpc for SubscribeHtlcEvents, this PR takes the plunge and switches us over to the full lndclient services. Rather than require all macaroons for lndmon, this PR depends on lightninglabs/lndclient/pull/19, which allows us to specify a single macaroon for lndclient.

This PR also updates lndmon to restart on collector failure, rather than just log an error.

carlaKC commented 3 years ago

@Roasbeef re-requesting just for a call on lndclient switch, haven't pushed changes.