Closed juergenfl closed 1 year ago
Hi @juergenfl, unfortunately there is no way to use either the grouping() or the groupBy() function of the MQL language with the metrics plugin at this point. There are really two related but separate enhancements to the plugin either of which would address your comment:
ok, thanks!
Hi all, is it possible to define a kind of raw query with a complex MQL string instead of a single metric name?
Example: Prometheus node exporter is providing these metrics (among others):
node_filesystem_size_bytes node_filesystem_avail_bytes
To use them to plot the filesystem utilization, we have to use this MQL query:
( node_filesystem_size_bytes[1m]{mountpoint=\"/\"}.grouping().mean() - node_filesystem_avail_bytes[1m]{mountpoint=\"/\"}.grouping().mean() ) / node_filesystem_size_bytes[1m]{mountpoint=\"/\"}.grouping().mean() * 100
Any idea how to achieve this with the current plugin?