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!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...