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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...