mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 18:36:59 +08:00
nginx: adding latency metric
This commit is contained in:
parent
07dde61116
commit
34e62cb327
1 changed files with 4 additions and 0 deletions
|
|
@ -732,6 +732,10 @@ groups:
|
||||||
description: Too many HTTP requests with status 5xx (> 5%)
|
description: Too many HTTP requests with status 5xx (> 5%)
|
||||||
query: 'sum(rate(nginx_http_requests_total{status=~"^5.."}[1m])) / sum(rate(nginx_http_requests_total[1m])) * 100 > 5'
|
query: 'sum(rate(nginx_http_requests_total{status=~"^5.."}[1m])) / sum(rate(nginx_http_requests_total[1m])) * 100 > 5'
|
||||||
severity: error
|
severity: error
|
||||||
|
- name: Nginx latency high
|
||||||
|
description: Nginx p99 latency is higher than 10 seconds
|
||||||
|
query: 'histogram_quantile(0.99, sum(rate(nginx_http_request_duration_seconds_bucket[30m])) by (host, node)) > 10'
|
||||||
|
severity: warning
|
||||||
|
|
||||||
- name: Apache
|
- name: Apache
|
||||||
exporters:
|
exporters:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue