lightninglabs / lndmon

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

Improve error handling on startup #53

Closed torkelrogstad closed 2 years ago

torkelrogstad commented 4 years ago

In this PR we change a couple of things:

  1. Exit from main if the Prometheus exporter fails to start.
  2. Query LND (GetInfo) on startup, to make sure that we can connect to LND before proceeding. There's no point in exporting metrics if we can't connect to LND, so this should be caught early.
lightninglabs-deploy commented 2 years ago

@torkelrogstad, remember to re-request review from reviewers for your latest update

lightninglabs-deploy commented 2 years ago

@torkelrogstad, remember to re-request review from reviewers for your latest update