There are 5 "Custom Metric (x)" each of them with 3 options : (sum), (cnt) and (avg) when creating DMI.
I have tried to use them in few reports but corresponding column is / are always empty.
I do not understand how to use them ?
How are they filled in and with what ?
In fact, for one of my HTTP SWS, i have configured "Operation Attributes (1)" and "... (2)" to retrieve a special code coming from the response body of the stream. It works fine, and i did reports showing these data.
OA1 corresponds to operations containing "KO", OA2 to operations containing "OK" expression = text.
BUT NOW i want
1°) the SUM of OA1 and AO2 = total of OK + KO operations
2°) the percentage of each of them =
a) OA1/(AO1 + OA2)
b) OA2/(AO1 + OA2)
I know how to build "Custom Metrics" using .Properties file, but i was wondering if i could use those 5 OTB metrics called "Custom Metric (x)" and use their (sum), (cnt) and (avg) options ?
Thanks in advanced for your assistance.
First, many thanks for your advice and your interest in my question.
I followed the link you gave me but i didn't learn more details that i already knew.
As i wrote, i have already configured Operation Attribute 1, 2, 3 to extract details i was looking for from the response body, using Text Phrase Search and regex.
So i have already :
- number of OK operations ... in Operation Attribute 1
- number of KO operations ... in Operation Attribute 2
- the expression of the response body when KO ... in Operation Attribute 3, because it contains an error message i want to display in my reports ... SO I AM JUST I LITTLE PROUD OF THIS JOB !
now i want, i need, the total = [AE1] + [AE2]
and the percentage of each ==>
Percentage of OK ... should be [AE1]/([AE1]+[AE2])
and Percentage of KO ... should be [AE2]/([AE1]+[AE2])
I believed that i could get them easily but in fact not.
I wanted to avoid to build a dmi_xxxxx.properties file for defining these 3 metrics using Custom metrics features, but it is not possible, i think ... so i am going to create this file and let you know if i succeed this way.
If you have any suggestions, it would be great to read them.
Have you looked into creating a compound metric? When defining an alert in the RUM console, you can build a compound metric based on the custom metrics you have defined.
Please let me know if that works.