Skip to content

Commit

Permalink
Refactor severity and interval for monitors (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
  • Loading branch information
gaiksaya authored May 9, 2024
1 parent 2feedcd commit 1d0b681
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"schedule": {
"period": {
"unit": "MINUTES",
"interval": 5
"interval": 10
}
},
"inputs": [
Expand All @@ -25,7 +25,7 @@
"query_level_trigger": {
"id": "bK6a-I4BP-Tswg_on_U_",
"name": "Red Cluster",
"severity": "1",
"severity": "2",
"condition": {
"script": {
"source": "ctx.results[0].status != \"green\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"query_level_trigger": {
"id": "5A2d-I4Bqk6CvEFkp7X5",
"name": "High JVM",
"severity": "2",
"severity": "3",
"condition": {
"script": {
"source": "ctx.results[0].nodes.jvm.mem.heap_used_in_bytes / ctx.results[0].nodes.jvm.mem.heap_max_in_bytes >= 0.75",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"query_level_trigger": {
"id": "1w2c-I4Bqk6CvEFke7VB",
"name": "Node Drop",
"severity": "2",
"severity": "3",
"condition": {
"script": {
"source": "ctx.results[0].number_of_nodes < 5",
Expand Down

0 comments on commit 1d0b681

Please sign in to comment.