We have Coherence JMX metrics through the Java agent (v9.0.6.5) by doing the following.
On the Coherence instance:
-Dtangosol.coherence.management=all
In the agent installation, make sure that WebAppSupport.jar is in the wily/ext directory. If it's not, either copy it to the wily/ext directory or create a symlink to it.
In the agent profile, we have (the filter was filtered down to what we needed):
#######################
# JMX Configuration
#
# ================
# Controls collection of data from JMX MBeans;
# set to true to gather JMX data in the Introscope Agent.
# You must restart the managed application before changes to this property take effect.
introscope.agent.jmx.enable=true
# Configure primary name keys to use for conversion of
# MBean names into Introscope metric names;
# A comma-separated, ordered list of keys which
# should uniquely identify a particular MBean.
# You must restart the managed application before changes to this property take effect.
#introscope.agent.jmx.name.primarykeys=
# Controls which JMX data is gathered - a comma-separated
# list of desired keywords If the Introscope metric name contains
# one of them, the metric will be polled by the Introscope Agent.
# Leave empty to include all MBean data available in the system.
# * and ? wildcard characters are supported and can be escaped with \\.
# You must restart the managed application before changes to this property take effect.
introscope.agent.jmx.name.filter=Cluster:ClusterName,Cluster:ClusterSize,Cluster:MemberIds,Cluster:Members,Cluster:Running,Node:Id,Node:MachineName,Node:MemoryAvailableMB,Node:MemoryMaxMB,Node:PacketDeliveryEfficiency,Node:PacketsRepeated,Node:PacketsResent,Node:ProcessName,Node:PublisherSuccessRate,Node:ReceiverSuccessRate,Node:RoleName,Node:TrafficJamCount,Node:TrafficJamDelay,Node:UnicastAddress,Node:UnicastPort,PointToPoint:PauseRate,PointToPoint:Paused,PointToPoint:PublisherSuccessRate,PointToPoint:ReceiverSuccessRate,PointToPoint:ViewerStatistics,Service:PartitionsEndangered,Service:PartitionsUnbalanced,Service:PartitionsVulnerable,Service:RequestAverageDuration,Service:RequestMaxDuration,Service:RequestPendingCount,Service:RequestPendingDuration,Service:RequestTimeoutCount,Service:StatusHA,Service:TaskHungCount,Service:TaskHungDuration,Cache:AverageGetMillis,Cache:AverageHitMillis,Cache:AverageMissMillis,Cache:AveragePutMillis,Cache:CacheHits,Cache:CacheHitsMillis,Cache:CacheMisses,Cache:CacheMissesMillis,Cache:Size,Cache:Units,WebLogicHttpSessionManager:LocalAttributeCount,WebLogicHttpSessionManager:LocalSessionCount,WebLogicHttpSessionManager:SessionAverageLifetime,WebLogicHttpSessionManager:SessionAverageSize,WebLogicHttpSessionManager:SessionMaxSize,WebLogicHttpSessionManager:SessionMinSize,WebLogicHttpSessionManager:SessionTimeout,WebLogicHttpSessionManager:SessionUpdates
# Controls which (if any) JMX MBean attributes are to be ignored.
# A comma-separated list of desired keywords. If an MBean attribute
# name matches one in this list then it will be ignored.
# Leave empty to include all MBean attributes.
# You must restart the managed application before changes to this property take effect.
#introscope.agent.jmx.ignore.attributes=server
# Controls whether or not to include string-valued metrics.
# Excluding string-valued metrics reduces the overall metric
# count, improving agent and EM performance. To enable
# string-valued metrics, set this property value to false.
# You must restart the managed application before changes to this property take effect.
introscope.agent.jmx.excludeStringMetrics=false