Dont redefine the variable
On Thu, Jun 25, 2020, 14:58 Baitanik Talukder <[email protected]>
wrote:
> Hello,
> I have metric like ::
>
> count = Gauge( "testing", 'test', registry=registry,
> labelnames=["target"])
> count.labels(target = "abc").set(4)
>
>
> count = Gauge( "testing", 'test', registry=registry,
> labelnames=["target"])
> count.labels(target = "xyz").set(7)
>
> push_to_gateway("http://pushgateway.io", job="testing_job",
> registry=registry)
>
> if I execute both only the last one is there in pushgateway..
> how do I keep both values in pushgateway ?
>
> Thanks and regards,
> Baitanik
>
> --
> 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/59852a44-c7e6-49ae-aedc-5dd4132d2752o%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/59852a44-c7e6-49ae-aedc-5dd4132d2752o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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/CALnV8Wg8BBq6oQFKJB3M4HGo9n9kPcN%3DTi66rZe1ZRP0uO8Kiw%40mail.gmail.com.