Re: [prometheus-users] Prometheus same host multiple endpoints

2023-01-23 Thread Stuart Clark

On 2023-01-23 05:52, Kishore Chopne wrote:

Hi,
 We have a situation where same metrics are published on two
different endpoints. Is it possible to pick one endpoint and discard
the other while writing a PromQL query ?
Is it possible to configure Prometheus to collect metrics from only
one endpoint?



If they are literally the same metrics available in multiple endpoints 
then I'd suggest only scraping one. That's controlled via your scrape 
configuration. Depending on which mechanism you are using to manage that 
it could mean changes to prometheus.yaml, removing an endpoint from a 
YAML/JSON file or changing AWS/Kubernetes tags.


--
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6da844283f2fdfc77f7ecebc157bef7d%40Jahingo.com.


[prometheus-users] Prometheus same host multiple endpoints

2023-01-23 Thread Kishore Chopne
Hi,
 We have a situation where same metrics are published on two different 
endpoints. Is it possible to pick one endpoint and discard the other while 
writing a PromQL query ?
Is it possible to configure Prometheus to collect metrics from only one 
endpoint?

/ Kishore


-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/A14DF96E-61F3-4463-B13D-D49B85BCB1EF%40gmail.com.