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!
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.
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.
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?
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?
For these agent names, I'd do the following:
(.*)\|base\|t1\-(?!test|proxy)(.*)
(.*)\|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.
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.
(.*)(?!test)
OR
(.*)(?!test|proxy)
Any of these are not working.
The goal here is to filter out both "test" and "proxy".
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.
The use of semicolon is not valid in a regular expression.
You need to combine them inside your parenthesis by using a pipe symbol.
How do I filter multiple agents in one expression?
Like: EJB\|MainEJB\|(?!Do)([^\|:]*);(?!test):Response Time \(ms\)
Thanks, MatthiasNovaTec! It's an old document and I added your comment above.
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