I'm not sure whether this is possible or not but really hoping for some way to use sub-buckets on the Y-axis when doing a visualization. I've got a setup where metric beat collects prometheus metrics from various hosts and what I'd like to create is a visualization of memory used ie heap - nonheap for java processes on each host.
The query for what Im attempting to graph is something along these lines:
((prometheus.labels.area:heap) and (prometheus.metrics.jvm_memory_bytes_used: * )) - ((prometheus.labels.area:nonheap) and (prometheus.metrics.jvm_memory_bytes_used: * ))
Trying to graph this however Im finding is challenging because I can't seem to be able to put the area:heap/nonheap anywhere in the visualisation
The grouping I've got on the x-axis sorted by the 'instance _name' label but I'd love to know how to select a double field when doing the graph or directly use the KQL query or if there is some other way to do this