Splunk AppDynamics

Get State of Connection Pool Weblogic

Angelo_Ferecini
Explorer

Hi folks, 

I'm trying to capture the State field of the JDBCConnectionPoolRuntime mbean, but I haven't been successful so far. Has anyone tried this? Is it possible to capture strings fields contained in mbeans?

Thank you so much

Carlos Coqueiro

Labels (1)
0 Karma
1 Solution

Morelz
Builder

Hi Angelo

Seeing as you need to collect metrics, you can't graph strings:)

I would suggest you use a getter chain in JMX like below for the state value you require

Metric Getter Chain: replaceAll(Running,1)

This way you can graph the different states with different integer values as well as create health rule on the values

Ciao

View solution in original post

Morelz
Builder

Hi Angelo

Seeing as you need to collect metrics, you can't graph strings:)

I would suggest you use a getter chain in JMX like below for the state value you require

Metric Getter Chain: replaceAll(Running,1)

This way you can graph the different states with different integer values as well as create health rule on the values

Ciao

Angelo_Ferecini
Explorer

Hello Mario,

Thank you so much for your suggestion, worked! Another question, for each state I will have a different metric chain, correct?

Thank you so much again.

Ciao

Morelz
Builder
Anytime:)

If I understand your request correctly, I believe you could use one getter chain.

Can concatenate it together, I haven't tested it but should work as below.

replaceAll(Running,1). replaceAll(Stopped,2). replaceAll(Suspended,3)

That way it stays one metric and the value will change as the state changes.

Otherwise you a create seperate metric chains per status.

Ciao
0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...