问题原文
原帖链接 · kelunik · CC BY-SA 3.0
I have multiple series for stats.counters.app.view.isbn.fetch.found.{yes,no}.$service. I want to calculate the failure rate per $service.
#AreduceSeries(mapSeries(group(#B, #C), 0), 'asPercent', 1, 'none', 'total')#BaliasSub(groupByNode(stats.counters.app.view.isbn.fetch.found.*.*.rate, 8, "sumSeries"), "^(.*)$", "\1.total")#CaliasSub(groupByNode(stats.counters.app.view.isbn.fetch.found.no.*.rate, 8, "sumSeries"), "^(.*)$", "\1.none")
However, this results in an error. From all possible variants I tried, this one feels the most correct, but it still fails.
已采纳解答
原帖链接 · kelunik · CC BY-SA 3.0
I think I got it. It can be solved using groupByNode.
#AgroupByNode(group(#B, #C), 0, 'asPercent')#BaliasSub(groupByNode(stats.counters.app.view.isbn.fetch.found.yes.*.rate, 8, "sumSeries"), "^(.*)$", "\1.yes")#CaliasSub(groupByNode(stats.counters.app.view.isbn.fetch.found.no.*.rate, 8, "sumSeries"), "^(.*)$", "\1.no")
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
