nlighten/tomcat_exporter

404 after deploying metrics.war

Closed this issue · 6 comments

ttcol commented

Downloaded jar files of the latest version, moved them to my /opt/tomcat/lib/ folder. Downloaded tomcat_exporter_servlet.war, renamed it to metrics.war, added it to webapps folder that has another application of mine running. http://host:8080/metrics returns 404. Checked my logs and there is nothing significant unlike the 404. How can i resolve this?!!

to be honest this does not give me a lot to go on. Could you share an ls -la of both the webapps and lib directories and the tomcat logs?

ttcol commented

This is the result of ls -la of webapps
webapps

This is the result of ls -la of lib
lib

Below is ls -la of my log files. You could probably specify which one I should share
image

Looks like simpleclient_servlet_common is missing in the lib directory. Can you validate and test?

If this does not help please share the catalina.out from the time of restart.

ttcol commented

image
Finally no 404 error. If above is the output I am supposed to receive, then thank you so much, you have saved my day. Cheers!!!!!

Yes. This is the expected output.

ttcol commented

Thank you so much...!!!