Skip to content

lnd_peer_count of type counter instead of gauge #85

@bindermuehle

Description

@bindermuehle

I'm trying to setup a dashboard for our lnd node with lndmon and I am running into an issue that the lnd_peer_count metric type is a counter instead of a gauge.

To me it seems this value can go and and down and thus a gauge is better suited.

Thanks for clarifying!

p.peerCountDesc, prometheus.CounterValue,

	ch <- prometheus.MustNewConstMetric(
		p.peerCountDesc, prometheus.CounterValue,
		float64(len(listPeersResp)),
	)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions