prometheus-nats-exporter icon indicating copy to clipboard operation
prometheus-nats-exporter copied to clipboard

An error has occurred during metrics gathering: ... was collected before with the same name and label values

Open wutkemtt opened this issue 5 years ago • 0 comments

We get an error when prometheus-nats-exporter is gathering duplicate metrics:

An error has occurred during metrics gathering:

33 error(s) occurred:
* collected metric nss_chan_subs_last_sent label:<name:"channel" value:"AAAAA" > label:<name:"client_id" value:"XYZ" > label:<name:"durable_name" value:"TBHT" > label:<name:"inbox" value:"_INBOX.y8DGMCCCCCrZ" > label:<name:"is_durable" value:"true" > label:<name:"is_offline" value:"false" > label:<name:"queue_name" value:"TBHT" > label:<name:"server_id" value:"http://localhost:8223" > gauge:<value:0 >  was collected before with the same name and label values

As I read this issue should be fixed since version 0.2.2 (see issue #67 ).

We are using prometheus-nats-exporter in version 0.6.0 with the official docker image and the following options in a kubernetes pod on Azure AKS:

"-varz", "-connz", "-routez", "-subz", "-channelz", "-serverz", "http://localhost:8222", "http://localhost:8223"

The exporter is providing the metrics for the nats and nats-streaming container running on the same pod.

wutkemtt avatar Oct 09 '19 05:10 wutkemtt