Splunk AppDynamics

How to use regex in healthrule for custom metrics

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I have to upload ActiveMQ metrics on controller as custom metrics. I want to create a health rule for a metric using regex so that 1 health rule can be applied to hosts.

Example: This is a full path for my ActiveMQ metrics. myhostname1 and myhostname2 are 2 hosts. MyBrokename1 and MyBrokename2 are broker name.

Application Infrastructure Performance|app|Custom Metrics|ActiveMQ|myhostname1|Broker|MyBrokename1|Queue|poc.appdynamics.Queue|QueueSize

Application Infrastructure Performance|app|Custom Metrics|ActiveMQ|myhostname2|Broker|MyBrokename2|Queue|poc.appdynamics.Queue|QueueSize

I am looking for something like below where the hostname ad broker is a regular expression.

Application Infrastructure Performance|app|Custom Metrics|ActiveMQ|*|Broker|*|Queue|poc.appdynamics.Queue|QueueSize

Can someone help me to achieve this?

^ Edited by @Ryan.Paredez to improve grammar and readability. 

Labels (3)
0 Karma
1 Solution

Pratik_Maskey
Communicator

Hello,

Could you try creating the HR configuration after selecting Type as Node Health - Hardware .... and copy the full path of metric from metric browser. Trim till "custom metric" and use the metric path as per attached screenshot. 

image.pngimage.png

Regards,

Pratik

View solution in original post

Pratik_Maskey
Communicator

Hello,

Could you try creating the HR configuration after selecting Type as Node Health - Hardware .... and copy the full path of metric from metric browser. Trim till "custom metric" and use the metric path as per attached screenshot. 

image.pngimage.png

Regards,

Pratik

CommunityUser
Splunk Employee
Splunk Employee

Thanks It worked

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...