Skip to content

Commit

Permalink
Update openserach alerts (grafana#1284)
Browse files Browse the repository at this point in the history
It is common practice to use alertmanager inhibit rules to match rules by alertname, so that warning threshold is supressed when alert with same name and severity critical is present. 
Renaming alert names so it easier to use that pattern. 
For example, same pattern is used in node_exporter's alerts.
  • Loading branch information
v-zhuravlev authored Jul 17, 2024
1 parent c70d1d7 commit ea6f260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opensearch-mixin/alerts/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
},
},
{
alert: 'OpenSearchModerateNodeDiskUsage',
alert: 'OpenSearchHighNodeDiskUsage',
expr: |||
100 * sum without(nodeid, path, mount, type) ((opensearch_fs_path_total_bytes{%(filteringSelector)s} - opensearch_fs_path_free_bytes{%(filteringSelector)s}) / opensearch_fs_path_total_bytes{%(filteringSelector)s}) > %(alertsWarningDiskUsage)s
||| % $._config,
Expand Down Expand Up @@ -103,7 +103,7 @@
},
},
{
alert: 'OpenSearchModerateNodeCpuUsage',
alert: 'OpenSearchHighNodeCpuUsage',
expr: |||
sum without(nodeid) (opensearch_os_cpu_percent{%(filteringSelector)s}) > %(alertsWarningCPUUsage)s
||| % $._config,
Expand Down Expand Up @@ -135,7 +135,7 @@
},
},
{
alert: 'OpenSearchModerateNodeMemoryUsage',
alert: 'OpenSearchHighNodeMemoryUsage',
expr: |||
sum without(nodeid) (opensearch_os_mem_used_percent{%(filteringSelector)s}) > %(alertsWarningMemoryUsage)s
||| % $._config,
Expand Down

0 comments on commit ea6f260

Please sign in to comment.