Skip to content

collectors: tolerate DeadlineExceeded in all scrape-cycle RPCs#127

Merged
djkazic merged 1 commit intomasterfrom
fix/deadline-exceeded-collectors
Feb 23, 2026
Merged

collectors: tolerate DeadlineExceeded in all scrape-cycle RPCs#127
djkazic merged 1 commit intomasterfrom
fix/deadline-exceeded-collectors

Conversation

@ziggie1984
Copy link
Contributor

Extends the DeadlineExceeded tolerance introduced in #126 to all
remaining collectors. A transient timeout during a Prometheus scrape
(e.g. due to lnd database load) will now log the error and skip the
current scrape cycle rather than crashing lndmon.

Affected: InfoCollector, ChannelsCollector, WalletCollector,
GraphCollector, WtClientCollector.

GetInfo and other RPC calls are known to occasionally take longer than
expected due to database interactions on the lnd side. A transient
DeadlineExceeded during a Prometheus scrape should not cause lndmon to
exit. All collectors now log the error and skip the current scrape cycle
instead of propagating to errChan, mirroring the existing behaviour in
ChainCollector and PeerCollector.

Affected collectors: InfoCollector, ChannelsCollector, WalletCollector,
GraphCollector, WtClientCollector.
@djkazic djkazic self-requested a review February 23, 2026 14:09
@djkazic djkazic merged commit ed46434 into master Feb 23, 2026
1 check passed
@djkazic djkazic deleted the fix/deadline-exceeded-collectors branch February 23, 2026 17:01
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