Monitoring HTTP Metrics with JMX

Monitoring HTTP Metrics with JMX

AuthorFullName__c
JFrog Support
articleNumber
000001388
ft:sourceType
Salesforce
FirstPublishedDate
2016-10-06T13:38:20Z
lastModifiedDate
2024-03-10T07:48:26Z
VersionNumber
6

You cannot monitor HTTP Status Code metrics from Artifactory out-of-the-box. However, there is very little modification necessary to accomplish this. You will need to add the JAMon library to Tomcat. 

 

You can do this in three easy steps:

1.Add jamon-2.8.jar to your $ARTIFACTORY_HOME/tomcat/lib directory

2.Add jamon.war to your $ARTIFACTORY_HOME/tomcat/webapps directory

3.Add the following line to your server.xml under $ARTIFACTORY_HOME/tomcat/conf like so:

<Engine name="Catalina" defaultHost="localhost">

 <Host name="localhost" appBase="webapps"/>

 <Valve className="com.jamonapi.http.JAMonTomcatValve"/>

 </Engine>

You will now be able to monitor these values with JConsole!