glances/conf/glances-grafana-influxql.json

2821 lines
66 KiB
JSON

{
"__inputs": [
{
"name": "DS_GLANCES",
"label": "glances",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
},
{
"name": "DS_LSAT1",
"label": "lsat1",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.1"
},
{
"type": "datasource",
"id": "influxdb",
"name": "InfluxDB",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "text",
"name": "Text",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 2,
"x": 0,
"y": 0
},
"id": 5,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"targets": [
{
"column": "cpucore",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
}
],
"measurement": "load",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"cpucore\") FROM \"$host.load\" WHERE $timeFilter GROUP BY time($interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"cpucore"
],
"type": "field"
},
{
"params": [],
"type": "max"
}
]
],
"series": "load",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
}
],
"title": "Core",
"type": "stat"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 20,
"x": 2,
"y": 0
},
"id": 4,
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "1min",
"column": "min1",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "load",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"min1\") FROM \"$host.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"min1"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "load",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": "randomWalk('random walk')"
},
{
"alias": "5mins",
"column": "min5",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "load",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"min5\") FROM \"$host.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"min5"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "load",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": ""
},
{
"alias": "15mins",
"column": "min15",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "load",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"min15\") FROM \"$host.load\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"min15"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "load",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": ""
}
],
"title": "Load",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "rgb(31, 120, 193)",
"mode": "fixed"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 2,
"x": 22,
"y": 0
},
"id": 18,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"targets": [
{
"column": "total",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"measurement": "processcount",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"total\") FROM \"$host.processcount\" WHERE $timeFilter GROUP BY time($interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"total"
],
"type": "field"
},
{
"params": [],
"type": "last"
}
]
],
"series": "processcount",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
}
],
"title": "Processes",
"type": "stat"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 6
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "User",
"column": "user",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "cpu",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"user\") FROM \"$host.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"user"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "cpu",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
},
{
"alias": "System",
"column": "system",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "cpu",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"system\") FROM \"$host.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"system"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "cpu",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": ""
},
{
"alias": "IoWait",
"column": "iowait",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "cpu",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"iowait\") FROM \"$host.cpu\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"iowait"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "cpu",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": ""
}
],
"title": "CPU (%)",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Max"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#BF1B00",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 6
},
"id": 7,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "Used",
"column": "used",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "mem",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"used\") FROM \"mem\" WHERE (\"hostname\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(none)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"used"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "mem",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
},
{
"alias": "Max",
"column": "total",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "mem",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"total\") FROM \"mem\" WHERE $timeFilter GROUP BY time($__interval) fill(none)",
"rawQuery": false,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"total"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "mem",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": ""
}
],
"title": "MEM",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 30,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 13
},
"id": 9,
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "In",
"column": "enp0s25.rx",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"interval": "",
"measurement": "$host.network",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"rx\")/mean(\"time_since_update\")*8 FROM \"network\" WHERE (\"hostname\" =~ /^$host$/) AND (\"interface_name\" =~ /^$interface$/) AND $timeFilter GROUP BY time($interval) fill(none)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"eth0.rx"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "network",
"tags": []
},
{
"alias": "Out",
"column": "eth0.tx*-1",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "$host.network",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"tx\")/mean(\"time_since_update\")*-8 FROM \"network\" WHERE (\"hostname\" =~ /^$host$/) AND (\"interface_name\" =~ /^$interface$/) AND $timeFilter GROUP BY time($interval) fill(none)",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"eth0.tx"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "network",
"tags": [],
"target": ""
}
],
"title": "$interface network interface",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Max"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#BF1B00",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 13
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "Used",
"column": "used",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"measurement": "$host.memswap",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"used\") FROM \"memswap\" WHERE (\"hostname\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(none)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"used"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "memswap",
"tags": []
},
{
"alias": "Max",
"column": "total",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
}
],
"measurement": "$host.memswap",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"total\") FROM \"memswap\" WHERE (\"hostname\" =~ /^$host$/) AND $timeFilter GROUP BY time($__interval) fill(none)",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"total"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "memswap",
"tags": [],
"target": ""
}
],
"title": "SWAP",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 20
},
"id": 10,
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "Read",
"column": "sda2.read_bytes",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "$host.diskio",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"read_bytes\")/mean(\"time_since_update\") FROM \"diskio\" WHERE (\"hostname\" =~ /^$host$/) AND (\"disk_name\" =~ /^$disk$/) AND $timeFilter GROUP BY time($__interval) fill(none)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"sda2.read_bytes"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "diskio",
"tags": []
},
{
"alias": "Write",
"column": "sda2.write_bytes",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "$host.diskio",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"write_bytes\")/mean(\"time_since_update\") FROM \"diskio\" WHERE (\"hostname\" =~ /^$host$/) AND (\"disk_name\" =~ /^$disk$/) AND $timeFilter GROUP BY time($__interval) fill(none)",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"sda2.write_bytes"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "diskio",
"tags": [],
"target": ""
}
],
"title": "$disk disk IO",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 3,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Max"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#BF1B00",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Used"
},
"properties": [
{
"id": "custom.fillOpacity",
"value": 100
},
{
"id": "custom.fillOpacity",
"value": 80
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 8,
"x": 12,
"y": 20
},
"id": 11,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "Used",
"column": "\"/.used\"",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "fs",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"/.used\") FROM \"$host.fs\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"used"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "fs",
"tags": [
{
"key": "mnt_point",
"operator": "=",
"value": "/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
},
{
"alias": "Max",
"column": "\"/.size\"",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"measurement": "fs",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"/.size\") FROM \"$host.fs\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"size"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "fs",
"tags": [
{
"key": "mnt_point",
"operator": "=",
"value": "/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": ""
}
],
"title": "/ Size",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(71, 212, 59, 0.4)",
"value": null
},
{
"color": "rgba(245, 150, 40, 0.73)",
"value": 70
},
{
"color": "rgba(225, 40, 40, 0.59)",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 2,
"x": 20,
"y": 20
},
"id": 16,
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"targets": [
{
"column": "\"/.percent\"",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
}
],
"measurement": "fs",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"/.percent\") FROM \"$host.fs\" WHERE $timeFilter GROUP BY time($interval)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"percent"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "fs",
"tags": [
{
"key": "mnt_point",
"operator": "=",
"value": "/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
}
],
"title": "/ used",
"type": "stat"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(71, 212, 59, 0.4)",
"value": null
},
{
"color": "rgba(245, 150, 40, 0.73)",
"value": 70
},
{
"color": "rgba(225, 40, 40, 0.59)",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 2,
"x": 22,
"y": 20
},
"id": 17,
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"targets": [
{
"column": "\"/home.percent\"",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"function": "mean",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
}
],
"measurement": "fs",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"percent\") FROM \"fs\" WHERE (\"hostname\" =~ /^$host$/) AND (\"mnt_point\" = '/boot') AND $timeFilter GROUP BY time($__interval)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"percent"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "fs",
"tags": [
{
"key": "mnt_point",
"operator": "=",
"value": "/boot"
}
]
}
],
"title": "/boot used",
"type": "stat"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_LSAT1}"
},
"gridPos": {
"h": 3,
"w": 24,
"x": 0,
"y": 27
},
"id": 22,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "",
"mode": "markdown"
},
"pluginVersion": "10.4.1",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "${DS_LSAT1}"
},
"refId": "A"
}
],
"title": "Sensors",
"type": "text"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"fieldMinMax": false,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "celsius"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 12,
"x": 0,
"y": 30
},
"id": 21,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "$tag_label",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"label::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "sensors",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
},
{
"condition": "AND",
"key": "type",
"operator": "=~",
"value": "/^SensorType.CPU_TEMP$/"
}
]
}
],
"title": "CPU temperature",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"fieldMinMax": false,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "rotrpm"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"y": 30
},
"id": 32,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"targets": [
{
"alias": "$tag_label",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"label::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "sensors",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
},
{
"condition": "AND",
"key": "type",
"operator": "=~",
"value": "/^SensorType.FAN_SPEED$/"
}
]
}
],
"title": "FAN speed",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_LSAT1}"
},
"editable": true,
"error": false,
"gridPos": {
"h": 3,
"w": 24,
"x": 0,
"y": 36
},
"id": 13,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "",
"mode": "markdown"
},
"pluginVersion": "10.4.1",
"style": {},
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "${DS_LSAT1}"
},
"refId": "A"
}
],
"title": "Containers",
"type": "text"
},
{
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "MEM"
},
"properties": [
{
"id": "unit",
"value": "decbytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "$host.docker.mean"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#ba43a9",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "CPU%"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#cca300",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "MEM"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#2f575e",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "MEM"
},
"properties": [
{
"id": "unit",
"value": "decbytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "MEM"
},
"properties": [
{
"id": "custom.fillOpacity",
"value": 100
},
{
"id": "custom.fillOpacity",
"value": 80
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 39
},
"id": 25,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.1",
"repeat": "container",
"repeatDirection": "v",
"targets": [
{
"alias": "CPU%",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"hide": false,
"measurement": "containers",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"cpu_percent\") FROM \"$host.docker\" WHERE $timeFilter GROUP BY time($__interval) fill(none)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"cpu_percent"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "name",
"operator": "=~",
"value": "/^$container$/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
},
{
"alias": "MEM",
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"hide": false,
"measurement": "containers",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"cpu_percent\") FROM \"$host.docker\" WHERE $timeFilter GROUP BY time($__interval) fill(none)",
"rawQuery": false,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"memory_usage"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "name",
"operator": "=~",
"value": "/^$container$/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
}
],
"title": "$container container",
"type": "timeseries"
}
],
"refresh": "5s",
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
{
"current": {},
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"definition": "show tag values with key=\"hostname\"",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "host",
"options": [],
"query": "show tag values with key=\"hostname\"",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {},
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"definition": "show tag values with key=\"name\"",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "container",
"options": [],
"query": "show tag values with key=\"name\"",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {},
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"definition": "show tag values with key=\"interface_name\"",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "interface",
"options": [],
"query": "show tag values with key=\"interface_name\"",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {},
"datasource": {
"type": "influxdb",
"uid": "${DS_GLANCES}"
},
"definition": "show tag values with key=\"disk_name\"",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "disk",
"options": [],
"query": "show tag values with key=\"disk_name\"",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {
"collapse": false,
"enable": true,
"notice": false,
"now": true,
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"status": "Stable",
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
],
"type": "timepicker"
},
"timezone": "browser",
"title": "Glances",
"uid": "000000002",
"version": 5,
"weekStart": ""
}