lightninglabs / lightninglabs/lndmon

Duplicate on chain txns breaks metrics collection

Open
#47 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

An issue with lnd results in duplicate entries in the on chain transaction list.

This results in metric collection failure as multiple series with the same labels are created.

Error:

An error has occurred while serving metrics:

collected metric "lnd_tx_num_confs" { label:<name:"tx_hash" value:"xxxx" > counter:<value:11894 > } was collected before with the same name and label values

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.

Research direction

No source file, test, or entry point is identified in the issue. Start by tracing how lnd on-chain transactions are turned into Prometheus metrics and reproduce the duplicate-label error while serving metrics. Done means duplicate transactions no longer cause metric collection to fail.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, prometheus
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.