Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTargets UNHEALTHY problem #1182
Comments
This comment has been minimized.
This comment has been minimized.
|
What is the target, an exporter or a server using a client library? Which client library / language? Anything in the logs of the target? |
This comment has been minimized.
This comment has been minimized.
|
This target url from my monitor written by java, and I prodive a http route GET "/metrics" for prometheus, for most time it works fine, but will be State:UNHEALTHY by accident, and I am sure the target url works fine in any time. |
This comment has been minimized.
This comment has been minimized.
|
Well, the response code 500 is a strong indicator that something is off on the target side. I assume you use the prometheus/client_java in the newest version in your service? Is there absolutely nothing in your server logs for these requests? Next time you see a 500, can you run this immediately afterwards and check the response code?
|
This comment has been minimized.
This comment has been minimized.
|
Hi, I think I got the problem by your advice.
results to this error log
But While my code is as fllows:
When I change the port to 8076, it got ok. I didnot know why |
This comment has been minimized.
This comment has been minimized.
|
The maven dependency is
|
This comment has been minimized.
This comment has been minimized.
|
This looks like an error in whatever filters you have configured. You should also use the java simpleclient at https://github.com/prometheus/client_java, as the original client you are using is deprecated. |
This comment has been minimized.
This comment has been minimized.
|
If this is still a problem when using the simpleclient, please let us know. |
brian-brazil
closed this
Dec 16, 2015
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
sundy-li commentedOct 26, 2015
Endpoint State:UNHEALTHY
http://192.168.10.51:8075/metricsserver returned HTTP status 500 Internal Server Error
But I am sure that
http://192.168.10.51:8075/metricsis fine.It happens by accident, but when I change the port 8075 to others and restart the prometheus it will be ok. But it only works for a while.