On 05.10.24 02:24, Anurupa Dhamala wrote:
> I am trying to push my metrics to a pushgateway in a go routine. But I keep 
> getting 
> ```collected metric "packet_received" { label:{name:"client_name" 
> value:"machine1"} counter:{value:1 created_timestamp:{seconds:1728120095 
> nanos:654777418}}} was collected before with the same name and label 
> values``` this error

Where exactly is this error message coming from?

I would guess it is created before the push is even attempted. It
probably happens during metrics collection (which happens before
metrics are pushed). Such a message is created if there are two
metrics with the same name and label set. Presumably, there is a bug
in the `logger` package.


-- 
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ZwUQdephu8JsYRRR%40mail.rabenste.in.

Reply via email to