After upgrading the java cartridge, JMS AvailableMessageCount is missing .
availablemessagecount used to be collected, the agent is not collecting it for JavaEE cartridge.
Looks like user can enable the collection for that metric again without any side effects. It was removed from collection since JavaEE 5.5.0 because it wasnt being shown in the UI anywhere. But there doesnt seem to be a problem if they enable it, they can put it in custom dashboards.
So if you look at the agent_home/config/agent directory it has 3 sets of folders which is categorized based on what is collected. Collectors folder has all the config for all metrics except request metrics. So thats where youll look. With appserver vendor and the version youll find out which config file is relevant.
In this case the relevant ones are websphere-6.config and websphere-6.xform. Then if you search for the word AvailableMessageCount and youll see the place to modify. Its actually in the performasure loop so you just need to copy the line and place it before the performasure loop eg below. Same thing needs to be done in the xform config also.
If you want to do it on the agent side only, then copy the files form agent directory and put it in the agent-override directory and make the changes there. Appserver restart necessary to take effect.
Or if you want to do it on the FMS side, you can access these config files from agent propreties page config name will be agent_collector_websphere-6.config and agent_collector_websphere-6.xform etc. no appserver restart necessary.
# Service integration bus stats
/^SIB\ Service>SIB\ Messaging\ Engines>.+>Destinations>Queues>[^>]+$/: (
"TotalMessagesProducedCount", # for model filtering only
For older agent versions reporting to new FMS, these changes need to be done in Agent Properties|JavaEE-Compatibility |version namespace