Prometheus 502 Bad Gateway Error
csahincs opened this issue · comments
Hello,
I'm new to Docker, Prometheus and Grafana. Trying to learn the basic stuff. I followed the steps that has been said in this repository.I have no problem reaching to Grafana, Alert Manager with <swarm_ip>:xxxx, but when I try to reach Prometheus, <swarm_ip>:9090 I get a 502 Bad Gateway error. Unfortunately I couldn't find a documentation on Prometheus errors.
PS: Thanks for the great tutorial.
I had the same problem. I tried the solution of maxim-ge at #10
His solution worked for me.
Hey All. How was this resolved? I followed directions to the letter and I'm getting "server returned HTTP status 502 Bad Gateway" output in the section pasted below when I "curl -u admin http://127.0.0.1:9090/targets" from one of my swarm managers. Please help. How do I fix?
http://10.0.0.9:9323/metrics </td>
<td class="state">
<span class="alert alert-danger state_indicator text-uppercase">
down
</span>
</td>
<td class="labels">
<span class="cursor-pointer" data-toggle="tooltip" title="" data-html=true data-original-title="<b>Before relabeling:</b><br>__address__="10.0.0.9:9323"<br>__meta_dns_name="tasks.dockerd-exporter"<br>__metrics_path__="/metrics"<br>__scheme__="http"<br>job="dockerd-exporter"">
<span class="label label-primary">instance="10.0.0.9:9323"</span>
<span class="label label-primary">job="dockerd-exporter"</span>
</span>
</td>
<td class="last-scrape">
6.993s ago
</td>
<td class="scrape-duration">
3.087ms
</td>
<td class="errors">
<span class="alert alert-danger state_indicator">server returned HTTP status 502 Bad Gateway</span>
</td>
</tr>