lightninglabs / lndmon

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

Duplicate on chain txns breaks metrics collection #47

Open ajcrowe opened 4 years ago

ajcrowe commented 4 years ago

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
mrfelton commented 4 years ago

Also seeing this

mrfelton commented 3 years ago

Anyone know what the actual root cause of this is?

carlaKC commented 3 years ago

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

@ajcrowe do you have duplicate entries for that tx in lnd's list chain txns? Trying to figure out whether this is a lnd or lndmon issue.

Looks like we don't actually use this metric anywhere, so I'm just going to remove it anyway, but would be good to know what's up.