lightninglabs / lightninglabs/lndmon

Seed in-memory counters from lnd on startup so metrics survive pod restarts

Open
#133 0 comments 0 reactions 1 assignee View on GitHub

@JLSchuler99 is already working on this.

Since Jun 29, 2026.

Dominant language
Go
Stars
160
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Problem

lndmon keeps cumulative counters in memory, such as for total payments. On a pod restart they reset to zero.

This type of counter is not typical for prometheus exporters, but bridges a gap for embedded database.

Proposed fix

Optional flag, to, seed the counters from lnd's current state on startup (via the relevant RPCs recently became significantly faster on recent lnd), then resume incremental tracking. Across a restart, derived rate metrics should stay continuous instead of dropping to zero.

Acceptance

  • After an lndmon restart, counters resume from approximately their pre-restart values (within tolerance) rather than from zero.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.