When I try the accepted solution I get the error: Cannot filter on 'metric_name' in normalized syntax. Here's my query: | mstats avg(value) AS mem_b WHERE index="my-index" AND metric_name="jvm_memory_used" span=1m BY "app.name" | eval mem_gb = mem_b / 1024 /1024 / 1024 | stats max(mem_gb) BY "app.name"
... View more