[
https://jira.jboss.org/jira/browse/JBAS-5529?page=com.atlassian.jira.plug...
]
Charles Crouch commented on JBAS-5529:
--------------------------------------
Some additional application related components and metrics which would be good to have
(more to come)
Web Application (WAR) additional metrics and operations
<!--
jboss.management.local:J2EEApplication=null,J2EEServer=Local,j2eeType=WebModule,name=<NAME>
-->
<operation name="start"
description="starts this webapp; NOTE: this operation is *not*
supported for JBossAS versions prior to 4.0.4.GA (see
http://jira.jboss.org/jira/browse/JBAS-3006)">
<results><c:simple-property name="operationResult"
description="Outcome of starting the webapp."/></results>
</operation>
<operation name="stop"
description="stops this webapp; NOTE: this operation is *not*
supported for JBossAS versions prior to 4.0.4.GA (see
http://jira.jboss.org/jira/browse/JBAS-3006)">
<results><c:simple-property name="operationResult"
description="Outcome of stopping the webapp."/></results>
</operation>
<operation name="reload"
description="reloads this webapp; NOTE: if the webapp is not in
the started state, this operation will fail">
<results><c:simple-property name="operationResult"
description="Outcome of restarting the webapp."/></results>
</operation>
<metric property="ContextRoot" displayName="Context Root"
dataType="trait" displayType="summary"
description="this WAR's context root - used as a unique path
prefix for URLs corresponding to this WAR"/>
<metric property="Servlet.MinResponseTime" displayName="Min.
Servlet Resp. Time"
units="milliseconds"
description="Minimum response time of a servlet"/>
<metric property="Servlet.AvgResponseTime" displayName="Avg.
Servlet Resp. Time"
units="milliseconds"
description="Average response time of a servlet"/>
<metric property="Servlet.MaxResponseTime" displayName="Max.
Servlet Resp. Time"
units="milliseconds"
description="Maximum response time of a servlet"/>
<metric property="Servlet.TotalTime" displayName="Total
processing time"
units="milliseconds"
description="Total processing time of the webapp"
measurementType="trendsup"/>
<metric property="Servlet.NumRequests" displayName="Requests
served"
units="none" description="Number of requests served by
servlets"
measurementType="trendsup"
displayType="summary"/>
<metric property="Servlet.NumErrors" displayName="Errors
while processing"
units="none" description="Number of errors while
processing"
measurementType="trendsup"
displayType="summary"/>
<metric property="Session.activeSessions"
displayName="Currently Active Sessions"
units="none" description="Number active sessions for
the webapp right now" />
<metric property="Session.maxActive" displayName="Maximum
number of Active Sessions"
units="none" description="Maximum number of active
sessions for the webapp" />
<metric property="Session.sessionCounter"
displayName="Sessions created"
units="none" description="Number of sessions created
for the webapp"
measurementType="trendsup" />
<metric property="Session.expiredSessions"
displayName="Expired Sessions"
units="none" description="Number of expired sessions
for the webapp"
measurementType="trendsup" />
<metric property="Session.rejectedSessions"
displayName="Rejected Sessions"
units="none" description="Number of sessions rejected
for the webapp"
measurementType="trendsup" />
<metric property="Session.sessionAverageAliveTime"
displayName="Session Average alive time"
units="seconds" description="Average alive time of a
Sessions" />
<metric property="Session.sessionMaxAliveTime"
displayName="Max Session alive time"
units="seconds" description="Maximum alive time of a
Sessions" />
<metric property="Vhost.name" displayName="Vhost"
dataType="trait" defaultOn="true"
description="Virtual hosts this app runs on"/>
EJB3 Session Bean metrics (in addition to availability)
<!--
ear=rhq.ear,jar=rhq-enterprise-server-ejb.ejb3,name=AgentManagerBean,service=EJB3 -->
<!-- jboss.j2ee:jar=SimpleSLSB.jar,name=SimpleSLSB,service=EJB3 -->
<metric displayName="Current Count"
property="CurrentSize"/>
<metric displayName="Create Count" property="CreateCount"
displayType="summary" measurementType="trendsup"
description="the number of instances of this EJB that have been
created"/>
<metric displayName="Remove Count" property="RemoveCount"
displayType="summary" measurementType="trendsup"
description="the number of instances of this EJB that have been
removed"/>
<metric displayName="Available Count"
property="AvailableCount"/>
<metric displayName="Max Size" property="MaxSize"/>
EJB 1.x or 2.x Stateless Session Bean metrics (in addition to availability)
<!--
jboss.management.local:name=%name%,J2EEServer=Local,J2EEApplication=%j2eeApplication%,EJBModule=%ejbJar%,j2eeType=StatelessSessionBean
-->
<metric displayName="Create Calls"
property="{stats.createCount.count}"
displayType="summary"
measurementType="trendsup"/>
<metric displayName="Remove Calls"
property="{stats.removeCount.count}"
displayType="summary"
measurementType="trendsup"/>
<metric displayName="Method-Ready Beans"
property="{stats.methodReadyCount.current}"
displayType="summary"/>
<metric displayName="Pool Size"
property="{{jboss.j2ee:jndiName=%name%,plugin=pool,service=EJB}CurrentSize}"/>
<metric displayName="Max Pool Size"
property="{{jboss.j2ee:jndiName=%name%,plugin=pool,service=EJB}MaxSize}"/>
Add support for JBAS, JBossWeb and JBossWeb connector components
----------------------------------------------------------------
Key: JBAS-5529
URL:
https://jira.jboss.org/jira/browse/JBAS-5529
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Reporter: Charles Crouch
Assignee: Scott M Stark
We've got support for monitoring and configuring datasource and jms destinations, we
should extend this support so that we can discover and monitor (initially) other resource
types e.g. JBoss AS server instance itself, JBossWeb container (monitoring things like
Total Number of Requests Served) and JBossWeb connectors (collecting stats like Bytes
Received/Bytes Sent).
In the future this could be extended to other services within the appserver (e.g. EJB
container) and also add support for configuring these, however at the moment the above
would be a good start.
Here is an initial list:
JBAS Metrics (in addition to availablity)
<metric property="partitionName" dataType="trait"
displayType="summary"
description="the name of the cluster partition this app server
instance belongs to"/>
<metric displayName="Version Name"
property="jboss.system:type=Server:VersionName"
dataType="trait" displayType="summary"
description="the code name for the this app server instance's
major version (AS 3.2 = WonderLand, AS 4.0 = Zion, AS 4.2 = Trinity, EAP 4.x = EAP, SOA
4.x = SOA)"/>
<metric displayName="Build Date"
property="jboss.system:type=Server:BuildDate"
dataType="trait" displayType="summary"
description="the date this app server was built"/>
<metric displayName="Start Date"
property="jboss.system:type=Server:StartDate"
dataType="trait" displayType="summary"
description="the date and time this app server instance was
started"/>
<metric property="jboss.system:type=ServerInfo:ActiveThreadCount"
displayName="Active Thread Count"
defaultInterval="300000" displayType="summary"
category="throughput"/>
<metric property="jboss.system:type=ServerInfo:ActiveThreadGroupCount"
displayName="Active Thread Group Count"
defaultInterval="300000" defaultOn="true"
category="throughput"/>
<metric property="jboss.system:type=ServerInfo:FreeMemory"
displayName="JVM Free Memory" displayType="summary"
defaultInterval="300000" defaultOn="true"
category="utilization" units="bytes"/>
<metric property="jboss.system:type=ServerInfo:MaxMemory"
displayName="JVM Max Memory"
defaultInterval="1800000" defaultOn="true"
category="utilization" units="bytes"/>
<metric property="jboss.system:type=ServerInfo:TotalMemory"
displayName="JVM Total Memory" displayType="summary"
defaultInterval="300000" defaultOn="true"
category="utilization" units="bytes"/>
<metric property="jboss:service=TransactionManager:TransactionCount"
displayName="Transactions Active"
defaultInterval="300000" defaultOn="true"
category="utilization"/>
<metric property="jboss:service=TransactionManager:CommitCount"
displayName="Transactions Committed" displayType="summary"
measurementType="trendsup"
defaultInterval="600000" defaultOn="true"
category="utilization"/>
<metric property="jboss:service=TransactionManager:RollbackCount"
displayName="Transactions Rolledback" measurementType="trendsup"
defaultInterval="600000" defaultOn="true"
category="utilization"/>
JBossWeb Server
Just need availability
JBossWeb connectors metrics (in addition to availability)
<!-- jboss.web:name=http-0.0.0.0-8080,type=GlobalRequestProcessor:maxTime
-->
<metric
property="jboss.web:name=%schema%%dash%%address%-%port%,type=GlobalRequestProcessor:maxTime"
displayName="Maximum Request Time"
description="Maximum time it took to process a request"
units="milliseconds"
defaultOn="true" category="performance"/>
<!--
jboss.web:name=http-0.0.0.0-8080,type=GlobalRequestProcessor:requestCount -->
<metric
property="jboss.web:name=%schema%%dash%%address%-%port%,type=GlobalRequestProcessor:requestCount"
displayName="Request count" description="Total number
of requests processed since last restart."
defaultOn="false" category="utilization"
measurementType="trendsup"/>
<!--
jboss.web:name=http-0.0.0.0-8080,type=GlobalRequestProcessor:errorCount -->
<metric
property="jboss.web:name=%schema%%dash%%address%-%port%,type=GlobalRequestProcessor:errorCount"
displayName="Error count" description="Number of
errors while processing since last restart."
defaultOn="true" category="utilization"
measurementType="trendsup"/>
<!-- jboss.web:name=http-0.0.0.0-8080,type=ThreadPool:currentThreadsBusy
-->
<metric
property="jboss.web:name=%schema%%dash%%address%-%port%,type=ThreadPool:currentThreadsBusy"
displayName="Threads Active"
defaultOn="true" category="utilization"
displayType="summary"/>
<!-- jboss.web:name=http-0.0.0.0-8080,type=ThreadPool:currentThreadCount
-->
<metric
property="jboss.web:name=%schema%%dash%%address%-%port%,type=ThreadPool:currentThreadCount"
displayName="Threads Allocated"
defaultOn="true" category="utilization"
displayType="summary"/>
JBossWeb vhost metrics (in addition to availability)
<metric property="jboss.web:type=Host,host=%name%:aliases"
displayName="Aliases"
defaultOn="true" dataType="trait" />
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira