lightninglabs / lndmon

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

Add a toggle to disable the HTLC monitor metrics #99

Closed reynico closed 1 year ago

reynico commented 1 year ago

Over 76k entries are registered for lnd_htlcs_resolved_htlcs on the Prometheus endpoint in less than a week, leading to huge amounts of data being consumed by the Prometheus server (around 10MB per request).

% cat metrics | sort | uniq -c | sort -nr | head -10
65926 lnd_htlcs_resolved_htlcs
8404 lnd_htlcs_resolution_time_bucket
 764 lnd_htlcs_resolution_time_sum
 764 lnd_htlcs_resolution_time_count
  41 lnd_channels_updates_count
  41 lnd_channels_unsettled_balance
  41 lnd_channels_sent_sat
  41 lnd_channels_received_sat
  41 lnd_channels_pending_htlc_count
  41 lnd_channels_fee_per_kw
reynico commented 1 year ago

Needs another squash of commits, then this is good to go. Thanks!

Awesome! want me to squash the two collectors commits?

guggero commented 1 year ago

Yes, I think everything should go into a single commit.