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/71b9cf5a-21de-4055-884f-23efae286d83n%40googlegroups.com.

Reply via email to