Re: [prometheus-users] scrape targets on Prometheus

2023-03-02 Thread Stuart Clark

On 02/03/2023 17:29, Pratibha Channamsetty wrote:

Hi,
I have thousandĀ  stateful servers. I am not able to use any of 
Prometheus service discovery approach.
Is there a way I can useĀ  either ip CIDR range for target scrapping or 
regex patter on hostnames.


Any other better approach will help here .

I would suggest using the file SD option and then having a tool creating 
a JSON/YAML file containing the servers to scrape.


Is there really no list of those servers? For example are you using 
something like Ansible or Chef to provision/maintain them?


--
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/5ed4f3b1-4305-5fd9-acd9-f3ac2a7bb03c%40Jahingo.com.


[prometheus-users] scrape targets on Prometheus

2023-03-02 Thread Pratibha Channamsetty
Hi,
I have thousand  stateful servers. I am not able to use any of Prometheus 
service discovery approach. 
Is there a way I can use  either ip CIDR range for target scrapping or 
regex patter on hostnames. 

Any other better approach will help here .


Thanks

-- 
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/01ed6102-3e71-4d30-a236-51e75e0cf5f3n%40googlegroups.com.


[prometheus-users] Re: Proxy authentication credentials using proxy_connect_header not working

2023-03-02 Thread Brian Candler
On Thursday, 2 March 2023 at 06:32:07 UTC Kesavanand Chavali wrote:

we did a wireshark capture and found that below works. This we figured out 
from other already working clients with other software; e.g. some clients 
working with same proxy.
Could you please update the Prometheus documentation?


Can you identify the part of the documentation which needs updating, and 
propose a change?

There is 
https://prometheus.io/docs/prometheus/latest/configuration/configuration/
but it is generic. It just shows

# Specifies headers to send to proxies during CONNECT requests. [ 
proxy_connect_header: [  
:
 
[ 
,
 
...] ] ]

i.e. "send whatever headers you need to".

Ticket 11626  indeed 
seems to have a bad example, but you can comment on the ticket.

That specific comment was "*generated with the help of chatgpt*" which 
probably explains why it's wrong.  ChatGPT generating 
authoritative-sounding but wrong information is the new plague on our world 
:-(

-- 
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/e3bd9351-ce45-4b9f-a5ae-c5ef1cc660b3n%40googlegroups.com.