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 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: false
>       tls_config:
>         insecure_skip_verify: false
>       preferred_ip_protocol: "ip4"
>
>
> *      basic_auth:        username: username        password: password*
>
> And use this module in for probing your endpoint that you define in 
> prometheus.yml file.
>
>
>
> On Monday, March 16, 2020 at 8:10:25 PM UTC+5:30, Eswar Rao Bevara wrote:
>>
>> 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, 2020 at 3:37:59 PM UTC+1, Yagyansh S. Kumar wrote:
>>>
>>> Hi. I have around 10 URLs that I want to monitor. All are under Basic 
>>> Auth and have different auth credentials. Is it all possible to probe them 
>>> using a single blackbox module? Or will I have to create 10 different 
>>> modules, which seems a very tedious task. 
>>>
>>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/943c2bb6-4d90-46a8-bffc-c2dc5ef96043%40googlegroups.com.

Reply via email to