Created
October 12, 2017 18:42
-
-
Save sacreman/a7fac0283be5a10d7154ff8772b8804e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "dashboard": { | |
| "title": "Hosts", | |
| "description": "Basic host stats: CPU, Memory Usage, Disk Utilisation, Filesystem usage and Predicted time to filesystems filling", | |
| "id": null, | |
| "rows": [{ | |
| "collapse": false, | |
| "editable": true, | |
| "height": "250px", | |
| "panels": [{ | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "prometheus", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 1, | |
| "isNew": true, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 6, | |
| "stack": true, | |
| "steppedLine": false, | |
| "targets": [{ | |
| "expr": "avg without (cpu)(irate(node_cpu{job=\"node\",instance=\"$instance\",mode!=\"idle\"}[5m]))", | |
| "interval": "", | |
| "intervalFactor": 2, | |
| "legendFormat": "{{mode}}", | |
| "metric": "node_cpu", | |
| "refId": "A", | |
| "step": 60 | |
| }], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "CPU", | |
| "tooltip": { | |
| "msResolution": false, | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "show": true | |
| }, | |
| "yaxes": [{ | |
| "format": "percentunit", | |
| "logBase": 1, | |
| "max": 1, | |
| "min": null, | |
| "show": true | |
| }, { | |
| "format": "short", | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| }] | |
| }, { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "prometheus", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 2, | |
| "isNew": true, | |
| "legend": { | |
| "alignAsTable": false, | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "rightSide": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "minSpan": null, | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "repeat": null, | |
| "seriesOverrides": [], | |
| "span": 6, | |
| "stack": true, | |
| "steppedLine": false, | |
| "targets": [{ | |
| "expr": "node_memory_MemTotal{job='node',instance='$instance'} - node_memory_MemFree{job='node',instance='$instance'} - node_memory_Buffers{job='node',instance='$instance'} - node_memory_Cached{job='node',instance='$instance'}", | |
| "intervalFactor": 2, | |
| "legendFormat": "Used", | |
| "refId": "A", | |
| "step": 60 | |
| }, { | |
| "expr": "node_memory_Buffers{job='node',instance='$instance'}", | |
| "intervalFactor": 2, | |
| "legendFormat": "Buffers", | |
| "refId": "B", | |
| "step": 60 | |
| }, { | |
| "expr": "node_memory_Cached{job='node',instance='$instance'}", | |
| "intervalFactor": 2, | |
| "legendFormat": "Cached", | |
| "refId": "D", | |
| "step": 60 | |
| }, { | |
| "expr": "node_memory_MemFree{job='node',instance='$instance'}", | |
| "hide": false, | |
| "intervalFactor": 2, | |
| "legendFormat": "Free", | |
| "refId": "C", | |
| "step": 60 | |
| }], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Memory", | |
| "tooltip": { | |
| "msResolution": false, | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "show": true | |
| }, | |
| "yaxes": [{ | |
| "format": "bytes", | |
| "label": "", | |
| "logBase": 1, | |
| "max": null, | |
| "min": 0, | |
| "show": true | |
| }, { | |
| "format": "short", | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| }] | |
| }], | |
| "title": "Row" | |
| }, { | |
| "collapse": false, | |
| "editable": true, | |
| "height": "250px", | |
| "panels": [{ | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "prometheus", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 3, | |
| "isNew": true, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 4, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [{ | |
| "expr": "irate(node_disk_io_time_ms{job='node',instance='$instance',device!~'^(md\\\\d+$|dm-)'}[5m]) / 1000", | |
| "intervalFactor": 2, | |
| "legendFormat": "{{device}}", | |
| "refId": "A", | |
| "step": 120 | |
| }], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Disk I/O Utilisation", | |
| "tooltip": { | |
| "msResolution": false, | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "show": true | |
| }, | |
| "yaxes": [{ | |
| "format": "percentunit", | |
| "logBase": 1, | |
| "max": 1, | |
| "min": null, | |
| "show": true | |
| }, { | |
| "format": "short", | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| }] | |
| }, { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "prometheus", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 4, | |
| "isNew": true, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 4, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [{ | |
| "expr": "1 - node_filesystem_free{job='node',instance='$instance',fstype!='rootfs',mountpoint!~'/(run|var).*',mountpoint!=''} / node_filesystem_size{job='node',instance='$instance'}", | |
| "interval": "", | |
| "intervalFactor": 2, | |
| "legendFormat": "{{mountpoint}}", | |
| "refId": "A", | |
| "step": 120 | |
| }], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Filesystem Fullness", | |
| "tooltip": { | |
| "msResolution": false, | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "show": true | |
| }, | |
| "yaxes": [{ | |
| "format": "percentunit", | |
| "logBase": 1, | |
| "max": 1, | |
| "min": 0, | |
| "show": true | |
| }, { | |
| "format": "short", | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| }] | |
| }, { | |
| "columns": [{ | |
| "text": "Current", | |
| "value": "current" | |
| }], | |
| "editable": true, | |
| "error": false, | |
| "fontSize": "100%", | |
| "hideTimeOverride": true, | |
| "id": 5, | |
| "isNew": true, | |
| "links": [], | |
| "pageSize": null, | |
| "scroll": true, | |
| "showHeader": true, | |
| "sort": { | |
| "col": 0, | |
| "desc": true | |
| }, | |
| "span": 4, | |
| "styles": [{ | |
| "dateFormat": "YYYY-MM-DD HH:mm:ss", | |
| "pattern": "Time", | |
| "type": "date" | |
| }, { | |
| "colorMode": null, | |
| "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"], | |
| "decimals": 0, | |
| "pattern": "/.*/", | |
| "thresholds": [], | |
| "type": "number", | |
| "unit": "s" | |
| }], | |
| "targets": [{ | |
| "expr": "(node_filesystem_size{job='node',instance='$instance'} - node_filesystem_free{job='node',instance='$instance'}) / deriv(node_filesystem_free{job='node',instance='$instance',fstype!='rootfs',mountpoint!~'/(run|var).*',mountpoint!=''}[3d]) \u003e 0", | |
| "interval": "", | |
| "intervalFactor": 2, | |
| "legendFormat": "{{mountpoint}}", | |
| "refId": "A", | |
| "step": 20 | |
| }], | |
| "timeFrom": "1h", | |
| "timeShift": null, | |
| "title": "Filesystem Fill Up Time", | |
| "transform": "timeseries_aggregations", | |
| "type": "table" | |
| }], | |
| "title": "New row" | |
| }], | |
| "templating": { | |
| "list": [{ | |
| "allFormat": "glob", | |
| "current": {}, | |
| "datasource": "prometheus", | |
| "hide": 0, | |
| "hideLabel": false, | |
| "includeAll": false, | |
| "label": "Machine", | |
| "multi": false, | |
| "multiFormat": "glob", | |
| "name": "instance", | |
| "options": [], | |
| "query": "up{job=\"node\"}", | |
| "refresh": 1, | |
| "regex": ".*instance=\"(.*?)\".*", | |
| "type": "query" | |
| }] | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment