Re: [prometheus-users] PromQL: comparison to custom metric and/or static threshold

2020-05-11 Thread Harald Koch
On Mon, May 11, 2020, at 11:47, Justin W wrote: > Hi all, > > I'm trying to compare the calculated filesystem used to either a static > threshold, or a custom threshold if a certain metric is present. What I have > so far is: > > ((avg(node_filesystem_used_bytes{mountpoint=~".*foo.*"}) by > (s

[prometheus-users] PromQL: comparison to custom metric and/or static threshold

2020-05-11 Thread Justin W
Hi all, I'm trying to compare the calculated filesystem used to either a static threshold, or a custom threshold if a certain metric is present. What I have so far is: ((avg(node_filesystem_used_bytes{mountpoint=~".*foo.*"}) by (site)/avg( node_filesystem_size_bytes{mountpoint=~".*foo.*"}) by (