You probably need to use the Custom Collector. This is similar to the
"Const" metrics in the Go code.

https://github.com/prometheus/client_python#custom-collectors

On Tue, Sep 22, 2020 at 11:03 AM Sebastian Halter <
[email protected]> wrote:

> Hello everyone,
>
> i am trying to collect some data via TL1 (basically telnet) because the
> manufacturer doesn't provide the temperature of the installed cards via
> SNMP.
>
> I would like to recreate something like the SNMP-Exporter where i can
> specify my target in the URL it scrapes. Currently i am facing the issue,
> that my exporter runs once and then it runs into an error on every other
> request ("ValueError: Duplicated timeseriers in CollectorRegistry").
>
> Does anyone have a basic example of a multi-target python exporter?
> I found in the documentation that python, go und java are the only client
> libraries that supports this approch but couldn't find any example of this
> on the python-client github site.
>
> --
> 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/2f7dd7e7-ac2e-4cee-8f55-68390051efd9n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/2f7dd7e7-ac2e-4cee-8f55-68390051efd9n%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/CABbyFmqoDcxRM6i531CH8Gyo64-hqmDNj%2BixmW%2BZXqySuRN4Bw%40mail.gmail.com.

Reply via email to