Curl 'http://localhost:8080/prometheus'
gave an empty response 
and yes these are two separate docker containers on bridge . how can i use 
container name in prometheus.yml to access.

On Thursday, December 3, 2020 at 2:34:28 AM UTC+5:30 [email protected] 
wrote:

> If you go to the prometheus UI and look in the "Status > Targets" menu 
> option, you'll see a description of why the target is down.
>
> You can also test using curl and see what response you get:
> curl 'http://localhost:8080/prometheus'
>
> Note: if these are two separate docker containers on a bridge, then I 
> doubt that "localhost" can be used to access one container from the other 
> one.  Try using the container name.
>
> On Wednesday, 2 December 2020 at 20:21:02 UTC [email protected] wrote:
>
>> Hi ,
>> I started using prometheus with jenkins and after configuring for 
>> prometheus.yml I still get the status as down .
>> Jenkins:port-8080
>> Prometheus port : 9090
>> Jenkins and Prometheus both are running in docker on bridge .
>> - job_name: ‘jenkins’
>>   metrics_path: /prometheus
>>   static_configs:
>>     - targets: [‘localhost:8080’]
>> This update i did in prometheus.yml.
>> If anyone can he;p me to solve this issue .
>>
>

-- 
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/7f16d032-026b-44d4-8835-96584ba7031dn%40googlegroups.com.

Reply via email to