If I have the following modified query: | mstats p95(prometheus.container_memory_working_set_bytes) as p95_memory_bytes span=1m where pod=sf-mcdata--hydration-worker* AND stack=* by stack
| eval p95_memory_percent=100*p95_memory_bytes/(8*1024*1024*1024)
| stats first(p95_memory_percent) as first_p95_memory_percent by stack,_time
| eval threshold = 85
| eval aboveThreshold = if (first_p95_memory_percent > 6,1,0)
| stats sum(aboveThreshold) as amountAboveThreshold by stack I would want to create an alert with the following trigger: search amountAboveThreshold = 10 and this alert will run every minute over the last 10 minutes. did I get it right?
... View more