glances/conf/glances-grafana-flux.json

2453 lines
64 KiB
JSON
Raw Normal View History

2015-03-15 21:16:58 +03:00
{
2018-04-03 22:47:15 +03:00
"__inputs": [
{
"name": "DS_GLANCES",
"label": "glances",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "8.2.5"
2018-04-03 22:47:15 +03:00
},
{
"type": "panel",
"id": "heatmap",
"name": "Heatmap",
"version": ""
2018-04-03 22:47:15 +03:00
},
{
"type": "datasource",
"id": "influxdb",
"name": "InfluxDB",
"version": "1.0.0"
2018-04-03 22:47:15 +03:00
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
2018-04-03 22:47:15 +03:00
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
2018-04-03 22:47:15 +03:00
}
],
2017-10-25 11:01:33 +03:00
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
2017-10-25 11:01:33 +03:00
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
2017-10-25 11:01:33 +03:00
"gnetId": null,
"graphTooltip": 0,
2018-04-03 22:47:15 +03:00
"id": null,
"iteration": 1638092370245,
2017-10-25 11:01:33 +03:00
"links": [],
"liveNow": false,
2018-04-02 22:54:47 +03:00
"panels": [
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 29,
"panels": [],
"title": "Glances $host",
"type": "row"
},
2017-10-25 11:01:33 +03:00
{
2018-04-02 22:54:47 +03:00
"cacheTimeout": null,
2018-04-03 22:47:15 +03:00
"datasource": "${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": []
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 6,
"w": 2,
"x": 0,
"y": 1
2018-04-02 22:54:47 +03:00
},
"id": 5,
"interval": null,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
2018-04-02 22:54:47 +03:00
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"column": "cpucore",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2017-10-25 11:01:33 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
],
"type": "time"
2015-03-15 21:16:58 +03:00
}
],
"measurement": "load",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"load\" and\n r._field == \"cpucore\" and\n r.hostname == \"${host}\"\n )\n |> last()",
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"cpucore"
],
"type": "field"
},
{
"params": [],
"type": "max"
2018-04-02 22:54:47 +03:00
}
]
2015-03-15 21:16:58 +03:00
],
2018-04-02 22:54:47 +03:00
"series": "load",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
2018-04-02 22:54:47 +03:00
}
],
"title": "Core",
"type": "stat"
2018-04-02 22:54:47 +03:00
},
{
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 6,
"w": 20,
"x": 2,
"y": 1
2018-04-02 22:54:47 +03:00
},
"id": 4,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "table",
"placement": "right"
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "1min",
"column": "min1",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-15 21:16:58 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
],
2018-04-02 22:54:47 +03:00
"type": "time"
},
{
"params": [
"none"
],
2018-04-02 22:54:47 +03:00
"type": "fill"
2017-06-04 13:27:03 +03:00
}
],
"measurement": "load",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"load\" and\n r._field == \"min5\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean5\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"min1"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
2017-06-04 13:27:03 +03:00
],
2018-04-02 22:54:47 +03:00
"series": "load",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
2018-04-02 22:54:47 +03:00
"target": "randomWalk('random walk')"
2017-06-04 13:27:03 +03:00
},
{
"alias": "1min",
"column": "min1",
2018-04-02 22:54:47 +03:00
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2017-06-04 13:27:03 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
],
2018-04-02 22:54:47 +03:00
"type": "time"
2015-03-15 21:16:58 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"none"
],
2018-04-02 22:54:47 +03:00
"type": "fill"
2015-03-15 21:16:58 +03:00
}
],
"hide": false,
"measurement": "load",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"load\" and\n r._field == \"min15\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean15\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"min1"
2018-04-02 22:54:47 +03:00
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "load",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": "randomWalk('random walk')"
2015-03-20 15:03:01 +03:00
},
{
"alias": "1min",
"column": "min1",
2018-04-02 22:54:47 +03:00
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-20 15:03:01 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
],
"type": "time"
2017-06-04 13:27:03 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"none"
],
"type": "fill"
2015-03-20 15:03:01 +03:00
}
],
"hide": false,
"measurement": "load",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"load\" and\n r._field == \"min1\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean1\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"min1"
2018-04-02 22:54:47 +03:00
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
2015-03-20 15:03:01 +03:00
],
2018-04-02 22:54:47 +03:00
"series": "load",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
"target": "randomWalk('random walk')"
2018-04-02 22:54:47 +03:00
}
],
"timeFrom": null,
"timeShift": null,
"title": "Load",
"type": "timeseries"
2018-04-02 22:54:47 +03:00
},
{
"cacheTimeout": null,
2018-04-03 22:47:15 +03:00
"datasource": "${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": []
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 6,
"w": 2,
"x": 22,
"y": 1
2018-04-02 22:54:47 +03:00
},
"id": 18,
"interval": null,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
2018-04-02 22:54:47 +03:00
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"column": "total",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-15 21:16:58 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "time"
2017-06-04 13:27:03 +03:00
}
],
"measurement": "processcount",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"processcount\" and\n r._field == \"total\" and\n r.hostname == \"${host}\"\n )\n |> last()",
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"total"
],
"type": "field"
},
{
"params": [],
"type": "last"
}
]
2017-06-04 13:27:03 +03:00
],
2018-04-02 22:54:47 +03:00
"series": "processcount",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
2017-06-04 13:27:03 +03:00
}
],
2018-04-02 22:54:47 +03:00
"title": "Processes",
"type": "stat"
2017-10-25 11:01:33 +03:00
},
2017-06-04 13:27:03 +03:00
{
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 7
2018-04-02 22:54:47 +03:00
},
"id": 6,
"links": [],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "User",
"column": "user",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-15 21:16:58 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
],
2018-04-02 22:54:47 +03:00
"type": "time"
2015-03-20 15:03:01 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"none"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "fill"
2015-03-15 21:16:58 +03:00
}
],
"measurement": "cpu",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"cpu\" and\n r._field == \"user\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"user\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"user"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "cpu",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
},
{
2018-04-02 22:54:47 +03:00
"alias": "System",
"column": "system",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-15 21:16:58 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "time"
2015-03-15 21:16:58 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"none"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "fill"
2015-03-15 21:16:58 +03:00
}
],
"measurement": "cpu",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"cpu\" and\n r._field == \"system\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"system\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"system"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "cpu",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
2018-04-02 22:54:47 +03:00
"target": ""
},
{
"alias": "IoWait",
"column": "iowait",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2017-10-25 11:01:33 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
],
"type": "time"
2017-10-25 11:01:33 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"none"
],
"type": "fill"
2017-10-25 11:01:33 +03:00
}
2018-04-02 22:54:47 +03:00
],
"measurement": "cpu",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"cpu\" and\n r._field == \"iowait\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"iowait\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"iowait"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "cpu",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
2018-04-02 22:54:47 +03:00
"target": ""
2015-03-15 21:16:58 +03:00
}
],
2018-04-02 22:54:47 +03:00
"timeFrom": null,
"timeShift": null,
"title": "CPU (%)",
"type": "timeseries"
2015-03-15 21:16:58 +03:00
},
{
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"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": "byRegexp",
"options": "/.*total./"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-red",
"mode": "fixed"
}
},
{
"id": "custom.lineWidth",
"value": 2
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/^used.*$/"
},
"properties": [
{
"id": "custom.fillOpacity",
"value": 30
}
]
}
]
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 7
2018-04-02 22:54:47 +03:00
},
"id": 7,
"links": [],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "Used",
"column": "used",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-15 21:16:58 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
2017-06-04 13:27:03 +03:00
}
],
"measurement": "mem",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"mem\" and\n r._field == \"used\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"used\")\n \n ",
"rawQuery": false,
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"used"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "mem",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
2018-04-02 22:54:47 +03:00
},
{
"alias": "Max",
"column": "total",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2017-06-04 13:27:03 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
],
2018-04-02 22:54:47 +03:00
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
2015-03-15 21:16:58 +03:00
}
],
"measurement": "mem",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"mem\" and\n r._field == \"total\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"total\")\n \n ",
"rawQuery": false,
2018-04-02 22:54:47 +03:00
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"total"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "mem",
"tags": [
{
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
2018-04-02 22:54:47 +03:00
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "MEM",
"type": "timeseries"
2018-04-02 22:54:47 +03:00
},
{
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 30,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": []
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 14
2018-04-02 22:54:47 +03:00
},
"id": 9,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
2018-04-02 22:54:47 +03:00
}
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
2018-09-01 13:39:52 +03:00
"alias": "In",
2018-04-02 22:54:47 +03:00
"column": "enp0s25.rx",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-15 21:16:58 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "time"
2015-03-15 21:16:58 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"null"
],
2018-04-02 22:54:47 +03:00
"type": "fill"
2015-03-15 21:16:58 +03:00
}
],
"hide": false,
2018-04-02 22:54:47 +03:00
"interval": "",
"measurement": "$host.network",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"network\" and\n (r._field == \"rx\" or r._field == \"time_since_update\") and\n r.interface_name == \"${interface}\" and\n r.hostname == \"${host}\"\n )\n |> pivot(\n rowKey:[\"_time\"],\n columnKey: [\"_field\"],\n valueColumn: \"_value\"\n )\n |> map(fn: (r) => ({ r with _value: (r.rx / r.time_since_update) * 8.0 }))\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> keep(columns: [\"_time\", \"_value\"])\n |> rename(columns: {_value: \"rx_rate\"})\n",
2018-04-02 22:54:47 +03:00
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"eth0.rx"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "network",
"tags": []
},
{
2018-09-01 13:39:52 +03:00
"alias": "Out",
2018-04-02 22:54:47 +03:00
"column": "eth0.tx*-1",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2017-10-25 11:01:33 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
],
"type": "time"
2017-10-25 11:01:33 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"null"
],
"type": "fill"
2017-10-25 11:01:33 +03:00
}
2018-04-02 22:54:47 +03:00
],
"measurement": "$host.network",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"network\" and\n (r._field == \"tx\" or r._field == \"time_since_update\") and\n r.interface_name == \"${interface}\" and\n r.hostname == \"${host}\"\n )\n |> pivot(\n rowKey:[\"_time\"],\n columnKey: [\"_field\"],\n valueColumn: \"_value\"\n )\n |> map(fn: (r) => ({ r with _value: (r.tx / r.time_since_update) * -8.0 }))\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> keep(columns: [\"_time\", \"_value\"])\n |> rename(columns: {_value: \"tx_rate\"})\n",
2018-04-02 22:54:47 +03:00
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"eth0.tx"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "network",
"tags": [],
"target": ""
2015-03-15 21:16:58 +03:00
}
],
2018-04-02 22:54:47 +03:00
"timeFrom": null,
"timeShift": null,
"title": "$interface network interface",
"transformations": [],
"type": "timeseries"
2015-03-15 22:38:48 +03:00
},
{
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"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": "byRegexp",
"options": "/total.*/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-red",
"mode": "fixed"
}
},
{
"id": "custom.lineWidth",
"value": 2
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/used.*/"
},
"properties": [
{
"id": "custom.fillOpacity",
"value": 30
}
]
}
]
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 14
2018-04-02 22:54:47 +03:00
},
"id": 8,
"links": [],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "Used",
"column": "used",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-15 22:38:48 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "time"
}
],
"measurement": "$host.memswap",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"memswap\" and\n r._field == \"used\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"used\")\n ",
2018-04-02 22:54:47 +03:00
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"used"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "memswap",
"tags": []
},
{
"alias": "Max",
"column": "total",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2017-10-25 11:01:33 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
],
"type": "time"
2017-10-25 11:01:33 +03:00
}
2018-04-02 22:54:47 +03:00
],
"measurement": "$host.memswap",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"memswap\" and\n r._field == \"total\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"total\")\n \n ",
2018-04-02 22:54:47 +03:00
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"total"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "memswap",
"tags": [],
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "SWAP",
"type": "timeseries"
2018-04-02 22:54:47 +03:00
},
{
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 15,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 21
2018-04-02 22:54:47 +03:00
},
"id": 10,
"links": [],
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
2018-09-01 13:39:52 +03:00
}
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "Read",
"column": "sda2.read_bytes",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-15 22:38:48 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "time"
2015-03-15 22:38:48 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"none"
],
2018-04-02 22:54:47 +03:00
"type": "fill"
2015-03-15 22:38:48 +03:00
}
],
"measurement": "$host.diskio",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"diskio\" and\n (r._field == \"read_bytes\" or r._field == \"time_since_update\") and\n r.disk_name == \"${disk}\" and\n r.hostname == \"${host}\"\n )\n |> pivot(\n rowKey:[\"_time\"],\n columnKey: [\"_field\"],\n valueColumn: \"_value\"\n )\n |> map(fn: (r) => ({ r with _value: (r.read_bytes / r.time_since_update) }))\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> keep(columns: [\"_time\", \"_value\"])\n |> rename(columns: {_value: \"read_rate\"})\n",
2018-04-02 22:54:47 +03:00
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"sda2.read_bytes"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"series": "diskio",
"tags": []
2015-03-20 15:03:01 +03:00
},
{
2018-04-02 22:54:47 +03:00
"alias": "Write",
"column": "sda2.write_bytes",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-20 15:03:01 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
],
"type": "time"
2017-06-04 13:27:03 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"none"
],
"type": "fill"
2015-03-20 15:03:01 +03:00
}
],
"measurement": "$host.diskio",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"diskio\" and\n (r._field == \"write_bytes\" or r._field == \"time_since_update\") and\n r.disk_name == \"${disk}\" and\n r.hostname == \"${host}\"\n )\n |> pivot(\n rowKey:[\"_time\"],\n columnKey: [\"_field\"],\n valueColumn: \"_value\"\n )\n |> map(fn: (r) => ({ r with _value: (r.write_bytes / r.time_since_update) * -1.0 }))\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> keep(columns: [\"_time\", \"_value\"])\n |> rename(columns: {_value: \"write_rate\"})\n",
2018-04-02 22:54:47 +03:00
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"sda2.write_bytes"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
2015-03-20 15:03:01 +03:00
],
2018-04-02 22:54:47 +03:00
"series": "diskio",
"tags": [],
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "$disk disk IO",
"type": "timeseries"
2018-04-02 22:54:47 +03:00
},
{
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 3,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"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
}
]
}
]
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 7,
"w": 10,
2018-04-02 22:54:47 +03:00
"x": 12,
"y": 21
2018-04-02 22:54:47 +03:00
},
"id": 11,
"links": [],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
2018-09-01 13:39:52 +03:00
}
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "Used",
"column": "\"/.used\"",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2015-03-20 15:03:01 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
],
2018-04-02 22:54:47 +03:00
"type": "time"
},
{
"params": [
"none"
],
2018-04-02 22:54:47 +03:00
"type": "fill"
2015-03-20 15:03:01 +03:00
}
],
"measurement": "fs",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"fs\" and\n r._field == \"used\" and\n r.mnt_point == \"/\" and \n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"used\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"used"
2018-04-02 22:54:47 +03:00
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
2017-06-04 13:27:03 +03:00
],
2018-04-02 22:54:47 +03:00
"series": "fs",
"tags": [
{
"key": "mnt_point",
"operator": "=",
"value": "/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
2017-06-04 13:27:03 +03:00
},
{
2018-04-02 22:54:47 +03:00
"alias": "Max",
"column": "\"/.size\"",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2017-06-04 13:27:03 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
],
"type": "time"
2017-06-04 13:27:03 +03:00
},
2015-03-20 15:03:01 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"none"
],
"type": "fill"
2015-03-20 15:03:01 +03:00
}
],
"measurement": "fs",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"fs\" and\n r._field == \"size\" and\n r.mnt_point == \"/\" and \n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"size\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"size"
2018-04-02 22:54:47 +03:00
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
2017-06-04 13:27:03 +03:00
],
2018-04-02 22:54:47 +03:00
"series": "fs",
"tags": [
{
"key": "mnt_point",
"operator": "=",
"value": "/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
],
2018-04-02 22:54:47 +03:00
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "/ Size",
"type": "timeseries"
2018-04-02 22:54:47 +03:00
},
{
"cacheTimeout": null,
2018-04-03 22:47:15 +03:00
"datasource": "${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": []
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 7,
"w": 2,
"x": 22,
"y": 21
2018-04-02 22:54:47 +03:00
},
"id": 16,
"interval": null,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
2018-04-02 22:54:47 +03:00
},
"pluginVersion": "8.2.5",
2018-04-02 22:54:47 +03:00
"targets": [
{
"column": "\"/.percent\"",
"dsType": "influxdb",
"function": "mean",
"groupBy": [
2017-06-04 13:27:03 +03:00
{
2018-04-02 22:54:47 +03:00
"params": [
"auto"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "time"
2017-06-04 13:27:03 +03:00
}
],
"measurement": "fs",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"fs\" and\n r._field == \"percent\" and\n r.mnt_point == \"/\" and \n r.hostname == \"${host}\"\n )\n |> last()\n",
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"percent"
2018-04-02 22:54:47 +03:00
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
2017-06-04 13:27:03 +03:00
],
2018-04-02 22:54:47 +03:00
"series": "fs",
"tags": [
{
"key": "mnt_point",
"operator": "=",
"value": "/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
2017-06-04 13:27:03 +03:00
}
],
2018-04-02 22:54:47 +03:00
"title": "/ used",
"type": "stat"
2018-04-02 22:54:47 +03:00
},
{
"collapsed": false,
"datasource": null,
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 1,
2018-04-02 22:54:47 +03:00
"w": 24,
"x": 0,
"y": 28
2018-04-02 22:54:47 +03:00
},
"id": 33,
"panels": [],
"title": "Sensors $host",
"type": "row"
2018-04-02 22:54:47 +03:00
},
{
"cards": {
"cardPadding": null,
"cardRound": null
2018-04-02 22:54:47 +03:00
},
"color": {
"cardColor": "rgb(255, 0, 0)",
"colorScale": "sqrt",
"colorScheme": "interpolateReds",
"exponent": 1,
"min": null,
"mode": "opacity"
},
"dataFormat": "timeseries",
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 6,
"w": 12,
2018-04-02 22:54:47 +03:00
"x": 0,
"y": 29
2018-04-02 22:54:47 +03:00
},
"heatmap": {},
"hideZeroBuckets": false,
"highlightCards": true,
"id": 21,
2018-04-02 22:54:47 +03:00
"legend": {
"show": false
2018-04-02 22:54:47 +03:00
},
"links": [],
"reverseYBuckets": false,
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "AmbientTemperature",
"dsType": "influxdb",
2018-04-02 22:54:47 +03:00
"groupBy": [
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "time"
2017-10-25 11:01:33 +03:00
},
{
2018-04-02 22:54:47 +03:00
"params": [
"null"
2017-10-25 11:01:33 +03:00
],
2018-04-02 22:54:47 +03:00
"type": "fill"
2017-06-04 13:27:03 +03:00
}
],
"measurement": "sensors",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"sensors\" and\n r._field == \"value\" and\n r.label == \"Ambient\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"Ambient\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
2018-04-02 22:54:47 +03:00
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "label",
"operator": "=",
"value": "Ambient"
2018-09-01 13:39:52 +03:00
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
2018-04-02 22:54:47 +03:00
}
],
"title": "Ambient temperature",
2018-04-02 22:54:47 +03:00
"tooltip": {
"show": true,
"showHistogram": false
2018-04-02 22:54:47 +03:00
},
"type": "heatmap",
"xAxis": {
"show": true
2018-04-02 22:54:47 +03:00
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "celsius",
"logBase": 1,
"max": null,
"min": "0",
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": null
2017-10-25 11:01:33 +03:00
},
2017-06-04 13:27:03 +03:00
{
2018-04-02 22:54:47 +03:00
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "rgb(255, 0, 0)",
"colorScale": "sqrt",
"colorScheme": "interpolateOranges",
2018-04-02 22:54:47 +03:00
"exponent": 1,
"mode": "opacity"
},
"dataFormat": "timeseries",
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"y": 29
2018-04-02 22:54:47 +03:00
},
"heatmap": {},
"hideZeroBuckets": false,
2018-04-02 22:54:47 +03:00
"highlightCards": true,
"id": 23,
2018-04-02 22:54:47 +03:00
"legend": {
"show": false
},
"links": [],
"reverseYBuckets": false,
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "CpuTemperature",
2018-04-02 22:54:47 +03:00
"dsType": "influxdb",
"groupBy": [
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
],
2018-04-02 22:54:47 +03:00
"type": "time"
},
{
"params": [
"null"
],
2018-04-02 22:54:47 +03:00
"type": "fill"
}
],
"measurement": "sensors",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"sensors\" and\n r._field == \"value\" and\n r.label == \"CPU\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"Ambient\")\n \n ",
2018-04-02 22:54:47 +03:00
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
2018-04-02 22:54:47 +03:00
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "label",
"operator": "=",
"value": "CPU"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
2017-06-04 13:27:03 +03:00
}
],
"title": "CPU temperature",
2018-04-02 22:54:47 +03:00
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "celsius",
"logBase": 1,
"max": null,
"min": "0",
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
2018-04-02 22:54:47 +03:00
"yBucketNumber": null,
"yBucketSize": null
2017-10-25 11:01:33 +03:00
},
2017-06-04 13:27:03 +03:00
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 35
2018-04-02 22:54:47 +03:00
},
"id": 37,
"panels": [],
"title": "Containers hosted on $host",
"type": "row"
},
{
2018-04-03 22:47:15 +03:00
"datasource": "${DS_GLANCES}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"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": "cpu_percent"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#cca300",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "percent"
}
]
},
{
"matcher": {
"id": "byName",
"options": "memory_usage"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#2f575e",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "decbytes"
},
{
"id": "custom.fillOpacity",
"value": 36
}
]
}
]
},
2018-04-02 22:54:47 +03:00
"gridPos": {
"h": 8,
2018-04-02 22:54:47 +03:00
"w": 24,
"x": 0,
"y": 36
2018-04-02 22:54:47 +03:00
},
"id": 25,
2018-04-02 22:54:47 +03:00
"links": [],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.2.5",
"repeat": "container",
"repeatDirection": "v",
2018-04-02 22:54:47 +03:00
"targets": [
{
"alias": "MEM",
2018-04-02 22:54:47 +03:00
"groupBy": [
{
2018-04-02 22:54:47 +03:00
"params": [
"$__interval"
],
2018-04-02 22:54:47 +03:00
"type": "time"
},
{
"params": [
"none"
],
2018-04-02 22:54:47 +03:00
"type": "fill"
}
],
"hide": false,
"measurement": "docker",
2018-04-02 22:54:47 +03:00
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"docker\" and\n r._field == \"memory_usage\" and\n r.name == \"${container}\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"MEM\")\n \n ",
"rawQuery": false,
"refId": "B",
2018-04-02 22:54:47 +03:00
"resultFormat": "time_series",
"select": [
[
{
"params": [
"memory_usage"
2018-04-02 22:54:47 +03:00
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "name",
"operator": "=~",
"value": "/^$container$/"
},
{
"condition": "AND",
"key": "hostname",
"operator": "=~",
"value": "/^$host$/"
}
]
},
{
"alias": "CPU%",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"none"
],
"type": "fill"
}
],
"hide": false,
"measurement": "docker",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"glances\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"docker\" and\n r._field == \"cpu_percent\" and\n r.name == \"${container}\" and\n r.hostname == \"${host}\"\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"CPU%\")\n \n ",
"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$/"
}
]
2015-03-15 22:38:48 +03:00
}
2015-03-15 21:16:58 +03:00
],
"timeFrom": null,
"timeShift": null,
"title": "$container container",
"type": "timeseries"
2015-03-15 21:16:58 +03:00
}
],
2018-09-01 13:39:52 +03:00
"refresh": "5s",
"schemaVersion": 32,
2017-10-25 11:01:33 +03:00
"style": "dark",
"tags": [],
"templating": {
2018-04-02 22:54:47 +03:00
"list": [
{
"allValue": null,
2018-04-03 22:47:15 +03:00
"current": {},
"datasource": "${DS_GLANCES}",
"definition": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n bucket: v.bucket,\n tag: \"hostname\",\n predicate: (r) => true,\n start: -1d\n)",
"description": null,
"error": null,
2018-04-02 22:54:47 +03:00
"hide": 0,
"includeAll": false,
"label": null,
2018-04-03 22:47:15 +03:00
"multi": false,
"name": "host",
"options": [],
"query": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n bucket: v.bucket,\n tag: \"hostname\",\n predicate: (r) => true,\n start: -1d\n)",
2018-04-03 22:47:15 +03:00
"refresh": 1,
"regex": "",
"skipUrlSync": false,
2018-04-03 22:47:15 +03:00
"sort": 0,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "${DS_GLANCES}",
"definition": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n bucket: v.bucket,\n tag: \"name\",\n predicate: (r) => true,\n start: -1d\n)",
"description": null,
"error": null,
2018-04-03 22:47:15 +03:00
"hide": 0,
"includeAll": true,
"label": null,
2018-04-02 22:54:47 +03:00
"multi": true,
"name": "container",
"options": [],
"query": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n bucket: v.bucket,\n tag: \"name\",\n predicate: (r) => true,\n start: -1d\n)",
2018-04-02 22:54:47 +03:00
"refresh": 1,
"regex": "",
"skipUrlSync": false,
2018-04-02 22:54:47 +03:00
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
2018-04-03 22:47:15 +03:00
"current": {},
"datasource": "${DS_GLANCES}",
"definition": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n bucket: v.bucket,\n tag: \"interface_name\",\n predicate: (r) => true,\n start: -1d\n)",
"description": null,
"error": null,
2018-04-02 22:54:47 +03:00
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "interface",
"options": [],
"query": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n bucket: v.bucket,\n tag: \"interface_name\",\n predicate: (r) => true,\n start: -1d\n)",
2018-04-02 22:54:47 +03:00
"refresh": 1,
"regex": "",
"skipUrlSync": false,
2018-04-02 22:54:47 +03:00
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
2018-04-03 22:47:15 +03:00
"current": {},
"datasource": "${DS_GLANCES}",
"definition": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n bucket: v.bucket,\n tag: \"disk_name\",\n predicate: (r) => true,\n start: -1d\n)",
"description": null,
"error": null,
2018-04-02 22:54:47 +03:00
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "disk",
"options": [],
"query": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n bucket: v.bucket,\n tag: \"disk_name\",\n predicate: (r) => true,\n start: -1d\n)",
2018-04-02 22:54:47 +03:00
"refresh": 1,
"regex": "",
"skipUrlSync": false,
2018-04-02 22:54:47 +03:00
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
2017-10-25 11:01:33 +03:00
},
"time": {
"from": "now-1h",
2017-10-25 11:01:33 +03:00
"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 For FLUX",
"uid": "ESYAe0tnk",
"version": 21
}