[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-20 Thread Brian Candler
On Friday, 20 March 2020 08:42:20 UTC, Eswar Rao Bevara wrote: > > I have scraping metrics for some of my spring boot applications and there > are around 30 applications that I am scrapping metrics from. is there a way > to use file_sd to reduce the redundancy of the code just like the way it >

[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-20 Thread Eswar Rao Bevara
Hi Brain, This worked like a charm and saved couple of hundred lines of code as I have 20 end points to monitor. One quick question, I have scraping metrics for some of my spring boot applications and there are around 30 applications that I am scrapping metrics from. is there a way to use file

[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-17 Thread Yagyansh S. Kumar
Thanks a lot. On Tuesday, March 17, 2020 at 1:46:42 PM UTC+5:30, Brian Candler wrote: > > On Tuesday, 17 March 2020 03:33:40 UTC, Yagyansh S. Kumar wrote: >> >> And that would mean making 10 different jobs to probe those 10 URLs. >> Right? >> >> > No: you can set __param_module differently for ta

[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-17 Thread Brian Candler
On Tuesday, 17 March 2020 03:33:40 UTC, Yagyansh S. Kumar wrote: > > And that would mean making 10 different jobs to probe those 10 URLs. Right? > > No: you can set __param_module differently for targets in the same job. A simple way is to use the file_sd file to add labels to groups of targets (

[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-16 Thread Yagyansh S. Kumar
And that would mean making 10 different jobs to probe those 10 URLs. Right? On Monday, March 16, 2020 at 8:29:24 PM UTC+5:30, Brian Candler wrote: > > You'll need to create 10 different modules - there's no way to expand > parameters into the module settings. > > You can use a script to generate

[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-16 Thread Eswar Rao Bevara
strangely this config is not working for me. I still see 401 error. Not sure what I am missing here. Would you post a sample snippet of the prom.yml to scrape these. On Monday, March 16, 2020 at 3:54:45 PM UTC+1, Yagyansh S. Kumar wrote: > > Hi. To monitor a single endpoint just use basic_auth i

[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-16 Thread Brian Candler
You'll need to create 10 different modules - there's no way to expand parameters into the module settings. You can use a script to generate the YAML though. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and

[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-16 Thread Yagyansh S. Kumar
Hi. To monitor a single endpoint just use basic_auth in your http module. modules: http_healthcheck: prober: http timeout: 5s http: valid_http_versions: ["HTTP/1.1", "HTTP/2"] method: GET no_follow_redirects: false fail_if_ssl: false fail_if_not_ssl: fals

[prometheus-users] Re: Probing Endpoints with different authentication strings.

2020-03-16 Thread Eswar Rao Bevara
Hi, I am little behind you. I am trying to basic auth one end point though even I have more modules that should be monitored. But I am unable to probe with Basic Auth. can you give me you example config of prom and blackbox on how you have done basic auth? Thanks Eswar On Monday, March 16, 20