Files
a13labs.infra/terraform/k8sapps/resources/chronograf/dashboards/2_disk_capacity.dashboard
T

1057 lines
22 KiB
Plaintext

{
"meta": {
"chronografVersion": "1.8.0",
"sources": {
"5000": {
"name": "internal",
"link": "/chronograf/v1/sources/5000"
}
}
},
"dashboard": {
"id": "2",
"cells": [
{
"i": "12475f7d-6fed-47ce-83fe-f78af9687834",
"x": 6,
"y": 1,
"w": 6,
"h": 3,
"name": "inode usage - :host: - :file_system:",
"queries": [
{
"query": "SELECT last(\"inodes_used\") AS \"inodes used\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)",
"queryConfig": {
"database": "telegraf",
"measurement": "disk",
"retentionPolicy": "",
"fields": [
{
"value": "last",
"type": "func",
"alias": "inodes used",
"args": [
{
"value": "inodes_used",
"type": "field",
"alias": ""
}
]
}
],
"tags": {
"host": [
":host:"
],
"path": [
":file_system:"
]
},
"groupBy": {
"time": "auto",
"tags": []
},
"areTagsAccepted": true,
"fill": "previous",
"rawText": null,
"range": null,
"shifts": null
},
"source": "",
"type": "influxql"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"0",
""
],
"label": "inodes",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line",
"colors": [
{
"id": "base",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "4b835bca-4233-4104-95d6-8e56edf6cab1",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "14f0d278-e294-483b-9b79-714488cee3c4",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"noteVisibility": "default",
"links": {
"self": "/chronograf/v1/dashboards/2/cells/12475f7d-6fed-47ce-83fe-f78af9687834"
}
},
{
"i": "c33cb5dd-5f49-4600-a6e7-9a9ba37e6e5d",
"x": 6,
"y": 0,
"w": 3,
"h": 1,
"name": "inodes Used - :host: - :file_system:",
"queries": [
{
"query": "SELECT last(\"inodes_used\") AS \"inodes used\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'",
"queryConfig": {
"database": "telegraf",
"measurement": "disk",
"retentionPolicy": "",
"fields": [
{
"value": "last",
"type": "func",
"alias": "inodes used",
"args": [
{
"value": "inodes_used",
"type": "field",
"alias": ""
}
]
}
],
"tags": {
"host": [
":host:"
],
"path": [
":file_system:"
]
},
"groupBy": {
"time": "",
"tags": []
},
"areTagsAccepted": true,
"rawText": null,
"range": null,
"shifts": null
},
"source": "",
"type": "influxql"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "single-stat",
"colors": [
{
"id": "base",
"type": "text",
"hex": "#00C9FF",
"name": "laser",
"value": "-1000000000000000000"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 0
},
"note": "",
"noteVisibility": "default",
"links": {
"self": "/chronograf/v1/dashboards/2/cells/c33cb5dd-5f49-4600-a6e7-9a9ba37e6e5d"
}
},
{
"i": "0819e027-5ac3-42c9-9ebe-05fd1621478e",
"x": 0,
"y": 4,
"w": 6,
"h": 3,
"name": "Capacity Utilization - :host: - :file_system:",
"queries": [
{
"query": "SELECT last(\"used_percent\") AS \"capacity utilization\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)",
"queryConfig": {
"database": "telegraf",
"measurement": "disk",
"retentionPolicy": "",
"fields": [
{
"value": "last",
"type": "func",
"alias": "capacity utilization",
"args": [
{
"value": "used_percent",
"type": "field",
"alias": ""
}
]
}
],
"tags": {
"host": [
":host:"
],
"path": [
":file_system:"
]
},
"groupBy": {
"time": "auto",
"tags": []
},
"areTagsAccepted": true,
"fill": "previous",
"rawText": null,
"range": null,
"shifts": null
},
"source": "",
"type": "influxql"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"0",
""
],
"label": "utilization",
"prefix": "",
"suffix": "%",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line-plus-single-stat",
"colors": [
{
"id": "base",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "4b835bca-4233-4104-95d6-8e56edf6cab1",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "14f0d278-e294-483b-9b79-714488cee3c4",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"noteVisibility": "default",
"links": {
"self": "/chronograf/v1/dashboards/2/cells/0819e027-5ac3-42c9-9ebe-05fd1621478e"
}
},
{
"i": "1949e1a0-daaa-4bbb-b99a-4f2a88f68d73",
"x": 9,
"y": 0,
"w": 3,
"h": 1,
"name": "",
"queries": [
{
"query": "false",
"queryConfig": {
"database": "",
"measurement": "",
"retentionPolicy": "",
"fields": [],
"tags": {},
"groupBy": {
"time": "",
"tags": []
},
"areTagsAccepted": false,
"rawText": "false",
"range": null,
"shifts": null
},
"source": "",
"type": "influxql"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line",
"colors": [
{
"id": "6f27a08e-d806-429e-b134-b452b6b13946",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "80fea787-8ebd-46d6-84d5-3e4efaa5b94b",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "5acc8c5e-c122-4cd5-a780-48e005aaf5ed",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"noteVisibility": "showWhenNoData",
"links": {
"self": "/chronograf/v1/dashboards/2/cells/1949e1a0-daaa-4bbb-b99a-4f2a88f68d73"
}
},
{
"i": "32043c11-1d04-4dc6-9a24-7a91a730a726",
"x": 3,
"y": 0,
"w": 3,
"h": 1,
"name": "File System Capacity Used - :host: - :file_system:",
"queries": [
{
"query": "SELECT last(\"used\") / 1073741824 AS \"capacity\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'",
"queryConfig": {
"database": "",
"measurement": "",
"retentionPolicy": "",
"fields": [],
"tags": {},
"groupBy": {
"time": "",
"tags": []
},
"areTagsAccepted": false,
"rawText": "SELECT last(\"used\") / 1073741824 AS \"capacity\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'",
"range": null,
"shifts": null
},
"source": "",
"type": "influxql"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": " GiB",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "single-stat",
"colors": [
{
"id": "base",
"type": "text",
"hex": "#00C9FF",
"name": "laser",
"value": "-1000000000000000000"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"noteVisibility": "default",
"links": {
"self": "/chronograf/v1/dashboards/2/cells/32043c11-1d04-4dc6-9a24-7a91a730a726"
}
},
{
"i": "a6ffbaac-52b9-46d7-8c36-f952be49e82c",
"x": 6,
"y": 4,
"w": 6,
"h": 3,
"name": "inode Utilization - :host: - :file_system:",
"queries": [
{
"query": "SELECT (last(\"inodes_used\") / last(\"inodes_total\")) * 100 AS \"inode utilization\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)",
"queryConfig": {
"database": "",
"measurement": "",
"retentionPolicy": "",
"fields": [],
"tags": {},
"groupBy": {
"time": "",
"tags": []
},
"areTagsAccepted": false,
"rawText": "SELECT (last(\"inodes_used\") / last(\"inodes_total\")) * 100 AS \"inode utilization\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)",
"range": null,
"shifts": null
},
"source": "",
"type": "influxql"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"0",
""
],
"label": "utilization",
"prefix": "",
"suffix": "%",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line-plus-single-stat",
"colors": [
{
"id": "base",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "4b835bca-4233-4104-95d6-8e56edf6cab1",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "14f0d278-e294-483b-9b79-714488cee3c4",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"noteVisibility": "default",
"links": {
"self": "/chronograf/v1/dashboards/2/cells/a6ffbaac-52b9-46d7-8c36-f952be49e82c"
}
},
{
"i": "38530ab3-9a50-410e-a052-82ac6ecc58ff",
"x": 0,
"y": 0,
"w": 3,
"h": 1,
"name": "File System Capacity - :host: - :file_system:",
"queries": [
{
"query": "SELECT last(\"total\") / 1073741824 AS \"capacity\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'",
"queryConfig": {
"database": "",
"measurement": "",
"retentionPolicy": "",
"fields": [],
"tags": {},
"groupBy": {
"time": "",
"tags": []
},
"areTagsAccepted": false,
"rawText": "SELECT last(\"total\") / 1073741824 AS \"capacity\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:'",
"range": null,
"shifts": null
},
"source": "",
"type": "influxql"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": " GiB",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "single-stat",
"colors": [
{
"id": "base",
"type": "text",
"hex": "#00C9FF",
"name": "laser",
"value": "-1000000000000000000"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"noteVisibility": "default",
"links": {
"self": "/chronograf/v1/dashboards/2/cells/38530ab3-9a50-410e-a052-82ac6ecc58ff"
}
},
{
"i": "058909b3-b7e3-473f-8fc3-cbaee19e21b1",
"x": 0,
"y": 1,
"w": 6,
"h": 3,
"name": "Capacity Usage - :host: - :file_system:",
"queries": [
{
"query": "SELECT last(\"used\") / 1073741824 AS \"capacity used\", (last(\"total\") - last(\"used\")) / 1073741824 AS \"capacity available\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)",
"queryConfig": {
"database": "",
"measurement": "",
"retentionPolicy": "",
"fields": [],
"tags": {},
"groupBy": {
"time": "",
"tags": []
},
"areTagsAccepted": false,
"rawText": "SELECT last(\"used\") / 1073741824 AS \"capacity used\", (last(\"total\") - last(\"used\")) / 1073741824 AS \"capacity available\" FROM \"telegraf\".\"autogen\".\"disk\" WHERE time > :dashboardTime: AND \"host\"=':host:' AND \"path\"=':file_system:' GROUP BY time(:interval:) FILL(previous)",
"range": null,
"shifts": null
},
"source": "",
"type": "influxql"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"0",
""
],
"label": "bytes",
"prefix": "",
"suffix": "GiB",
"base": "2",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line-stacked",
"colors": [
{
"id": "base",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "4b835bca-4233-4104-95d6-8e56edf6cab1",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "14f0d278-e294-483b-9b79-714488cee3c4",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"note": "",
"noteVisibility": "default",
"links": {
"self": "/chronograf/v1/dashboards/2/cells/058909b3-b7e3-473f-8fc3-cbaee19e21b1"
}
}
],
"templates": [
{
"tempVar": ":host:",
"values": [
{
"value": "k8s",
"type": "influxql",
"selected": true
}
],
"id": "21f8e74f-f78c-440e-af0a-58efdb7299b0",
"type": "influxql",
"label": "",
"query": {
"influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"disk\" WITH KEY=\"host\"",
"measurement": "",
"tagKey": "",
"fieldKey": ""
},
"sourceID": "5000",
"links": {
"self": "/chronograf/v1/dashboards/2/templates/21f8e74f-f78c-440e-af0a-58efdb7299b0"
}
},
{
"tempVar": ":file_system:",
"values": [
{
"value": "/",
"type": "influxql",
"selected": true
},
{
"value": "/boot",
"type": "influxql",
"selected": true
},
{
"value": "/etc/hostname",
"type": "influxql",
"selected": true
},
{
"value": "/etc/hosts",
"type": "influxql",
"selected": true
},
{
"value": "/etc/resolv.conf",
"type": "influxql",
"selected": true
},
{
"value": "/mnt/microk8s_config",
"type": "influxql",
"selected": true
},
{
"value": "/mnt/microk8s_persistent",
"type": "influxql",
"selected": true
}
],
"id": "67208fb2-17f4-404a-b061-fa459a3d58c3",
"type": "influxql",
"label": "",
"query": {
"influxql": "SHOW TAG VALUES ON \"telegraf\" FROM \"disk\" WITH KEY=\"path\" WHERE \"host\"=':host:'",
"measurement": "",
"tagKey": "",
"fieldKey": ""
},
"sourceID": "5000",
"links": {
"self": "/chronograf/v1/dashboards/2/templates/67208fb2-17f4-404a-b061-fa459a3d58c3"
}
}
],
"name": "Disk: Capacity",
"organization": "default",
"links": {
"self": "/chronograf/v1/dashboards/2",
"cells": "/chronograf/v1/dashboards/2/cells",
"templates": "/chronograf/v1/dashboards/2/templates"
}
}
}