On 26/04/2020 05:11, RAJESH DASARI wrote:
We have a custom exporter which exports the interface counters and we
labelled all the interfaces with "port", in our environment we
add/delete some interfaces and vlans at runtime.


we query for the number of ports by using this command(curl
http://localhost:9090/api/v1/label/port/values), we use this ports as
reference for querying the metrics . But This command is listing the
ports which are removed from the system and exporter is also not
dumping any metrics for these ports. I see the old port values are
also retained .

Could you please suggest how to refresh port values or any other
better approach to find the current ports which the exporter is
collecting stats .

If you are just wanting current data, maybe use the query API instead?

--
Stuart Clark

--
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/f242cee2-fd1c-a46a-3bf4-4b6947a49c92%40Jahingo.com.

Reply via email to