Using MAL to track running percentage #11062
-
|
I have a process that creates two meters exp: "(junit_test_success*100 / (junit_test_success + junit_test_failed)).sum(['service']).service(['service'], Layer.GENERAL)")This works for tracking the success rate for a given day but not for the success rate at a specific time. I would have to manually iterate each record for that day to determine the success rate at that time. I tried downsampling by sum, latest, and average but none of those functions get me there. Am I crazy or is the MAL system missing a way to keep track of a running percentage? I know it's possible as it looks like OAL is able to do it. Do I need to introduce a similar function for MAL? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
I am not following the cause. Could you put the examples of data? |
Beta Was this translation helpful? Give feedback.
-
|
And is junit_test_success a counter or gauge? |
Beta Was this translation helpful? Give feedback.


https://skywalking.apache.org/docs/main/v9.5.0/en/api/metrics-query-expression/
New query in 9.5.0