Skip to content

Conversation

@Jontified
Copy link
Owner

Summary: This PR adds support for tracking the number of backups that the watchtower client has recorded.

Purpose: We are interested in keeping track of if our watchtower is functioning and making sure that the number of backups corresponds to the number of transactions is one metric we would like to use for this purpose.

Code:
This PR adds a new collector, wt_client_collector.go, which works very similarly to previous collectors.
This PR relies on an updated version of lndclient (update here) to communicate with the watchtower client interface of lnd.

Semantics:
2 metrics exposed. num_backups and num_pending_backups.
The metrics will not show up at all if there is no tower active.
Each metric has a towers public key label.

@Jontified Jontified force-pushed the add-wt-metrics branch 2 times, most recently from ee6a834 to 59787a0 Compare August 25, 2025 08:31
Update dependencies affected by this upgrade through go mod tidy
Temporary commit which depends on lndclient fork for testing new
features.
Remove this commit before merging.
Fix spelling mistake in comment
Add collector for the numBackups and numPendingBackups from the lnd
watchtower client API.
@Jontified Jontified merged commit e66180e into master Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants