Re: [prometheus-users] combine 2 querues

2020-12-21 Thread Alan Miller
Thank you Christian, For now, assuming I don't/can't fix the labels, this should give me CPU usage > 90% on "non-SQL servers" (by hostname convention) +-- percentage of time the machine is idle --+ |

Re: [prometheus-users] combine 2 querues

2020-12-17 Thread Christian Hoffmann
Hi, On 2020-12-17 23:06, Alan Miller wrote: The problem is that my "instance" fields are IP address:port (eg: 10.123.5.5:9182). The best solution would be to fix exactly this. ;) https://www.robustperception.io/controlling-the-instance-label So this query returns the instances and what looks

[prometheus-users] combine 2 querues

2020-12-17 Thread Alan Miller
I'm trying to create a prometheus rule that will detect when CPU usage is above 95% only on hostnames matching a string (eg: "^as(.*)" which are my application servers. The problem is that my "instance" fields are IP address:port (eg: 10.123.5.5:9182). So this query returns the instances and