summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-17 15:20:39 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-29 10:44:39 +0200
commitb7f4109665549e8ed47b7ca040679c6bae2df7ef (patch)
tree7cf14eb835e7190bbe3553fd6daefb39d0a2119f /ansible
parent64cb64d0f7c94cf851299ad08a4122453e94c688 (diff)
[ANSIBLE] Update custom Grafana dashboard
Panels added: - Node readiness status - Pod status in Onap namespace - Open file descriptors Change-Id: I5728efcbfd5008d382dc1a788e579daf225362be Issue-ID: INT-1926 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/kube-prometheus-stack/files/grafana_dashboard.json670
1 files changed, 503 insertions, 167 deletions
diff --git a/ansible/roles/kube-prometheus-stack/files/grafana_dashboard.json b/ansible/roles/kube-prometheus-stack/files/grafana_dashboard.json
index 1912dd82..1ef8138b 100644
--- a/ansible/roles/kube-prometheus-stack/files/grafana_dashboard.json
+++ b/ansible/roles/kube-prometheus-stack/files/grafana_dashboard.json
@@ -15,50 +15,397 @@
"editable": true,
"gnetId": null,
"graphTooltip": 0,
- "id": 26,
+ "id": 27,
"links": [],
"panels": [
{
- "alert": {
- "alertRuleTags": {},
- "conditions": [
- {
- "evaluator": {
- "params": [
- 24000
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "5m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "last"
+ "collapsed": false,
+ "datasource": null,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "id": 19,
+ "panels": [],
+ "title": "Node readiness status",
+ "type": "row"
+ },
+ {
+ "datasource": null,
+ "description": "Shows the node readiness status",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [
+ {
+ "from": "",
+ "id": 1,
+ "text": "NotReady",
+ "to": "",
+ "type": 1,
+ "value": "0"
},
- "type": "query"
+ {
+ "from": "",
+ "id": 2,
+ "text": "Ready",
+ "to": "",
+ "type": 1,
+ "value": "1"
+ }
+ ],
+ "max": 1,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "dark-red",
+ "value": 0
+ },
+ {
+ "color": "semi-dark-green",
+ "value": 1
+ }
+ ]
}
- ],
- "executionErrorState": "alerting",
- "for": "5m",
- "frequency": "1m",
- "handler": 1,
- "name": "Open fds high",
- "noDataState": "no_data",
- "notifications": []
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 5,
+ "w": 24,
+ "x": 0,
+ "y": 1
+ },
+ "id": 6,
+ "options": {
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true,
+ "text": {}
+ },
+ "pluginVersion": "7.5.5",
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "kube_node_status_condition{condition=\"Ready\",status=\"true\"}",
+ "interval": "",
+ "legendFormat": "{{node}}",
+ "refId": "A"
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "K8S node status",
+ "type": "gauge"
+ },
+ {
+ "collapsed": false,
+ "datasource": null,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 6
+ },
+ "id": 17,
+ "panels": [],
+ "title": "Pod status in Onap namespace",
+ "type": "row"
+ },
+ {
+ "cacheTimeout": null,
+ "datasource": null,
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 6,
+ "x": 0,
+ "y": 7
+ },
+ "id": 15,
+ "links": [],
+ "options": {
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "center",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "last"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {},
+ "textMode": "value"
+ },
+ "pluginVersion": "7.5.5",
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "sum(kube_pod_status_phase{namespace=\"onap\", phase=\"Running\"})",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A"
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Running",
+ "type": "stat"
+ },
+ {
+ "cacheTimeout": null,
+ "datasource": null,
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 6,
+ "x": 6,
+ "y": 7
+ },
+ "id": 14,
+ "links": [],
+ "options": {
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "center",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "last"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {},
+ "textMode": "value"
},
+ "pluginVersion": "7.5.5",
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "sum(kube_pod_status_phase{namespace=\"onap\", phase=\"Succeeded\"})",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A"
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Succeeded",
+ "type": "stat"
+ },
+ {
+ "cacheTimeout": null,
+ "datasource": null,
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 6,
+ "x": 12,
+ "y": 7
+ },
+ "id": 10,
+ "links": [],
+ "options": {
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "center",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "last"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {},
+ "textMode": "value"
+ },
+ "pluginVersion": "7.5.5",
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "sum(kube_pod_status_phase{namespace=\"onap\", phase=\"Pending\"})",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A"
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Pending",
+ "type": "stat"
+ },
+ {
+ "cacheTimeout": null,
+ "datasource": null,
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 6,
+ "x": 18,
+ "y": 7
+ },
+ "id": 13,
+ "links": [],
+ "options": {
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "center",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "last"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {},
+ "textMode": "value"
+ },
+ "pluginVersion": "7.5.5",
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "sum(kube_pod_status_phase{namespace=\"onap\", phase=\"Failed\"})",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A"
+ }
+ ],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Failed",
+ "type": "stat"
+ },
+ {
+ "collapsed": false,
+ "datasource": null,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 10
+ },
+ "id": 12,
+ "panels": [],
+ "title": "Open file descriptors",
+ "type": "row"
+ },
+ {
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
+ "description": "Number of currently opened file descriptors",
"fieldConfig": {
"defaults": {},
"overrides": []
@@ -67,9 +414,9 @@
"fillGradient": 0,
"gridPos": {
"h": 11,
- "w": 24,
+ "w": 12,
"x": 0,
- "y": 0
+ "y": 11
},
"hiddenSeries": false,
"id": 4,
@@ -103,25 +450,18 @@
{
"exemplar": true,
"expr": "node_filefd_allocated",
+ "hide": false,
"interval": "",
+ "intervalFactor": 1,
"legendFormat": "{{instance}}",
"refId": "A"
}
],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 24000,
- "visible": true
- }
- ],
+ "thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
- "title": "Nodes open fds",
+ "title": "Open file descriptors",
"tooltip": {
"shared": true,
"sort": 0,
@@ -162,151 +502,147 @@
}
},
{
+ "alert": {
+ "alertRuleTags": {},
+ "conditions": [
+ {
+ "evaluator": {
+ "params": [
+ 75
+ ],
+ "type": "gt"
+ },
+ "operator": {
+ "type": "and"
+ },
+ "query": {
+ "params": [
+ "A",
+ "5m",
+ "now"
+ ]
+ },
+ "reducer": {
+ "params": [],
+ "type": "last"
+ },
+ "type": "query"
+ }
+ ],
+ "executionErrorState": "alerting",
+ "for": "5m",
+ "frequency": "1m",
+ "handler": 1,
+ "name": "Open file descriptors usage high",
+ "noDataState": "no_data",
+ "notifications": []
+ },
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
"datasource": null,
+ "description": "Percentage of total available file descriptors allocated",
"fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 40000
- }
- ]
- },
- "unit": "short"
- },
+ "defaults": {},
"overrides": []
},
+ "fill": 2,
+ "fillGradient": 5,
"gridPos": {
- "h": 9,
- "w": 24,
- "x": 0,
+ "h": 11,
+ "w": 12,
+ "x": 12,
"y": 11
},
- "id": 2,
+ "hiddenSeries": false,
+ "id": 8,
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": true,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "nullPointMode": "null",
"options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "last"
- ],
- "fields": "",
- "values": false
- },
- "text": {},
- "textMode": "value_and_name"
+ "alertThreshold": true
},
+ "percentage": false,
"pluginVersion": "7.5.5",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"exemplar": true,
- "expr": "node_filefd_allocated",
- "hide": false,
- "instant": false,
+ "expr": "(node_filefd_allocated/node_filefd_maximum)*100",
"interval": "",
"legendFormat": "{{instance}}",
"refId": "A"
}
],
+ "thresholds": [
+ {
+ "colorMode": "critical",
+ "fill": true,
+ "line": true,
+ "op": "gt",
+ "value": 75,
+ "visible": true
+ }
+ ],
"timeFrom": null,
+ "timeRegions": [],
"timeShift": null,
- "title": "Node open fds",
- "type": "stat"
- },
- {
- "datasource": null,
- "description": "Is node ready",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "from": "",
- "id": 1,
- "text": "NotReady",
- "to": "",
- "type": 1,
- "value": "0"
- },
- {
- "from": "",
- "id": 2,
- "text": "ready",
- "to": "",
- "type": 1,
- "value": "1"
- }
- ],
- "max": 1,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "dark-red",
- "value": 0
- },
- {
- "color": "semi-dark-green",
- "value": 1
- }
- ]
- }
- },
- "overrides": []
+ "title": "Open file descriptors usage",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
},
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 20
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
},
- "id": 6,
- "options": {
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
+ "yaxes": [
+ {
+ "$$hashKey": "object:655",
+ "format": "percent",
+ "label": "open fds",
+ "logBase": 1,
+ "max": "100",
+ "min": null,
+ "show": true
},
- "showThresholdLabels": false,
- "showThresholdMarkers": true,
- "text": {}
- },
- "pluginVersion": "7.5.5",
- "targets": [
{
- "exemplar": true,
- "expr": "kube_node_status_condition{condition=\"Ready\",status=\"true\"}",
- "interval": "",
- "legendFormat": "{{node}}",
- "refId": "A"
+ "$$hashKey": "object:656",
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
}
],
- "timeFrom": null,
- "timeShift": null,
- "title": "Node readiness",
- "type": "gauge"
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
}
],
"schemaVersion": 27,
@@ -322,6 +658,6 @@
"timepicker": {},
"timezone": "",
"title": "Custom Dashboard",
- "uid": "9Q97TIqGz",
- "version": 13
+ "uid": "9Q97TIqGt",
+ "version": 24
}