Updated dashboard alert

This commit is contained in:
CarlosEDP 2019-02-04 18:22:43 -02:00
parent 61f5a2927b
commit 86ce17c455
2 changed files with 36 additions and 16 deletions

View File

@ -16,7 +16,7 @@
"editable": true, "editable": true,
"gnetId": 162, "gnetId": 162,
"graphTooltip": 1, "graphTooltip": 1,
"id": 12, "id": 13,
"links": [], "links": [],
"panels": [ "panels": [
{ {
@ -379,7 +379,7 @@
{ {
"evaluator": { "evaluator": {
"params": [ "params": [
3500000000 0.85
], ],
"type": "gt" "type": "gt"
}, },
@ -388,19 +388,20 @@
}, },
"query": { "query": {
"params": [ "params": [
"A", "B",
"4m", "5m",
"now" "now"
] ]
}, },
"reducer": { "reducer": {
"params": [], "params": [],
"type": "avg" "type": "max"
}, },
"type": "query" "type": "query"
} }
], ],
"executionErrorState": "alerting", "executionErrorState": "alerting",
"for": "0m",
"frequency": "60s", "frequency": "60s",
"handler": 1, "handler": 1,
"name": "Memory Usage alert", "name": "Memory Usage alert",
@ -448,6 +449,13 @@
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ instance }}", "legendFormat": "{{ instance }}",
"refId": "A" "refId": "A"
},
{
"expr": "(node_memory_MemTotal_bytes - (node_memory_MemFree_bytes+node_memory_Buffers_bytes+node_memory_Cached_bytes))/node_memory_MemTotal_bytes",
"format": "time_series",
"hide": true,
"intervalFactor": 1,
"refId": "B"
} }
], ],
"thresholds": [ "thresholds": [
@ -456,7 +464,7 @@
"fill": true, "fill": true,
"line": true, "line": true,
"op": "gt", "op": "gt",
"value": 3500000000 "value": 0.85
} }
], ],
"timeFrom": null, "timeFrom": null,
@ -705,6 +713,7 @@
}, },
{ {
"dashboardFilter": "", "dashboardFilter": "",
"dashboardTags": [],
"folderId": null, "folderId": null,
"gridPos": { "gridPos": {
"h": 9, "h": 9,
@ -1666,6 +1675,6 @@
}, },
"timezone": "browser", "timezone": "browser",
"title": "Kubernetes cluster monitoring (via Prometheus)", "title": "Kubernetes cluster monitoring (via Prometheus)",
"uid": "82pBZCmRk", "uid": "82pBZCmRkasd",
"version": 2 "version": 1
} }

View File

@ -4913,7 +4913,7 @@ items:
"editable": true, "editable": true,
"gnetId": 162, "gnetId": 162,
"graphTooltip": 1, "graphTooltip": 1,
"id": 12, "id": 13,
"links": [ "links": [
], ],
@ -5296,7 +5296,7 @@ items:
{ {
"evaluator": { "evaluator": {
"params": [ "params": [
3500000000 0.84999999999999998
], ],
"type": "gt" "type": "gt"
}, },
@ -5305,8 +5305,8 @@ items:
}, },
"query": { "query": {
"params": [ "params": [
"A", "B",
"4m", "5m",
"now" "now"
] ]
}, },
@ -5314,12 +5314,13 @@ items:
"params": [ "params": [
], ],
"type": "avg" "type": "max"
}, },
"type": "query" "type": "query"
} }
], ],
"executionErrorState": "alerting", "executionErrorState": "alerting",
"for": "0m",
"frequency": "60s", "frequency": "60s",
"handler": 1, "handler": 1,
"name": "Memory Usage alert", "name": "Memory Usage alert",
@ -5375,6 +5376,13 @@ items:
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ instance }}", "legendFormat": "{{ instance }}",
"refId": "A" "refId": "A"
},
{
"expr": "(node_memory_MemTotal_bytes - (node_memory_MemFree_bytes+node_memory_Buffers_bytes+node_memory_Cached_bytes))/node_memory_MemTotal_bytes",
"format": "time_series",
"hide": true,
"intervalFactor": 1,
"refId": "B"
} }
], ],
"thresholds": [ "thresholds": [
@ -5383,7 +5391,7 @@ items:
"fill": true, "fill": true,
"line": true, "line": true,
"op": "gt", "op": "gt",
"value": 3500000000 "value": 0.84999999999999998
} }
], ],
"timeFrom": null, "timeFrom": null,
@ -5658,6 +5666,9 @@ items:
}, },
{ {
"dashboardFilter": "", "dashboardFilter": "",
"dashboardTags": [
],
"folderId": null, "folderId": null,
"gridPos": { "gridPos": {
"h": 9, "h": 9,
@ -6727,8 +6738,8 @@ items:
}, },
"timezone": "browser", "timezone": "browser",
"title": "Kubernetes cluster monitoring (via Prometheus)", "title": "Kubernetes cluster monitoring (via Prometheus)",
"uid": "82pBZCmRk", "uid": "82pBZCmRkasd",
"version": 2 "version": 1
} }
kind: ConfigMap kind: ConfigMap
metadata: metadata: