split used memory to actually used memory, buffers, caches

This commit is contained in:
Vladimir Rutsky
2017-03-02 16:16:41 +03:00
parent d93a9adadc
commit c28500fabe

View File

@@ -11,57 +11,48 @@
} }
], ],
"__requires": [ "__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "4.1.1"
},
{ {
"type": "panel", "type": "panel",
"id": "graph", "id": "graph",
"name": "Graph", "name": "Graph",
"version": "" "version": ""
}, },
{
"type": "panel",
"id": "singlestat",
"name": "Singlestat",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "3.1.1"
},
{ {
"type": "datasource", "type": "datasource",
"id": "prometheus", "id": "prometheus",
"name": "Prometheus", "name": "Prometheus",
"version": "1.0.0" "version": "1.0.0"
},
{
"type": "panel",
"id": "singlestat",
"name": "Singlestat",
"version": ""
} }
], ],
"id": null, "annotations": {
"title": "Nodes", "list": []
},
"description": "Dashboard to get an overview of one server", "description": "Dashboard to get an overview of one server",
"tags": [
"prometheus"
],
"style": "dark",
"timezone": "browser",
"editable": true, "editable": true,
"gnetId": 22,
"graphTooltip": 0,
"hideControls": false, "hideControls": false,
"sharedCrosshair": false, "id": null,
"links": [],
"refresh": false,
"rows": [ "rows": [
{ {
"collapse": false, "collapse": false,
"editable": true,
"height": "250px", "height": "250px",
"panels": [ "panels": [
{ {
"alert": {
"crit": {
"op": ">"
},
"warn": {
"op": ">"
}
},
"alerting": {}, "alerting": {},
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
@@ -69,14 +60,8 @@
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"grid": { "grid": {},
"threshold1": null,
"threshold2": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 3, "id": 3,
"isNew": true,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
@@ -120,7 +105,10 @@
}, },
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"show": true "mode": "time",
"name": null,
"show": true,
"values": []
}, },
"yaxes": [ "yaxes": [
{ {
@@ -142,14 +130,6 @@
] ]
}, },
{ {
"alert": {
"crit": {
"op": ">"
},
"warn": {
"op": ">"
}
},
"alerting": {}, "alerting": {},
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
@@ -157,14 +137,8 @@
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"grid": { "grid": {},
"threshold1": null,
"threshold2": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 9, "id": 9,
"isNew": true,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
@@ -224,7 +198,10 @@
}, },
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"show": true "mode": "time",
"name": null,
"show": true,
"values": []
}, },
"yaxes": [ "yaxes": [
{ {
@@ -246,22 +223,18 @@
] ]
} }
], ],
"title": "New row" "repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "New row",
"titleSize": "h6"
}, },
{ {
"collapse": false, "collapse": false,
"editable": true,
"height": "250px", "height": "250px",
"panels": [ "panels": [
{ {
"alert": {
"crit": {
"op": ">"
},
"warn": {
"op": ">"
}
},
"alerting": {}, "alerting": {},
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
@@ -269,19 +242,17 @@
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"grid": { "grid": {},
"threshold1": null,
"threshold2": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 4, "id": 4,
"isNew": true,
"legend": { "legend": {
"alignAsTable": false,
"avg": false, "avg": false,
"current": false, "current": false,
"hideEmpty": false,
"hideZero": false,
"max": false, "max": false,
"min": false, "min": false,
"rightSide": false,
"show": true, "show": true,
"total": false, "total": false,
"values": false "values": false
@@ -301,26 +272,43 @@
} }
], ],
"span": 9, "span": 9,
"stack": false, "stack": true,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "node_memory_MemTotal{instance=\"$server\"} - node_memory_MemFree{instance=\"$server\"}", "expr": "node_memory_MemTotal{instance=\"$server\"} - node_memory_MemFree{instance=\"$server\"} - node_memory_Buffers{instance=\"$server\"} - node_memory_Cached{instance=\"$server\"}",
"hide": false,
"interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "memory usage", "legendFormat": "memory used",
"metric": "memo", "metric": "",
"refId": "A", "refId": "C",
"step": 4, "step": 4
"target": ""
}, },
{ {
"expr": "node_memory_MemTotal{instance=\"$server\"}", "expr": "node_memory_Buffers{instance=\"$server\"}",
"interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "memory total", "legendFormat": "memory buffers",
"metric": "memo", "metric": "",
"refId": "B", "refId": "E",
"step": 4, "step": 4
"target": "" },
{
"expr": "node_memory_Cached{instance=\"$server\"}",
"intervalFactor": 2,
"legendFormat": "",
"metric": "",
"refId": "F",
"step": 4
},
{
"expr": "node_memory_MemFree{instance=\"$server\"}",
"intervalFactor": 2,
"legendFormat": "memory free",
"metric": "",
"refId": "D",
"step": 4
} }
], ],
"thresholds": [], "thresholds": [],
@@ -331,11 +319,14 @@
"msResolution": false, "msResolution": false,
"shared": true, "shared": true,
"sort": 0, "sort": 0,
"value_type": "cumulative" "value_type": "individual"
}, },
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"show": true "mode": "time",
"name": null,
"show": true,
"values": []
}, },
"yaxes": [ "yaxes": [
{ {
@@ -343,7 +334,7 @@
"label": null, "label": null,
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": "0",
"show": true "show": true
}, },
{ {
@@ -378,7 +369,6 @@
}, },
"id": 5, "id": 5,
"interval": null, "interval": null,
"isNew": true,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [
@@ -414,7 +404,7 @@
}, },
"targets": [ "targets": [
{ {
"expr": "((node_memory_MemTotal{instance=\"$server\"} - node_memory_MemFree{instance=\"$server\"}) / node_memory_MemTotal{instance=\"$server\"}) * 100", "expr": "((node_memory_MemTotal{instance=\"$server\"} - node_memory_MemFree{instance=\"$server\"} - node_memory_Buffers{instance=\"$server\"} - node_memory_Cached{instance=\"$server\"}) / node_memory_MemTotal{instance=\"$server\"}) * 100",
"intervalFactor": 2, "intervalFactor": 2,
"refId": "A", "refId": "A",
"step": 60, "step": 60,
@@ -435,22 +425,18 @@
"valueName": "avg" "valueName": "avg"
} }
], ],
"title": "New row" "repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "New row",
"titleSize": "h6"
}, },
{ {
"collapse": false, "collapse": false,
"editable": true,
"height": "250px", "height": "250px",
"panels": [ "panels": [
{ {
"alert": {
"crit": {
"op": ">"
},
"warn": {
"op": ">"
}
},
"alerting": {}, "alerting": {},
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
@@ -458,14 +444,8 @@
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"grid": { "grid": {},
"threshold1": null,
"threshold2": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 6, "id": 6,
"isNew": true,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
@@ -537,7 +517,10 @@
}, },
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"show": true "mode": "time",
"name": null,
"show": true,
"values": []
}, },
"yaxes": [ "yaxes": [
{ {
@@ -580,7 +563,6 @@
}, },
"id": 7, "id": 7,
"interval": null, "interval": null,
"isNew": true,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [
@@ -637,22 +619,18 @@
"valueName": "current" "valueName": "current"
} }
], ],
"title": "New row" "repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "New row",
"titleSize": "h6"
}, },
{ {
"collapse": false, "collapse": false,
"editable": true,
"height": "250px", "height": "250px",
"panels": [ "panels": [
{ {
"alert": {
"crit": {
"op": ">"
},
"warn": {
"op": ">"
}
},
"alerting": {}, "alerting": {},
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
@@ -660,14 +638,8 @@
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"grid": { "grid": {},
"threshold1": null,
"threshold2": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 8, "id": 8,
"isNew": true,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
@@ -717,7 +689,10 @@
}, },
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"show": true "mode": "time",
"name": null,
"show": true,
"values": []
}, },
"yaxes": [ "yaxes": [
{ {
@@ -739,14 +714,6 @@
] ]
}, },
{ {
"alert": {
"crit": {
"op": ">"
},
"warn": {
"op": ">"
}
},
"alerting": {}, "alerting": {},
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
@@ -754,14 +721,8 @@
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"grid": { "grid": {},
"threshold1": null,
"threshold2": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 10, "id": 10,
"isNew": true,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
@@ -811,7 +772,10 @@
}, },
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"show": true "mode": "time",
"name": null,
"show": true,
"values": []
}, },
"yaxes": [ "yaxes": [
{ {
@@ -833,9 +797,43 @@
] ]
} }
], ],
"title": "New row" "repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "New row",
"titleSize": "h6"
} }
], ],
"schemaVersion": 14,
"style": "dark",
"tags": [
"prometheus"
],
"templating": {
"list": [
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "server",
"options": [],
"query": "label_values(node_boot_time, instance)",
"refresh": 1,
"regex": "",
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": { "time": {
"from": "now-1h", "from": "now-1h",
"to": "now" "to": "now"
@@ -865,38 +863,18 @@
"30d" "30d"
] ]
}, },
"templating": { "timezone": "browser",
"list": [ "title": "Nodes",
{ "version": 1
"current": {},
"datasource": "${DS_PROMETHEUS}",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "server",
"options": [],
"query": "label_values(node_boot_time, instance)",
"refresh": 1,
"type": "query"
}
]
},
"annotations": {
"list": []
},
"refresh": false,
"schemaVersion": 12,
"version": 1,
"links": [],
"gnetId": 22
}, },
"inputs": [ "inputs": [
{ {
"name": "DS_PROMETHEUS", "name": "DS_PROMETHEUS",
"pluginId": "prometheus", "pluginId": "prometheus",
"type": "datasource", "type": "datasource",
"value": "prometheus" "value": "prometheus"
} }
], ],
"overwrite": true "overwrite": true
} }