Prometheus javamelody

14 views
Skip to first unread message

Shivam Soni

unread,
Jun 16, 2020, 6:09:44 AM6/16/20
to Prometheus Users
I got an issue in Prometheus configure to java melody.
can anyone solve this?
plz check URL:

https://github.com/prometheus/prometheus/issues/7404

Christian Hoffmann

unread,
Jun 19, 2020, 11:01:29 AM6/19/20
to Shivam Soni, Prometheus Users
Hi,
I'm seeing a small but maybe relevant difference between your Prometheus
config and your test case: The Prometheus config uses "localhost" while
your test uses a hostname. This may not matter network-wise if your
service is bound to both these addresses. However, it may matter
HTTP-wise as these can be interpreted as different virtual hosts by the
target web servers.

I suggest trying to use the hostname instead of localhost in Prometheus.

If that doesn't work either, it might be some more buried difference
(e.g. headers), although that would sound like an uncommon reason for a
404 error. A tcpdump/wireshark comparison of both requests might help there.

Kind regards,
Christian

Reply all
Reply to author
Forward
0 new messages