2023-02-11 16:17:50 +00:00
|
|
|
{
|
|
|
|
"annotations": {
|
|
|
|
"list": [
|
|
|
|
{
|
|
|
|
"builtIn": 1,
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "datasource",
|
|
|
|
"uid": "grafana"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"enable": true,
|
|
|
|
"hide": true,
|
|
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
|
|
"name": "Annotations & Alerts",
|
2023-05-11 13:23:35 +00:00
|
|
|
"target": {
|
|
|
|
"limit": 100,
|
|
|
|
"matchAny": false,
|
|
|
|
"tags": [],
|
|
|
|
"type": "dashboard"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"type": "dashboard"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"description": "Docker Swarm nodes metrics",
|
|
|
|
"editable": true,
|
2023-05-11 13:23:35 +00:00
|
|
|
"fiscalYearStartMonth": 0,
|
2023-02-11 16:17:50 +00:00
|
|
|
"gnetId": 7461,
|
|
|
|
"graphTooltip": 0,
|
2023-07-31 14:28:44 +00:00
|
|
|
"id": 1,
|
|
|
|
"links": [
|
|
|
|
{
|
|
|
|
"asDropdown": false,
|
|
|
|
"icon": "external link",
|
|
|
|
"includeVars": false,
|
|
|
|
"keepTime": false,
|
|
|
|
"tags": [
|
|
|
|
"menu"
|
|
|
|
],
|
|
|
|
"targetBlank": false,
|
|
|
|
"title": "Dashboards",
|
|
|
|
"tooltip": "",
|
|
|
|
"type": "dashboards",
|
|
|
|
"url": ""
|
|
|
|
}
|
|
|
|
],
|
2023-05-11 13:23:35 +00:00
|
|
|
"liveNow": false,
|
2023-02-11 16:17:50 +00:00
|
|
|
"panels": [
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"decimals": 1,
|
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "red",
|
|
|
|
"value": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "yellow",
|
|
|
|
"value": 3600
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "green",
|
|
|
|
"value": 86400
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "s"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 4,
|
2023-05-11 13:23:35 +00:00
|
|
|
"w": 4,
|
2023-02-11 16:17:50 +00:00
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"hideTimeOverride": true,
|
|
|
|
"id": 2,
|
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"mean"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"text": {},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "topk(1, sum((node_time_seconds - node_boot_time_seconds) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name))",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"timeFrom": "1m",
|
|
|
|
"title": "Uptime",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"decimals": 0,
|
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "red",
|
|
|
|
"value": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "green",
|
|
|
|
"value": 1
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "none"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 4,
|
2023-05-11 13:23:35 +00:00
|
|
|
"w": 2,
|
|
|
|
"x": 4,
|
2023-02-11 16:17:50 +00:00
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"id": 1,
|
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"mean"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"text": {},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "count(node_meta * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 20
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Nodes",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"decimals": 0,
|
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "red",
|
|
|
|
"value": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "green",
|
|
|
|
"value": 8
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "short"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 4,
|
2023-05-11 13:23:35 +00:00
|
|
|
"w": 2,
|
|
|
|
"x": 6,
|
2023-02-11 16:17:50 +00:00
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"hideTimeOverride": true,
|
|
|
|
"id": 4,
|
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"mean"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"text": {},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "count(node_cpu_seconds_total{mode=\"idle\"} * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"timeFrom": "1m",
|
|
|
|
"title": "CPUs",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"max": 100,
|
|
|
|
"min": 0,
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "rgba(245, 54, 54, 0.9)",
|
|
|
|
"value": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "rgba(237, 129, 40, 0.89)",
|
|
|
|
"value": 10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "rgba(50, 172, 45, 0.97)",
|
|
|
|
"value": 25
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "percent"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 4,
|
2023-12-20 22:22:59 +00:00
|
|
|
"w": 4,
|
2023-05-11 13:23:35 +00:00
|
|
|
"x": 8,
|
2023-02-11 16:17:50 +00:00
|
|
|
"y": 0
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"id": 8,
|
2023-02-11 16:17:50 +00:00
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
|
|
|
"options": {
|
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"showThresholdLabels": false,
|
|
|
|
"showThresholdMarkers": true,
|
|
|
|
"text": {}
|
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "sum((node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"} * 100) / count(node_meta * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
|
2023-02-11 16:17:50 +00:00
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "",
|
2023-12-20 22:22:59 +00:00
|
|
|
"range": true,
|
2023-02-11 16:17:50 +00:00
|
|
|
"refId": "A",
|
2023-12-20 22:22:59 +00:00
|
|
|
"step": 20
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
],
|
2023-12-20 22:22:59 +00:00
|
|
|
"title": "Total Available Memory",
|
2023-02-11 16:17:50 +00:00
|
|
|
"type": "gauge"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"aliasColors": {},
|
|
|
|
"bars": false,
|
|
|
|
"dashLength": 10,
|
|
|
|
"dashes": false,
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"decimals": 2,
|
|
|
|
"fill": 1,
|
|
|
|
"fillGradient": 0,
|
|
|
|
"gridPos": {
|
2023-05-11 13:23:35 +00:00
|
|
|
"h": 8,
|
2023-12-20 22:22:59 +00:00
|
|
|
"w": 12,
|
|
|
|
"x": 12,
|
2023-05-11 13:23:35 +00:00
|
|
|
"y": 0
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"hiddenSeries": false,
|
|
|
|
"id": 13,
|
|
|
|
"legend": {
|
|
|
|
"alignAsTable": true,
|
|
|
|
"avg": true,
|
|
|
|
"current": true,
|
|
|
|
"hideEmpty": false,
|
|
|
|
"hideZero": false,
|
|
|
|
"max": true,
|
|
|
|
"min": true,
|
|
|
|
"rightSide": true,
|
|
|
|
"show": false,
|
|
|
|
"total": false,
|
|
|
|
"values": true
|
|
|
|
},
|
|
|
|
"lines": true,
|
|
|
|
"linewidth": 1,
|
|
|
|
"links": [],
|
|
|
|
"nullPointMode": "null",
|
|
|
|
"options": {
|
|
|
|
"alertThreshold": true
|
|
|
|
},
|
|
|
|
"percentage": false,
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"pointradius": 5,
|
|
|
|
"points": false,
|
|
|
|
"renderer": "flot",
|
|
|
|
"seriesOverrides": [],
|
|
|
|
"spaceLength": 10,
|
|
|
|
"stack": false,
|
|
|
|
"steppedLine": false,
|
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "node_load5 * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}",
|
|
|
|
"format": "time_series",
|
|
|
|
"interval": "",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "load5 {{node_name}}",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": [],
|
|
|
|
"timeRegions": [],
|
|
|
|
"title": "System Load by Node",
|
|
|
|
"tooltip": {
|
|
|
|
"shared": true,
|
|
|
|
"sort": 2,
|
|
|
|
"value_type": "individual"
|
|
|
|
},
|
|
|
|
"type": "graph",
|
|
|
|
"xaxis": {
|
|
|
|
"mode": "time",
|
|
|
|
"show": true,
|
|
|
|
"values": []
|
|
|
|
},
|
|
|
|
"yaxes": [
|
|
|
|
{
|
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"yaxis": {
|
2023-05-11 13:23:35 +00:00
|
|
|
"align": false
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "fixed"
|
|
|
|
},
|
|
|
|
"decimals": 1,
|
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "green",
|
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "decbytes"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 4,
|
2023-12-20 22:22:59 +00:00
|
|
|
"w": 4,
|
2023-02-11 16:17:50 +00:00
|
|
|
"x": 0,
|
2023-05-11 13:23:35 +00:00
|
|
|
"y": 4
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"hideTimeOverride": true,
|
|
|
|
"id": 3,
|
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"text": {},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "sum(node_memory_MemTotal_bytes * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 20
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Total Memory",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
2023-12-20 22:22:59 +00:00
|
|
|
"color": {
|
|
|
|
"mode": "fixed"
|
|
|
|
},
|
|
|
|
"decimals": 1,
|
2023-02-11 16:17:50 +00:00
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
2023-12-20 22:22:59 +00:00
|
|
|
"color": "green",
|
2023-02-11 16:17:50 +00:00
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"unit": "decbytes"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 4,
|
2023-12-20 22:22:59 +00:00
|
|
|
"w": 4,
|
|
|
|
"x": 4,
|
2023-05-11 13:23:35 +00:00
|
|
|
"y": 4
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"hideTimeOverride": true,
|
|
|
|
"id": 9,
|
2023-02-11 16:17:50 +00:00
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
|
|
|
"options": {
|
2023-12-20 22:22:59 +00:00
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "none",
|
|
|
|
"justifyMode": "auto",
|
2023-02-11 16:17:50 +00:00
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"text": {},
|
|
|
|
"textMode": "auto"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"exemplar": true,
|
|
|
|
"expr": "sum(node_filesystem_size_bytes{fstype=\"ext4\",mountpoint=~\"(/$)|(/media.*)\"} * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
|
2023-02-11 16:17:50 +00:00
|
|
|
"format": "time_series",
|
2023-12-20 22:22:59 +00:00
|
|
|
"interval": "",
|
2023-02-11 16:17:50 +00:00
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 20
|
|
|
|
}
|
|
|
|
],
|
2023-12-20 22:22:59 +00:00
|
|
|
"title": "Total Disk Space",
|
|
|
|
"type": "stat"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
2023-12-20 22:22:59 +00:00
|
|
|
"max": 100,
|
|
|
|
"min": 0,
|
2023-02-11 16:17:50 +00:00
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
2023-12-20 22:22:59 +00:00
|
|
|
"color": "rgba(245, 54, 54, 0.9)",
|
2023-02-11 16:17:50 +00:00
|
|
|
"value": null
|
2023-12-20 22:22:59 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "rgba(237, 129, 40, 0.89)",
|
|
|
|
"value": 10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "rgba(50, 172, 45, 0.97)",
|
|
|
|
"value": 25
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"unit": "percent"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 4,
|
2023-12-20 22:22:59 +00:00
|
|
|
"w": 4,
|
|
|
|
"x": 8,
|
2023-05-11 13:23:35 +00:00
|
|
|
"y": 4
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"hideTimeOverride": true,
|
2023-12-20 22:22:59 +00:00
|
|
|
"id": 11,
|
2023-02-11 16:17:50 +00:00
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
|
|
|
"options": {
|
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"showThresholdLabels": false,
|
|
|
|
"showThresholdMarkers": true,
|
|
|
|
"text": {}
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"expr": "sum(irate(node_cpu_seconds_total{mode=\"idle\"}[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) * 100 / count(node_cpu_seconds_total{mode=\"user\"} * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) ",
|
2023-02-11 16:17:50 +00:00
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "",
|
|
|
|
"refId": "A",
|
2023-12-20 22:22:59 +00:00
|
|
|
"step": 2
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
],
|
2023-12-20 22:22:59 +00:00
|
|
|
"timeFrom": "1m",
|
|
|
|
"title": "Total CPU Idle",
|
|
|
|
"type": "gauge"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
2023-07-31 14:28:44 +00:00
|
|
|
"color": {
|
|
|
|
"mode": "thresholds"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"max": 100,
|
|
|
|
"min": 0,
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "rgba(245, 54, 54, 0.9)",
|
|
|
|
"value": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "rgba(237, 129, 40, 0.89)",
|
|
|
|
"value": 10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "rgba(50, 172, 45, 0.97)",
|
|
|
|
"value": 25
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "percent"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 4,
|
2023-12-20 22:22:59 +00:00
|
|
|
"w": 2.6666666666666665,
|
2023-07-31 14:28:44 +00:00
|
|
|
"x": 0,
|
|
|
|
"y": 8
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"id": 10,
|
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
2023-07-31 14:28:44 +00:00
|
|
|
"maxPerRow": 12,
|
2023-02-11 16:17:50 +00:00
|
|
|
"options": {
|
2023-07-31 14:28:44 +00:00
|
|
|
"colorMode": "value",
|
|
|
|
"graphMode": "area",
|
|
|
|
"justifyMode": "auto",
|
2023-02-11 16:17:50 +00:00
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"last"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"textMode": "auto"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
|
|
|
"repeat": "node_id",
|
|
|
|
"repeatDirection": "h",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"exemplar": true,
|
|
|
|
"expr": "sum((node_filesystem_free_bytes{fstype=\"ext4\",mountpoint=~\"(/$)|(/media.*)\"} / node_filesystem_size_bytes{fstype=\"ext4\",mountpoint=~\"(/$)|(/media.*)\"}) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"} * 100) / count(node_meta * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
|
|
|
|
"format": "time_series",
|
|
|
|
"interval": "",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 20
|
|
|
|
}
|
|
|
|
],
|
2023-07-31 14:28:44 +00:00
|
|
|
"title": "Available Disk Space $node_id",
|
|
|
|
"type": "stat"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"aliasColors": {},
|
|
|
|
"bars": false,
|
|
|
|
"dashLength": 10,
|
|
|
|
"dashes": false,
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
|
|
|
"decimals": 2,
|
|
|
|
"fill": 1,
|
|
|
|
"fillGradient": 0,
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 24,
|
|
|
|
"x": 0,
|
2023-07-31 14:28:44 +00:00
|
|
|
"y": 12
|
2023-05-11 13:23:35 +00:00
|
|
|
},
|
|
|
|
"hiddenSeries": false,
|
|
|
|
"id": 14,
|
|
|
|
"legend": {
|
|
|
|
"alignAsTable": true,
|
|
|
|
"avg": true,
|
|
|
|
"current": true,
|
|
|
|
"hideEmpty": true,
|
|
|
|
"hideZero": true,
|
|
|
|
"max": true,
|
|
|
|
"min": true,
|
|
|
|
"rightSide": true,
|
|
|
|
"show": true,
|
|
|
|
"total": false,
|
|
|
|
"values": true
|
|
|
|
},
|
|
|
|
"lines": true,
|
|
|
|
"linewidth": 1,
|
|
|
|
"links": [],
|
|
|
|
"nullPointMode": "null as zero",
|
|
|
|
"options": {
|
|
|
|
"alertThreshold": true
|
|
|
|
},
|
|
|
|
"percentage": false,
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-05-11 13:23:35 +00:00
|
|
|
"pointradius": 5,
|
|
|
|
"points": false,
|
|
|
|
"renderer": "flot",
|
|
|
|
"seriesOverrides": [],
|
|
|
|
"spaceLength": 10,
|
|
|
|
"stack": false,
|
|
|
|
"steppedLine": false,
|
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-05-11 13:23:35 +00:00
|
|
|
"expr": "100 - (avg(irate(node_cpu_seconds_total{mode=\"idle\"}[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"} * 100) by (node_name))",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "{{node_name}}",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": [],
|
|
|
|
"timeRegions": [],
|
|
|
|
"title": "CPU Usage by Node",
|
|
|
|
"tooltip": {
|
|
|
|
"shared": true,
|
|
|
|
"sort": 2,
|
|
|
|
"value_type": "individual"
|
|
|
|
},
|
|
|
|
"type": "graph",
|
|
|
|
"xaxis": {
|
|
|
|
"mode": "time",
|
|
|
|
"show": true,
|
|
|
|
"values": []
|
|
|
|
},
|
|
|
|
"yaxes": [
|
|
|
|
{
|
|
|
|
"format": "percent",
|
|
|
|
"logBase": 1,
|
|
|
|
"max": "100",
|
|
|
|
"show": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"yaxis": {
|
|
|
|
"align": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "palette-classic"
|
|
|
|
},
|
|
|
|
"custom": {
|
|
|
|
"axisCenteredZero": false,
|
|
|
|
"axisColorMode": "text",
|
|
|
|
"axisLabel": "",
|
|
|
|
"axisPlacement": "auto",
|
|
|
|
"barAlignment": 0,
|
|
|
|
"drawStyle": "line",
|
|
|
|
"fillOpacity": 10,
|
|
|
|
"gradientMode": "none",
|
|
|
|
"hideFrom": {
|
|
|
|
"legend": false,
|
|
|
|
"tooltip": false,
|
|
|
|
"viz": false
|
|
|
|
},
|
|
|
|
"lineInterpolation": "linear",
|
|
|
|
"lineWidth": 1,
|
|
|
|
"pointSize": 5,
|
|
|
|
"scaleDistribution": {
|
|
|
|
"type": "linear"
|
|
|
|
},
|
|
|
|
"showPoints": "never",
|
|
|
|
"spanNulls": false,
|
|
|
|
"stacking": {
|
|
|
|
"group": "A",
|
|
|
|
"mode": "normal"
|
|
|
|
},
|
|
|
|
"thresholdsStyle": {
|
|
|
|
"mode": "dashed"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"mappings": [],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "percentage",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "green",
|
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "decbytes"
|
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"matcher": {
|
|
|
|
"id": "byFrameRefID",
|
|
|
|
"options": "total"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"id": "custom.stacking",
|
|
|
|
"value": {
|
|
|
|
"group": "A",
|
|
|
|
"mode": "percent"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
2023-12-20 22:22:59 +00:00
|
|
|
"w": 2.6666666666666665,
|
2023-02-11 16:17:50 +00:00
|
|
|
"x": 0,
|
2023-07-31 14:28:44 +00:00
|
|
|
"y": 19
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"id": 15,
|
|
|
|
"links": [],
|
2023-07-31 14:28:44 +00:00
|
|
|
"maxPerRow": 12,
|
2023-02-11 16:17:50 +00:00
|
|
|
"options": {
|
2023-07-31 14:28:44 +00:00
|
|
|
"legend": {
|
|
|
|
"calcs": [
|
|
|
|
"mean",
|
|
|
|
"max",
|
|
|
|
"min"
|
|
|
|
],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "right",
|
|
|
|
"showLegend": false
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "multi",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "9.5.2",
|
|
|
|
"repeat": "node_id",
|
|
|
|
"repeatDirection": "h",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "sum((node_memory_MemFree_bytes) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)",
|
2023-02-11 16:17:50 +00:00
|
|
|
"format": "time_series",
|
2023-07-31 14:28:44 +00:00
|
|
|
"hide": false,
|
2023-02-11 16:17:50 +00:00
|
|
|
"interval": "",
|
|
|
|
"intervalFactor": 2,
|
2023-07-31 14:28:44 +00:00
|
|
|
"legendFormat": "Free {{node_name}}",
|
|
|
|
"range": true,
|
|
|
|
"refId": "free",
|
2023-02-11 16:17:50 +00:00
|
|
|
"step": 2
|
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "sum((node_memory_Cached_bytes + node_memory_Buffers_bytes + node_memory_Slab_bytes) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)",
|
2023-02-11 16:17:50 +00:00
|
|
|
"format": "time_series",
|
2023-07-31 14:28:44 +00:00
|
|
|
"hide": false,
|
|
|
|
"interval": "",
|
2023-02-11 16:17:50 +00:00
|
|
|
"intervalFactor": 2,
|
2023-07-31 14:28:44 +00:00
|
|
|
"legendFormat": "cache,buffer,slab {{node_name}}",
|
|
|
|
"range": true,
|
|
|
|
"refId": "cache,buffer,slab",
|
2023-02-11 16:17:50 +00:00
|
|
|
"step": 2
|
2023-07-31 14:28:44 +00:00
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "sum((node_memory_MemTotal_bytes - node_memory_MemFree_bytes - node_memory_Cached_bytes - node_memory_Buffers_bytes - node_memory_Slab_bytes) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"hide": false,
|
|
|
|
"interval": "",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "Used {{node_name}}",
|
|
|
|
"range": true,
|
|
|
|
"refId": "Used",
|
|
|
|
"step": 2
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
|
|
|
"editorMode": "code",
|
|
|
|
"exemplar": false,
|
|
|
|
"expr": "sum((node_memory_MemTotal_bytes) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"hide": false,
|
|
|
|
"instant": false,
|
|
|
|
"interval": "",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "Total {{node_name}}",
|
|
|
|
"range": true,
|
|
|
|
"refId": "total",
|
|
|
|
"step": 2
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
],
|
2023-07-31 14:28:44 +00:00
|
|
|
"title": "Memory $node_id",
|
|
|
|
"type": "timeseries"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"aliasColors": {},
|
|
|
|
"bars": false,
|
|
|
|
"dashLength": 10,
|
|
|
|
"dashes": false,
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"decimals": 2,
|
|
|
|
"fill": 1,
|
|
|
|
"fillGradient": 0,
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 24,
|
|
|
|
"x": 0,
|
2023-07-31 14:28:44 +00:00
|
|
|
"y": 26
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"hiddenSeries": false,
|
|
|
|
"id": 16,
|
|
|
|
"legend": {
|
|
|
|
"alignAsTable": true,
|
|
|
|
"avg": true,
|
|
|
|
"current": false,
|
|
|
|
"max": true,
|
|
|
|
"min": true,
|
|
|
|
"rightSide": true,
|
|
|
|
"show": true,
|
|
|
|
"total": false,
|
|
|
|
"values": true
|
|
|
|
},
|
|
|
|
"lines": true,
|
|
|
|
"linewidth": 1,
|
|
|
|
"links": [],
|
|
|
|
"nullPointMode": "null as zero",
|
|
|
|
"options": {
|
|
|
|
"alertThreshold": true
|
|
|
|
},
|
|
|
|
"percentage": false,
|
2023-12-20 22:22:59 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"pointradius": 5,
|
|
|
|
"points": false,
|
|
|
|
"renderer": "flot",
|
|
|
|
"seriesOverrides": [],
|
|
|
|
"spaceLength": 10,
|
|
|
|
"stack": false,
|
|
|
|
"steppedLine": false,
|
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "sum(irate(node_disk_read_bytes_total[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"interval": "",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "Read {{node_name}}",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 2
|
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "sum(irate(node_disk_written_bytes_total[$interval]) * on(instance) group_left(node_name) node_meta{node_id=~\"$node_id\"}) by (node_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "Written {{node_name}}",
|
|
|
|
"refId": "B",
|
|
|
|
"step": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": [],
|
|
|
|
"timeRegions": [],
|
|
|
|
"title": "Disk I/O by Node",
|
|
|
|
"tooltip": {
|
|
|
|
"shared": true,
|
|
|
|
"sort": 0,
|
|
|
|
"value_type": "individual"
|
|
|
|
},
|
|
|
|
"type": "graph",
|
|
|
|
"xaxis": {
|
|
|
|
"mode": "time",
|
|
|
|
"show": true,
|
|
|
|
"values": []
|
|
|
|
},
|
|
|
|
"yaxes": [
|
|
|
|
{
|
|
|
|
"format": "Bps",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"yaxis": {
|
2023-05-11 13:23:35 +00:00
|
|
|
"align": false
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"aliasColors": {},
|
|
|
|
"bars": false,
|
|
|
|
"dashLength": 10,
|
|
|
|
"dashes": false,
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"decimals": 2,
|
|
|
|
"fill": 1,
|
|
|
|
"fillGradient": 0,
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 12,
|
|
|
|
"x": 0,
|
2023-07-31 14:28:44 +00:00
|
|
|
"y": 33
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"hiddenSeries": false,
|
|
|
|
"id": 18,
|
|
|
|
"legend": {
|
|
|
|
"alignAsTable": true,
|
|
|
|
"avg": true,
|
|
|
|
"current": true,
|
|
|
|
"max": true,
|
|
|
|
"min": true,
|
|
|
|
"rightSide": true,
|
|
|
|
"show": false,
|
|
|
|
"total": false,
|
|
|
|
"values": true
|
|
|
|
},
|
|
|
|
"lines": true,
|
|
|
|
"linewidth": 1,
|
|
|
|
"links": [],
|
|
|
|
"nullPointMode": "null as zero",
|
|
|
|
"options": {
|
|
|
|
"alertThreshold": true
|
|
|
|
},
|
|
|
|
"percentage": false,
|
2023-12-20 22:22:59 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"pointradius": 5,
|
|
|
|
"points": false,
|
|
|
|
"renderer": "flot",
|
|
|
|
"seriesOverrides": [],
|
|
|
|
"spaceLength": 10,
|
|
|
|
"stack": false,
|
|
|
|
"steppedLine": false,
|
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "sum(irate(node_disk_reads_completed_total[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "Reads {{node_name}}",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 2
|
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "sum(irate(node_disk_writes_completed_total[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "Writes {{node_name}}",
|
|
|
|
"refId": "B",
|
|
|
|
"step": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": [],
|
|
|
|
"timeRegions": [],
|
|
|
|
"title": "IOPS by Node",
|
|
|
|
"tooltip": {
|
|
|
|
"shared": true,
|
|
|
|
"sort": 0,
|
|
|
|
"value_type": "individual"
|
|
|
|
},
|
|
|
|
"type": "graph",
|
|
|
|
"xaxis": {
|
|
|
|
"mode": "time",
|
|
|
|
"show": true,
|
|
|
|
"values": []
|
|
|
|
},
|
|
|
|
"yaxes": [
|
|
|
|
{
|
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"yaxis": {
|
2023-05-11 13:23:35 +00:00
|
|
|
"align": false
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"aliasColors": {},
|
|
|
|
"bars": false,
|
|
|
|
"dashLength": 10,
|
|
|
|
"dashes": false,
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"decimals": 2,
|
|
|
|
"fill": 1,
|
|
|
|
"fillGradient": 0,
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 12,
|
|
|
|
"x": 12,
|
2023-07-31 14:28:44 +00:00
|
|
|
"y": 33
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"hiddenSeries": false,
|
|
|
|
"id": 19,
|
|
|
|
"legend": {
|
|
|
|
"alignAsTable": true,
|
|
|
|
"avg": true,
|
|
|
|
"current": true,
|
|
|
|
"hideEmpty": true,
|
|
|
|
"hideZero": true,
|
|
|
|
"max": true,
|
|
|
|
"min": true,
|
|
|
|
"rightSide": true,
|
|
|
|
"show": false,
|
|
|
|
"total": false,
|
|
|
|
"values": true
|
|
|
|
},
|
|
|
|
"lines": true,
|
|
|
|
"linewidth": 1,
|
|
|
|
"links": [],
|
|
|
|
"nullPointMode": "null as zero",
|
|
|
|
"options": {
|
|
|
|
"alertThreshold": true
|
|
|
|
},
|
|
|
|
"percentage": false,
|
2023-12-20 22:22:59 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"pointradius": 5,
|
|
|
|
"points": false,
|
|
|
|
"renderer": "flot",
|
|
|
|
"seriesOverrides": [],
|
|
|
|
"spaceLength": 10,
|
|
|
|
"stack": false,
|
|
|
|
"steppedLine": false,
|
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "(avg(irate(node_cpu_seconds_total{mode=\"iowait\"}[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"} * 100) by (node_name))",
|
|
|
|
"format": "time_series",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "{{node_name}}",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": [],
|
|
|
|
"timeRegions": [],
|
|
|
|
"title": "CPU IO Wait by Node",
|
|
|
|
"tooltip": {
|
|
|
|
"shared": true,
|
|
|
|
"sort": 2,
|
|
|
|
"value_type": "individual"
|
|
|
|
},
|
|
|
|
"type": "graph",
|
|
|
|
"xaxis": {
|
|
|
|
"mode": "time",
|
|
|
|
"show": true,
|
|
|
|
"values": []
|
|
|
|
},
|
|
|
|
"yaxes": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"$$hashKey": "object:143",
|
2023-02-11 16:17:50 +00:00
|
|
|
"format": "percent",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"$$hashKey": "object:144",
|
2023-02-11 16:17:50 +00:00
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"yaxis": {
|
2023-05-11 13:23:35 +00:00
|
|
|
"align": false
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"aliasColors": {},
|
|
|
|
"bars": false,
|
|
|
|
"dashLength": 10,
|
|
|
|
"dashes": false,
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"decimals": 0,
|
|
|
|
"fill": 3,
|
|
|
|
"fillGradient": 0,
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 18,
|
|
|
|
"x": 0,
|
2023-07-31 14:28:44 +00:00
|
|
|
"y": 40
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"hiddenSeries": false,
|
|
|
|
"id": 12,
|
|
|
|
"legend": {
|
|
|
|
"alignAsTable": true,
|
|
|
|
"avg": false,
|
|
|
|
"current": true,
|
|
|
|
"hideEmpty": true,
|
|
|
|
"hideZero": true,
|
|
|
|
"max": false,
|
|
|
|
"min": false,
|
|
|
|
"rightSide": true,
|
|
|
|
"show": true,
|
|
|
|
"sort": "current",
|
|
|
|
"sortDesc": true,
|
|
|
|
"total": false,
|
|
|
|
"values": true
|
|
|
|
},
|
|
|
|
"lines": true,
|
|
|
|
"linewidth": 1,
|
|
|
|
"links": [],
|
|
|
|
"nullPointMode": "null",
|
|
|
|
"options": {
|
|
|
|
"alertThreshold": true
|
|
|
|
},
|
|
|
|
"percentage": false,
|
2023-12-20 22:22:59 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"pointradius": 5,
|
|
|
|
"points": false,
|
|
|
|
"renderer": "flot",
|
|
|
|
"seriesOverrides": [],
|
|
|
|
"spaceLength": 10,
|
|
|
|
"stack": true,
|
|
|
|
"steppedLine": false,
|
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "sum(rate(container_last_seen[5m]) * on(container_label_com_docker_swarm_node_id) group_left(node_name) node_meta{node_name=~\"${node_id}\"}) by (container_label_com_docker_swarm_service_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"hide": false,
|
|
|
|
"intervalFactor": 10,
|
|
|
|
"legendFormat": "{{ container_label_com_docker_swarm_service_name }}",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 10
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": [],
|
|
|
|
"timeRegions": [],
|
|
|
|
"title": "Running Containers by Service",
|
|
|
|
"tooltip": {
|
|
|
|
"shared": true,
|
|
|
|
"sort": 2,
|
|
|
|
"value_type": "individual"
|
|
|
|
},
|
|
|
|
"type": "graph",
|
|
|
|
"xaxis": {
|
|
|
|
"mode": "time",
|
|
|
|
"show": true,
|
|
|
|
"values": []
|
|
|
|
},
|
|
|
|
"yaxes": [
|
|
|
|
{
|
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"format": "short",
|
|
|
|
"logBase": 1,
|
|
|
|
"show": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"yaxis": {
|
2023-05-11 13:23:35 +00:00
|
|
|
"align": false
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"fixedColor": "rgb(31, 120, 193)",
|
|
|
|
"mode": "fixed"
|
|
|
|
},
|
|
|
|
"decimals": 0,
|
|
|
|
"mappings": [
|
|
|
|
{
|
|
|
|
"options": {
|
|
|
|
"match": "null",
|
|
|
|
"result": {
|
|
|
|
"text": "N/A"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "special"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"color": "green"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "red",
|
|
|
|
"value": 80
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "none"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 6,
|
|
|
|
"x": 18,
|
2023-07-31 14:28:44 +00:00
|
|
|
"y": 40
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"id": 7,
|
|
|
|
"links": [],
|
|
|
|
"maxDataPoints": 100,
|
|
|
|
"options": {
|
|
|
|
"colorMode": "none",
|
|
|
|
"graphMode": "area",
|
|
|
|
"justifyMode": "auto",
|
|
|
|
"orientation": "horizontal",
|
|
|
|
"reduceOptions": {
|
|
|
|
"calcs": [
|
|
|
|
"mean"
|
|
|
|
],
|
|
|
|
"fields": "",
|
|
|
|
"values": false
|
|
|
|
},
|
|
|
|
"text": {},
|
|
|
|
"textMode": "auto"
|
|
|
|
},
|
2023-12-20 22:22:59 +00:00
|
|
|
"pluginVersion": "10.0.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
|
|
|
"exemplar": true,
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "count(rate(container_last_seen[5m]) * on(container_label_com_docker_swarm_node_id) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
|
|
|
|
"format": "time_series",
|
2023-05-11 13:23:35 +00:00
|
|
|
"interval": "",
|
2023-02-11 16:17:50 +00:00
|
|
|
"intervalFactor": 2,
|
2023-05-11 13:23:35 +00:00
|
|
|
"legendFormat": "",
|
2023-02-11 16:17:50 +00:00
|
|
|
"refId": "A",
|
|
|
|
"step": 20
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Total Containers",
|
|
|
|
"type": "stat"
|
|
|
|
},
|
|
|
|
{
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"color": {
|
|
|
|
"mode": "palette-classic"
|
|
|
|
},
|
|
|
|
"custom": {
|
|
|
|
"axisCenteredZero": false,
|
|
|
|
"axisColorMode": "text",
|
|
|
|
"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": "auto",
|
|
|
|
"spanNulls": false,
|
|
|
|
"stacking": {
|
|
|
|
"group": "A",
|
|
|
|
"mode": "none"
|
|
|
|
},
|
|
|
|
"thresholdsStyle": {
|
|
|
|
"mode": "off"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"mappings": [],
|
|
|
|
"thresholds": {
|
|
|
|
"mode": "absolute",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"color": "green"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"color": "red",
|
|
|
|
"value": 80
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"unit": "decbytes"
|
|
|
|
},
|
|
|
|
"overrides": []
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"gridPos": {
|
|
|
|
"h": 7,
|
|
|
|
"w": 24,
|
|
|
|
"x": 0,
|
2023-07-31 14:28:44 +00:00
|
|
|
"y": 47
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"id": 17,
|
|
|
|
"links": [],
|
|
|
|
"options": {
|
2023-07-31 14:28:44 +00:00
|
|
|
"legend": {
|
|
|
|
"calcs": [],
|
|
|
|
"displayMode": "list",
|
|
|
|
"placement": "bottom",
|
|
|
|
"showLegend": true
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"mode": "single",
|
|
|
|
"sort": "none"
|
|
|
|
}
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
2023-07-31 14:28:44 +00:00
|
|
|
"pluginVersion": "9.5.2",
|
2023-02-11 16:17:50 +00:00
|
|
|
"targets": [
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "sum(rate(container_network_receive_bytes_total[$interval]) * on(container_label_com_docker_swarm_node_id) group_left(node_name) node_meta{node_name=~\"${node_id}\"}) by (node_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"interval": "",
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "IN {{node_name}}",
|
|
|
|
"refId": "A",
|
|
|
|
"step": 2
|
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"expr": "- sum(rate(container_network_transmit_bytes_total[$interval]) * on(container_label_com_docker_swarm_node_id) group_left(node_name) node_meta{node_name=~\"${node_id}\"}) by (node_name)",
|
|
|
|
"format": "time_series",
|
|
|
|
"hide": false,
|
|
|
|
"intervalFactor": 2,
|
|
|
|
"legendFormat": "OUT {{node_name}}",
|
|
|
|
"metric": "",
|
|
|
|
"refId": "B",
|
|
|
|
"step": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Containers Network Traffic by Node",
|
2023-07-31 14:28:44 +00:00
|
|
|
"type": "timeseries"
|
2023-12-20 22:22:59 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "loki",
|
|
|
|
"uid": "P8E80F9AEF21F6940"
|
|
|
|
},
|
|
|
|
"gridPos": {
|
|
|
|
"h": 9,
|
|
|
|
"w": 24,
|
|
|
|
"x": 0,
|
|
|
|
"y": 54
|
|
|
|
},
|
|
|
|
"id": 30,
|
|
|
|
"options": {
|
|
|
|
"dedupStrategy": "none",
|
|
|
|
"enableLogDetails": true,
|
|
|
|
"prettifyLogMessage": false,
|
|
|
|
"showCommonLabels": false,
|
|
|
|
"showLabels": false,
|
|
|
|
"showTime": false,
|
|
|
|
"sortOrder": "Descending",
|
|
|
|
"wrapLogMessage": false
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "loki",
|
|
|
|
"uid": "P8E80F9AEF21F6940"
|
|
|
|
},
|
|
|
|
"editorMode": "code",
|
|
|
|
"expr": "{service_name=~\".+\"} | logfmt | __error__=`` | level=\"error\"",
|
|
|
|
"queryType": "range",
|
|
|
|
"refId": "A"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Error Logs",
|
|
|
|
"type": "logs"
|
2023-02-11 16:17:50 +00:00
|
|
|
}
|
|
|
|
],
|
2023-07-31 14:28:44 +00:00
|
|
|
"refresh": "",
|
|
|
|
"schemaVersion": 38,
|
2023-02-11 16:17:50 +00:00
|
|
|
"style": "dark",
|
|
|
|
"tags": [
|
|
|
|
"swarmprom",
|
|
|
|
"prometheus",
|
|
|
|
"node-exporter",
|
2023-07-31 14:28:44 +00:00
|
|
|
"cadvisor",
|
|
|
|
"menu"
|
2023-02-11 16:17:50 +00:00
|
|
|
],
|
|
|
|
"templating": {
|
|
|
|
"list": [
|
|
|
|
{
|
|
|
|
"allValue": ".+",
|
|
|
|
"current": {
|
2023-07-31 14:28:44 +00:00
|
|
|
"selected": false,
|
2023-02-11 16:17:50 +00:00
|
|
|
"text": "All",
|
|
|
|
"value": "$__all"
|
|
|
|
},
|
2023-05-11 13:23:35 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "PBFA97CFB590B2093"
|
|
|
|
},
|
2023-02-11 16:17:50 +00:00
|
|
|
"definition": "",
|
|
|
|
"hide": 0,
|
|
|
|
"includeAll": true,
|
|
|
|
"label": "Swarm Node",
|
|
|
|
"multi": false,
|
|
|
|
"name": "node_id",
|
|
|
|
"options": [],
|
|
|
|
"query": {
|
|
|
|
"query": "node_meta",
|
|
|
|
"refId": "Prometheus-node_id-Variable-Query"
|
|
|
|
},
|
|
|
|
"refresh": 1,
|
|
|
|
"regex": "/node_name=\"([^\"]+)\"/",
|
|
|
|
"skipUrlSync": false,
|
|
|
|
"sort": 0,
|
|
|
|
"type": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"auto": true,
|
|
|
|
"auto_count": 30,
|
|
|
|
"auto_min": "30s",
|
|
|
|
"current": {
|
|
|
|
"selected": false,
|
2023-07-31 14:28:44 +00:00
|
|
|
"text": "10m",
|
|
|
|
"value": "10m"
|
2023-02-11 16:17:50 +00:00
|
|
|
},
|
|
|
|
"hide": 0,
|
|
|
|
"label": "Interval",
|
|
|
|
"name": "interval",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "auto",
|
|
|
|
"value": "$__auto_interval_interval"
|
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"selected": false,
|
2023-02-11 16:17:50 +00:00
|
|
|
"text": "1m",
|
|
|
|
"value": "1m"
|
|
|
|
},
|
|
|
|
{
|
2023-07-31 14:28:44 +00:00
|
|
|
"selected": true,
|
2023-02-11 16:17:50 +00:00
|
|
|
"text": "10m",
|
|
|
|
"value": "10m"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "30m",
|
|
|
|
"value": "30m"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "1h",
|
|
|
|
"value": "1h"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "6h",
|
|
|
|
"value": "6h"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "12h",
|
|
|
|
"value": "12h"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "1d",
|
|
|
|
"value": "1d"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "7d",
|
|
|
|
"value": "7d"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "14d",
|
|
|
|
"value": "14d"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"selected": false,
|
|
|
|
"text": "30d",
|
|
|
|
"value": "30d"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
|
|
|
|
"queryValue": "",
|
|
|
|
"refresh": 2,
|
|
|
|
"skipUrlSync": false,
|
|
|
|
"type": "interval"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"time": {
|
2023-07-31 14:28:44 +00:00
|
|
|
"from": "now-2d",
|
2023-02-11 16:17:50 +00:00
|
|
|
"to": "now"
|
|
|
|
},
|
|
|
|
"timepicker": {
|
|
|
|
"refresh_intervals": [
|
|
|
|
"5s",
|
|
|
|
"10s",
|
|
|
|
"30s",
|
|
|
|
"1m",
|
|
|
|
"5m",
|
|
|
|
"15m",
|
|
|
|
"30m",
|
|
|
|
"1h",
|
|
|
|
"2h",
|
|
|
|
"1d"
|
|
|
|
],
|
|
|
|
"time_options": [
|
|
|
|
"5m",
|
|
|
|
"15m",
|
|
|
|
"1h",
|
|
|
|
"6h",
|
|
|
|
"12h",
|
|
|
|
"24h",
|
|
|
|
"2d",
|
|
|
|
"7d",
|
|
|
|
"30d"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"timezone": "",
|
|
|
|
"title": "Docker Swarm Nodes",
|
|
|
|
"uid": "BPlb-Sgik",
|
2023-12-20 22:22:59 +00:00
|
|
|
"version": 24,
|
2023-05-11 13:23:35 +00:00
|
|
|
"weekStart": ""
|
2023-12-20 22:22:59 +00:00
|
|
|
}
|