<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>PromQL on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/promql/</link><description>Recent content in PromQL on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Sun, 21 Aug 2022 11:22:55 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/promql/atom.xml" rel="self" type="application/rss+xml"/><item><title>Common Prometheus Alerting Queries for Various Resources</title><link>https://www.chenshaowen.com/en/blog/some-common-promql-for-alarming.html</link><pubDate>Sun, 21 Aug 2022 11:22:55 +0000</pubDate><atom:modified>Sun, 21 Aug 2022 11:22:55 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/some-common-promql-for-alarming.html</guid><description>Hosts Host memory usage exceeds threshold 1 - node_memory_MemAvailable_bytes{mode!=&amp;quot;idle&amp;quot;} / node_memory_MemTotal_bytes
Threshold: 0.9
Host CPU usage exceeds threshold 1 - avg(irate(node_cpu_seconds_total{mode=&amp;quot;idle&amp;quot;}[5m])) by (host_name)
Threshold: 0.85
Host disk usage exceeds threshold 1 - avg without (fstype)(node_filesystem_free_bytes{fstype!='rootfs',mountpoint!~'/(run|var|snap).*'} / node_filesystem_size_bytes{fstype!='rootfs',mountpoint!~'/(run|var|snap).*'})
Threshold: 0.8
Windows Windows host memory usage exceeds threshold 1 - 1 * windows_os_physical_memory_free_bytes{job=&amp;quot;windows_exporter&amp;quot;,mode!</description><dc:creator>微信公众号</dc:creator><category>Prometheus</category><category>Alerting</category><category>Monitoring</category><category>Operations</category><category>PromQL</category></item></channel></rss>