See in attached screenshot - a service is called three times, there are different values for min, max and avg in active collection but the chart lines are same for all three metrics.
Created attachment 793505 [details] Screenshot Notice the metrics in service overview and no difference in SRT gadget
It seems that the issue is in active collection. If I execute the query manually then I get something like this { "interface":"org.jboss.soa.qa.rtgsrt.SRTService", "timestamp":1378278790293, "min":1024, "max":1024, "serviceType":"{ urn:switchyard-soa:rtgov_srt:0.1.0 }SRTTest/SRTService", "operation":"twoWay", "fault":null, "average":1024, "requestId":null, "responseId":null, "context":[], "properties":{ }
AggregateServiceResponseTime.mvel uses only getAverage() calls never getMin() or getMax() - is it correct?
This is probably where the issue is - it averages based on the average value of each response time, setting the min/max values of those averages, rather doing an average calc for min, avg and max separately.
Have applied a change to the mvel script (https://github.com/Governance/rtgov/commit/9c547e723ff0608835c9992dcab3bf956f7d8a9e) - could you try this out, as not sure whether this is related to the issue you are seeing. If not, then can you provide more information to help reproduce the problem scenario.
It works as expected, good job
Verified in ER3
Gary Brown <gary> updated the status of jira RTGOV-268 to Closed