Skip to content

Commit

Permalink
chore(alerting): changes on rules and alert config
Browse files Browse the repository at this point in the history
Signed-off-by: Abhilash Shetty <[email protected]>
  • Loading branch information
abhilashshetty04 committed Sep 4, 2024
1 parent ac1fc45 commit e78b936
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
6 changes: 6 additions & 0 deletions deploy/charts/rules/lvmLocalPV/lvmlocalpv-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"expr": "lvm_vg_missing_pv_count > 0",
"for": "5m",
"labels": {
"service": "openebs",
"engine": "lvm-localpv",
"severity": "critical"
}
},
Expand All @@ -28,6 +30,8 @@
"expr": "((lvm_vg_total_size_bytes - lvm_vg_free_size_bytes)/lvm_vg_total_size_bytes)*100 > 90",
"for": "5m",
"labels": {
"service": "openebs",
"engine": "lvm-localpv",
"severity": "critical"
}
},
Expand All @@ -42,6 +46,8 @@
"expr": "lvm_lv_used_percent{segtype=\"thin-pool\"} > 90",
"for": "5m",
"labels": {
"service": "openebs",
"engine": "lvm-localpv",
"severity": "critical"
}
}
Expand Down
20 changes: 18 additions & 2 deletions deploy/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,31 @@ kube-prometheus-stack:

config:
global:
smtp_smarthost: 'smtp.org:587'
smtp_from: '[email protected]'
smtp_auth_username: '[email protected]'
smtp_auth_password: "password"
resolve_timeout: 5m
route:
group_by: ["alertname", "job", "volName"]
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
receiver: "null"
receiver: team-X-mails

routes:
- matchers:
- service="openebs"
receiver: openebs-email
receivers:
- name: "null"
- name: 'team-X-mails'
email_configs:
- to: '[email protected]'
send_resolved: true
- name: 'openebs-email'
email_configs:
- to: '[email protected]'
send_resolved: true
templates:
- /etc/alertmanager/config/*.tmpl

Expand Down

0 comments on commit e78b936

Please sign in to comment.