Skip to content

Instantly share code, notes, and snippets.

@grobie
Created April 16, 2016 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grobie/eea8f9d6967debb29f405d4d4503cef5 to your computer and use it in GitHub Desktop.
Save grobie/eea8f9d6967debb29f405d4d4503cef5 to your computer and use it in GitHub Desktop.
{
"id": 138,
"title": "Prometheus node metrics",
"originalTitle": "Prometheus node metrics",
"tags": [
"prometheus",
"node"
],
"style": "dark",
"timezone": "",
"editable": true,
"hideControls": true,
"sharedCrosshair": false,
"rows": [
{
"collapse": false,
"editable": true,
"height": "100px",
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": true,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"datasource": "demo.robustperception.io",
"editable": true,
"error": false,
"format": "percentunit",
"id": 8,
"interval": null,
"isNew": true,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true
},
"targets": [
{
"expr": "node_load1{job=\"node\", instance=~\"$node:.*\"} / count by(job, instance)(count by(job, instance, cpu)(node_cpu{job=\"node\", instance=~\"$node:.*\"}))",
"intervalFactor": 2,
"legendFormat": "",
"refId": "A",
"step": 60
}
],
"thresholds": "0.8,0.9",
"title": "Load",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": true,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "demo.robustperception.io",
"editable": true,
"error": false,
"format": "none",
"id": 9,
"interval": null,
"isNew": true,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"expr": "up{job=\"node\", instance=~\"$node:.*\"}",
"intervalFactor": 2,
"legendFormat": "",
"refId": "A",
"step": 60
}
],
"thresholds": "1,1",
"title": "State",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "up",
"value": "1"
},
{
"op": "=",
"text": "down",
"value": "0"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"datasource": "demo.robustperception.io",
"editable": true,
"error": false,
"format": "none",
"id": 5,
"interval": null,
"isNew": true,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"expr": "count(count by(cpu)(node_cpu{job=\"node\", instance=~\"$node:.*\"}))",
"intervalFactor": 10,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 300
}
],
"thresholds": "",
"title": "Cores",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"datasource": "demo.robustperception.io",
"editable": true,
"error": false,
"format": "bytes",
"id": 6,
"interval": null,
"isNew": true,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"expr": "node_memory_MemTotal{job=\"node\", instance=~\"$node:.*\"}",
"intervalFactor": 10,
"metric": "",
"refId": "A",
"step": 300
}
],
"thresholds": "",
"title": "Memory",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"datasource": "demo.robustperception.io",
"editable": true,
"error": false,
"format": "bytes",
"id": 7,
"interval": null,
"isNew": true,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"expr": "sum(node_filesystem_size{job=\"node\", instance=~\"$node:.*\", device=~\"/dev/.*\", mountpoint!=\"/var/lib/docker/aufs\"})",
"intervalFactor": 10,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 300
}
],
"thresholds": "",
"title": "All disks",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"datasource": "demo.robustperception.io",
"editable": true,
"error": false,
"format": "s",
"id": 10,
"interval": null,
"isNew": true,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"expr": "time() - node_boot_time{job=\"node\", instance=~\"$node:.*\"}",
"intervalFactor": 10,
"legendFormat": "",
"metric": "node_boot_time",
"refId": "A",
"step": 300
}
],
"thresholds": "",
"title": "Uptime",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
}
],
"title": "New row"
},
{
"collapse": false,
"editable": true,
"height": "300px",
"panels": [
{
"aliasColors": {},
"bars": false,
"datasource": "demo.robustperception.io",
"decimals": 2,
"editable": true,
"error": false,
"fill": 4,
"grid": {
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 1,
"isNew": true,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"span": 6,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum by(mode)(irate(node_cpu{job=\"node\", instance=~\"$node:.*\", mode!=\"idle\"}[5m])) > 0",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{mode}}",
"metric": "",
"refId": "A",
"step": 10
}
],
"timeFrom": null,
"timeShift": null,
"title": "CPU usage",
"tooltip": {
"msResolution": false,
"shared": true,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"show": true
},
"yaxes": [
{
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {
"buffers": "#705DA0",
"free": "#7EB26D"
},
"bars": false,
"datasource": "demo.robustperception.io",
"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": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "irate(node_disk_io_time_ms{job=\"node\", instance=~\"$node:.*\"}[5m]) / 1000",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{device}}",
"refId": "A",
"step": 10
}
],
"timeFrom": null,
"timeShift": null,
"title": "Disk I/O utilization",
"tooltip": {
"msResolution": false,
"shared": true,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"show": true
},
"yaxes": [
{
"format": "percentunit",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"title": "Row"
},
{
"collapse": false,
"editable": true,
"height": "300px",
"panels": [
{
"aliasColors": {
"buffers": "#705DA0",
"free": "#7EB26D"
},
"bars": false,
"datasource": "demo.robustperception.io",
"editable": true,
"error": false,
"fill": 7,
"grid": {
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 3,
"isNew": true,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "free",
"fill": 1,
"fillBelowTo": "used",
"lines": false,
"zindex": 2
},
{
"alias": "used",
"zindex": 1
}
],
"span": 6,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "node_memory_Buffers{job=\"node\", instance=~\"$node:.*\"}",
"interval": "",
"intervalFactor": 2,
"legendFormat": "buffers",
"refId": "A",
"step": 10
},
{
"expr": "node_memory_Cached{job=\"node\", instance=~\"$node:.*\"}",
"interval": "",
"intervalFactor": 2,
"legendFormat": "cached",
"refId": "B",
"step": 10
},
{
"expr": "node_memory_MemFree{job=\"node\", instance=~\"$node:.*\"}",
"interval": "",
"intervalFactor": 2,
"legendFormat": "free",
"refId": "C",
"step": 10
},
{
"expr": "node_memory_MemTotal{job=\"node\", instance=~\"$node:.*\"} - node_memory_MemFree{job=\"node\", instance=~\"$node:.*\"} - node_memory_Cached{job=\"node\", instance=~\"$node:.*\"} - node_memory_Buffers{job=\"node\", instance=~\"$node:.*\"}",
"interval": "",
"intervalFactor": 2,
"legendFormat": "used",
"metric": "",
"refId": "D",
"step": 10
}
],
"timeFrom": null,
"timeShift": null,
"title": "Memory usage",
"tooltip": {
"msResolution": false,
"shared": true,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"show": true
},
"yaxes": [
{
"format": "bytes",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {
"buffers": "#705DA0",
"free": "#7EB26D"
},
"bars": false,
"datasource": "demo.robustperception.io",
"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": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/.*outbound/",
"transform": "negative-Y"
}
],
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "irate(node_network_transmit_bytes{job=\"node\", instance=~\"$node:.*\", device!~\"lo|bond[0-9]|cbr[0-9]|veth.*\"}[5m]) > 0",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{device}} outbound",
"metric": "",
"refId": "A",
"step": 10
},
{
"expr": "irate(node_network_receive_bytes{job=\"node\", instance=~\"$node:.*\", device!~\"lo|bond[0-9]|cbr[0-9]|veth.*\"}[5m]) > 0",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{device}} inbound",
"metric": "",
"refId": "B",
"step": 10
}
],
"timeFrom": null,
"timeShift": null,
"title": "Network usage",
"tooltip": {
"msResolution": false,
"shared": true,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"show": true
},
"yaxes": [
{
"format": "Bps",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"title": "New row"
},
{
"collapse": false,
"editable": true,
"height": "300px",
"panels": [
{
"aliasColors": {
"free": "#7EB26D",
"size": "#7EB26D",
"usage": "#EAB839",
"used": "#EAB839"
},
"bars": false,
"datasource": "demo.robustperception.io",
"editable": true,
"error": false,
"fill": 7,
"grid": {
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 11,
"isNew": true,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"minSpan": 4,
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "filesystem_mountpoint",
"scopedVars": {
"filesystem_mountpoint": {
"text": "/",
"value": "/",
"selected": false
}
},
"seriesOverrides": [
{
"alias": "free",
"fill": 10,
"fillBelowTo": "used",
"lines": false,
"linewidth": 2
}
],
"span": 12,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "node_filesystem_size{job=\"node\", instance=~\"$node:.*\", device=~\"/dev/.*\", mountpoint=\"$filesystem_mountpoint\"} - node_filesystem_free{job=\"node\", instance=~\"$node:.*\", device=~\"/dev/.*\", mountpoint=\"$filesystem_mountpoint\"}",
"interval": "",
"intervalFactor": 2,
"legendFormat": "used",
"metric": "",
"refId": "A",
"step": 4
},
{
"expr": "node_filesystem_free{job=\"node\", instance=~\"$node:.*\", device=~\"/dev/.*\", mountpoint=\"$filesystem_mountpoint\"}",
"interval": "",
"intervalFactor": 2,
"legendFormat": "free",
"metric": "",
"refId": "B",
"step": 4
}
],
"timeFrom": null,
"timeShift": null,
"title": "Filesystem $filesystem_mountpoint usage",
"tooltip": {
"msResolution": false,
"shared": true,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"show": true
},
"yaxes": [
{
"format": "bytes",
"logBase": 1,
"max": null,
"min": 0,
"show": true
},
{
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"title": "New row"
}
],
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"templating": {
"list": [
{
"allFormat": "pipe",
"current": {
"text": "demo.robustperception.io",
"value": "demo.robustperception.io"
},
"datasource": "demo.robustperception.io",
"hide": 1,
"hideLabel": true,
"includeAll": false,
"label": "Node",
"multi": false,
"multiFormat": "pipe",
"name": "node",
"options": [
{
"text": "demo.robustperception.io",
"value": "demo.robustperception.io",
"selected": true
}
],
"query": "label_values(node_load1{job=\"node\"}, instance)",
"refresh": 1,
"regex": "/([^:]+):.*/",
"type": "query",
"useTags": false
},
{
"allFormat": "regex wildcard",
"current": {
"text": "All",
"value": "$__all"
},
"datasource": "demo.robustperception.io",
"hide": 2,
"hideVariable": true,
"includeAll": true,
"multi": false,
"multiFormat": "glob",
"name": "filesystem_mountpoint",
"options": [
{
"text": "All",
"value": "$__all",
"selected": true
},
{
"text": "/",
"value": "/",
"selected": false
}
],
"query": "query_result(node_filesystem_size{job=\"node\", instance=~\"$node:.*\", device=~\"/dev/.*\", mountpoint!=\"/var/lib/docker/aufs\"})",
"refresh": 1,
"regex": "/mountpoint=\"([^\"]+)/",
"type": "query"
}
]
},
"annotations": {
"list": []
},
"refresh": "5m",
"schemaVersion": 12,
"version": 4,
"links": [
{
"asDropdown": false,
"icon": "external link",
"keepTime": true,
"tags": [
"prometheus"
],
"title": "",
"type": "dashboards"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment