Hello,
I’d like to calculate a ratio between totalCalls and successCalls using a metric “log.prgoffer.foapi.baminfo.golden.exceptions”.
timeseries totalCalls=sum(log.prgoffer.foapi.baminfo.golden.exceptions),
interval:
duration(toLong(substring($Interval,from:0,to:stringLength($Interval)-1)),
unit:getCharacter($Interval,stringLength($Interval)-1))
and
timeseries successCalls=sum(log.prgoffer.foapi.baminfo.golden.exceptions),
filter: {
matchesValue(baminfo.exception, “OK”)
},
interval:
duration(toLong(substring($Interval,from:0,to:stringLength($Interval)-1)),
unit:getCharacter($Interval,stringLength($Interval)-1))