Skip to content

Commit

Permalink
Fixed the alert query for domains status
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman Shah committed Nov 19, 2024
1 parent 6a27021 commit ab5f35b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion argocd-helm-charts/prometheus-linuxaid/rules/domain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ groups:
rules:
- alert: monitor::domains::status
expr: |
probe_http_status_code != 0 and probe_http_content_length > 0
(probe_http_status_code == 0 or probe_http_status_code >= 500) and on(certname) probe_http_content_length <= 0
and on(certname) obmondo_monitoring{alert_id="monitor::domains::status"} > 0
labels:
severity: critical
Expand Down
4 changes: 2 additions & 2 deletions argocd-helm-charts/prometheus-linuxaid/tests/domain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ tests:
- series: obmondo_monitoring{certname="dev01.example", alert_id="monitor::domains::status"}
values: 1x1000
- series: probe_http_status_code{domain="example.com",certname="dev01.example"}
values: 200x100
values: 0x100
- series: probe_http_content_length{domain="example.com",certname="dev01.example"}
values: 150x100
values: 0x100

alert_rule_test:
- alertname: monitor::domains::status
Expand Down

0 comments on commit ab5f35b

Please sign in to comment.