Skip to content

Commit eff5254

Browse files
Merge pull request #119 from openebs/alert_changes
chore(alerting): changes on rules and alert config
2 parents ac1fc45 + 846ea29 commit eff5254

File tree

14 files changed

+33
-9
lines changed

14 files changed

+33
-9
lines changed

deploy/charts/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ keywords:
2222
# This is the chart version. This version number should be incremented each time you make changes
2323
# to the chart and its templates, including the app version.
2424
# Versions are expected to follow Semantic Versioning (https://semver.org/)
25-
version: 3.0.0
25+
version: 4.0.0
2626

2727
# This is the version number of the application being deployed. This version number should be
2828
# incremented each time you make changes to the application. Versions are not expected to
2929
# follow Semantic Versioning. They should reflect the version the application is using.
30-
appVersion: 3.0.0
30+
appVersion: 4.0.0
3131

3232
dependencies:
3333
- name: kube-prometheus-stack
34-
version: "58.0.*"
34+
version: "61.0.*"
3535
repository: https://prometheus-community.github.io/helm-charts
3636
condition: kube-prometheus-stack.install
3737
- name: node-problem-detector
File renamed without changes.

deploy/charts/dashboards/mayastor/volume-replica.json renamed to deploy/charts/dashboards/mayastor/mayastor-volume-replica.json

File renamed without changes.
File renamed without changes.

deploy/charts/rules/lvmLocalPV/lvmlocalpv-rules.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"expr": "lvm_vg_missing_pv_count > 0",
1515
"for": "5m",
1616
"labels": {
17+
"engine": "localpv-lvm",
18+
"product": "openebs",
1719
"severity": "critical"
1820
}
1921
},
@@ -28,6 +30,8 @@
2830
"expr": "((lvm_vg_total_size_bytes - lvm_vg_free_size_bytes)/lvm_vg_total_size_bytes)*100 > 90",
2931
"for": "5m",
3032
"labels": {
33+
"engine": "localpv-lvm",
34+
"product": "openebs",
3135
"severity": "critical"
3236
}
3337
},
@@ -42,6 +46,8 @@
4246
"expr": "lvm_lv_used_percent{segtype=\"thin-pool\"} > 90",
4347
"for": "5m",
4448
"labels": {
49+
"engine": "localpv-lvm",
50+
"product": "openebs",
4551
"severity": "critical"
4652
}
4753
}

deploy/charts/templates/podmonitors.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") }}
12
{{- range $monitoringAddon, $fields := .Values.openebsMonitoringAddon }}
23
{{- if (and (hasKey $fields "enabled") ($fields.enabled)) }}
34
{{- if (hasKey $fields "podMonitor") }}
@@ -27,3 +28,4 @@ spec:
2728
{{- end }}
2829
{{- end }}
2930
{{- end }}
31+
{{- end }}

deploy/charts/templates/prometheusRules.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") }}
12
{{- $alertRules := dict -}}
23
{{- range $monitoringAddon,$fields := .Values.openebsMonitoringAddon }}
34
{{- if (and (hasKey $fields "enabled") ($fields.enabled)) }}
@@ -28,3 +29,4 @@ spec:
2829
{{- end }}
2930
{{- end }}
3031
{{- end }}
32+
{{- end }}

deploy/charts/templates/servicemonitors.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") }}
12
{{- range $monitoringAddon, $fields := .Values.openebsMonitoringAddon }}
23
{{- if (and (hasKey $fields "enabled") ($fields.enabled)) }}
34
{{- if (hasKey $fields "serviceMonitor") }}
@@ -27,3 +28,4 @@ spec:
2728
{{- end }}
2829
{{- end }}
2930
{{- end }}
31+
{{- end }}

deploy/charts/values.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ kube-prometheus-stack:
101101
group_interval: 5m
102102
repeat_interval: 4h
103103
receiver: "null"
104+
## This route specifically groups openebs alerts.
105+
routes:
106+
- matchers:
107+
- product="openebs"
108+
receiver: "null"
109+
## Add receivers as required. Ref: https://prometheus.io/docs/alerting/latest/configuration/#receiver-integration-settings
104110
receivers:
105111
- name: "null"
106112
templates:
@@ -271,11 +277,11 @@ openebsMonitoringAddon:
271277
any: true
272278

273279
npd:
274-
enabled: true
280+
enabled: false
275281
dashboards:
276-
enabled: true
282+
enabled: false
277283
alertRules:
278-
enabled: true
284+
enabled: false
279285

280286
volume:
281287
enabled: true

jsonnet/openebs-mixin/dashboards/dashboards.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ function(param) {
55
grafanaDashboards+:: {
66
[if dashboard._config.dashboards.lvmLocalPV then 'lvmlocalpv-pool.json']: import './openebs/lvmlocalpv-pool.json',
77
[if dashboard._config.dashboards.zfsLocalPV then 'zfslocalpv.json']: import './openebs/zfslocalpv.json',
8-
[if dashboard._config.dashboards.mayastor then 'diskpool.json']: import './mayastor/diskpool.json',
9-
[if dashboard._config.dashboards.mayastor then 'volume.json']: import './mayastor/volume.json',
10-
[if dashboard._config.dashboards.mayastor then 'volume-replica.json']: import './mayastor/volume-replica.json',
8+
[if dashboard._config.dashboards.mayastor then 'mayastor-diskpool.json']: import './mayastor/mayastor-diskpool.json',
9+
[if dashboard._config.dashboards.mayastor then 'mayastor-volume.json']: import './mayastor/mayastor-volume.json',
10+
[if dashboard._config.dashboards.mayastor then 'mayastor-volume-replica.json']: import './mayastor/mayastor-volume-replica.json',
1111
[if dashboard._config.dashboards.npd then 'npd-node-volume-problem.json']: import './npd/npd-node-volume-problem.json',
1212
},
1313
}

0 commit comments

Comments
 (0)