DX Application Performance Management

 View Only

Regular Expressions and Metric Groupings Guide 

Jun 19, 2015 04:54 PM

One caveat on page 10: the negative lookahead is wrong: (?!=xxxxx). The "=" shouldn't be there. Afterwards you used it correctly in the example: EJB\|MainEJB\|(?!Do)([^\|:]*):Response Time \(ms\).

 

Kudos to MatthiasNovaTec for spotting it!

Statistics
0 Favorited
5 Views
1 Files
0 Shares
17 Downloads
Attachment(s)
pdf file
RegEx-Guide.pdf   337 KB   1 version
Uploaded - May 29, 2019

Tags and Keywords

Comments

Sep 22, 2017 12:45 PM

I tried different regex as .* instead of (.*) and it worked.

I still don't under stand, how is it making difference here.

I just wanted it to search everything as current and do it multiple times.

Sep 06, 2017 06:06 PM

Yeah, I added it to metric grouping.

It is weird that I am using the similar kind of regex in other metric expressions and it is working there.

Let us hold on this one and I will do some research at my end and will update this group if I find something different.

Sep 06, 2017 05:10 PM

the regex is applied to your metric grouping, then the graph then applies its Top N calculation for viewing.

did you set the graph to use your metric grouping where you have the regex?

Sep 06, 2017 05:05 PM

I think that I am not going in right direction.

My graph is set to show to 70 metrics.

The regex seems to be working but it never gets filtered out from graph.

Is it because the graph must has to pull top 70 processes and ignore the regex?

Sep 05, 2017 09:17 PM

For these agent names, I'd do the following:

 

(.*)\|base\|t1\-(?!test|proxy)(.*)

Sep 05, 2017 05:22 PM

(.*)\|base\|t1\-test

(.*)\|base\|t1\-proxy

I want to show everything but "test" and "proxy".

I am able to filter a few of the single values.

May be I am missing something here and dig in more.

But, your feedback will help me for sure.

Sep 05, 2017 04:32 PM

Can you provide an example of the full metric string? Please provide one of each type.

 

In your current example, you'd want to put the exclude before your wildcard, depending on the strings you're filtering against.

Sep 05, 2017 04:11 PM

(.*)(?!test)

OR

(.*)(?!test|proxy)

Any of these are not working.

The goal here is to filter out both "test" and "proxy".

Sep 05, 2017 12:45 PM

Also note that the colon symbol can only be used once in a expression as it denotes the separation between metric path and metric name in CA APM.

Sep 05, 2017 12:06 PM

The use of semicolon is not valid in a regular expression.

You need to combine them inside your parenthesis by using a pipe symbol.

Sep 05, 2017 11:16 AM

How do I filter multiple agents in one expression?

Like: EJB\|MainEJB\|(?!Do)([^\|:]*);(?!test):Response Time \(ms\)

Jul 14, 2015 12:36 PM

Thanks, MatthiasNovaTec! It's an old document and I added your comment above.

Jul 14, 2015 07:41 AM

Hello Günter,

 

many thanks for this helpful guide. Especially the part about metric tree levels will help me in the future.

 

As remark: On page 10 the negative lookahead looks wrong to me (?!=xxxxx). The "=" shouldn't be there. Afterwards you used it correctly in the example: EJB\|MainEJB\|(?!Do)([^\|:]*):Response Time \(ms\)

 

Greetings,

Matthias

Related Entries and Links

No Related Resource entered.