update grafana dashboards

This commit is contained in:
Philipp Rothmann 2023-07-31 16:28:44 +02:00
parent 961a17f1ad
commit 74498b70fe
4 changed files with 1871 additions and 745 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,10 @@
"list": [ "list": [
{ {
"builtIn": 1, "builtIn": 1,
"datasource": "-- Grafana --", "datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true, "enable": true,
"hide": true, "hide": true,
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
@ -14,15 +17,33 @@
}, },
"description": "Simple docker swarm monitoring with relation to individual stacks.", "description": "Simple docker swarm monitoring with relation to individual stacks.",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 7007, "gnetId": 7007,
"graphTooltip": 1, "graphTooltip": 1,
"id": 2, "id": 2,
"iteration": 1626744694222, "links": [
"links": [], {
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [
"menu"
],
"targetBlank": false,
"title": "dashboards",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [ "panels": [
{ {
"cacheTimeout": null, "datasource": {
"datasource": "Prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -64,7 +85,6 @@
"y": 0 "y": 0
}, },
"id": 10, "id": 10,
"interval": null,
"links": [], "links": [],
"maxDataPoints": 100, "maxDataPoints": 100,
"options": { "options": {
@ -82,13 +102,19 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.0.6", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"expr": "(time() - min(container_start_time_seconds{container_label_com_docker_stack_namespace=~\"$stack\"}))", "datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "(time() - min(container_start_time_seconds{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}))",
"format": "time_series", "format": "time_series",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -96,122 +122,119 @@
"type": "stat" "type": "stat"
}, },
{ {
"aliasColors": {}, "datasource": {
"bars": false, "type": "prometheus",
"dashLength": 10, "uid": "PBFA97CFB590B2093"
"dashes": false, },
"datasource": "Prometheus", "fieldConfig": {
"decimals": null, "defaults": {
"fill": 5, "color": {
"fillGradient": 0, "mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 1,
"axisSoftMin": 0,
"axisWidth": -4,
"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": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": { "gridPos": {
"h": 7, "h": 7,
"w": 20, "w": 20,
"x": 4, "x": 4,
"y": 0 "y": 0
}, },
"height": "270px",
"hiddenSeries": false,
"id": 1, "id": 1,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideEmpty": false,
"hideZero": true,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null as zero",
"options": { "options": {
"alertThreshold": true "legend": {
"calcs": [
"lastNotNull",
"mean"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Last *",
"sortDesc": true
}, },
"percentage": false, "tooltip": {
"pluginVersion": "8.0.6", "mode": "multi",
"pointradius": 5, "sort": "desc"
"points": false, }
"renderer": "flot", },
"seriesOverrides": [], "pluginVersion": "9.5.2",
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(rate(container_cpu_usage_seconds_total{container_label_com_docker_stack_namespace=~\"$stack\"}[$interval])) by (container_label_com_docker_swarm_service_name, container_label_com_docker_swarm_task_id)", "datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sort(\n sum(\n rate(\n container_cpu_usage_seconds_total{\n container_label_com_docker_stack_namespace=~\"$stack\", \n instance=~\"cadvisor.monitoring.$instance.*\"}[$interval]\n )\n ) \n by (container_label_com_docker_swarm_service_name)\n)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ container_label_com_docker_swarm_service_name }} - {{ container_label_com_docker_swarm_task_id }}", "legendFormat": "{{ container_label_com_docker_swarm_service_name }}",
"range": true,
"refId": "A", "refId": "A",
"step": 2 "step": 2
} }
], ],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "CPU Usage per Container", "title": "CPU Usage per Container",
"tooltip": { "type": "timeseries"
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "percentunit",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}, },
{ {
"format": "short", "datasource": {
"label": null, "type": "prometheus",
"logBase": 1, "uid": "PBFA97CFB590B2093"
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}, },
{
"cacheTimeout": null,
"datasource": "Prometheus",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mappings": [],
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
@ -225,7 +248,7 @@
} }
] ]
}, },
"unit": "none" "unit": "short"
}, },
"overrides": [] "overrides": []
}, },
@ -236,14 +259,13 @@
"y": 3 "y": 3
}, },
"id": 3, "id": 3,
"interval": null,
"links": [], "links": [],
"maxDataPoints": 100, "maxDataPoints": 100,
"options": { "options": {
"colorMode": "none", "colorMode": "value",
"graphMode": "none", "graphMode": "area",
"justifyMode": "auto", "justifyMode": "auto",
"orientation": "horizontal", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
"lastNotNull" "lastNotNull"
@ -251,15 +273,20 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.0.6", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"expr": "count(rate(container_last_seen{container_label_com_docker_stack_namespace=~\"$stack\"}[$interval]))", "datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "count(rate(container_last_seen{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval]))",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"range": true,
"refId": "B", "refId": "B",
"step": 4 "step": 4
} }
@ -268,337 +295,264 @@
"type": "stat" "type": "stat"
}, },
{ {
"aliasColors": {}, "datasource": {
"bars": false, "type": "prometheus",
"dashLength": 10, "uid": "PBFA97CFB590B2093"
"dashes": false, },
"datasource": "Prometheus", "fieldConfig": {
"fill": 3, "defaults": {
"fillGradient": 0, "color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 25,
"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": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": { "gridPos": {
"h": 7, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 7 "y": 7
}, },
"height": "270px",
"hiddenSeries": false,
"id": 5, "id": 5,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideZero": true,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [], "links": [],
"nullPointMode": "null as zero",
"options": { "options": {
"alertThreshold": true "legend": {
"calcs": [
"lastNotNull",
"mean",
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
}, },
"percentage": false, "tooltip": {
"pluginVersion": "8.0.6", "mode": "multi",
"pointradius": 5, "sort": "desc"
"points": false, }
"renderer": "flot", },
"seriesOverrides": [], "pluginVersion": "9.5.2",
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(container_memory_rss{container_label_com_docker_stack_namespace=~\"$stack\"}) by (container_label_com_docker_swarm_service_name, container_label_com_docker_swarm_task_id)", "datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(\n container_memory_rss{\n container_label_com_docker_stack_namespace=~\"$stack\", \n instance=~\"cadvisor.monitoring.$instance.*\"}\n ) \nby (container_label_com_docker_swarm_service_name)",
"format": "time_series", "format": "time_series",
"hide": false, "hide": false,
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ container_label_com_docker_swarm_service_name }} - {{ container_label_com_docker_swarm_task_id }}", "legendFormat": "{{ container_label_com_docker_swarm_service_name }}",
"metric": "container_memory_rss", "metric": "container_memory_rss",
"range": true,
"refId": "A", "refId": "A",
"step": 2 "step": 2
} }
], ],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Memory Usage per Container", "title": "Memory Usage per Container",
"tooltip": { "type": "timeseries"
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}, },
{ {
"format": "short", "datasource": {
"label": null, "type": "prometheus",
"logBase": 1, "uid": "PBFA97CFB590B2093"
"max": null, },
"min": null, "fieldConfig": {
"show": true "defaults": {
} "color": {
], "mode": "palette-classic"
"yaxis": { },
"align": false, "custom": {
"alignLevel": null "axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 25,
"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": "normal"
},
"thresholdsStyle": {
"mode": "off"
} }
}, },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ {
"aliasColors": {}, "color": "green",
"bars": false, "value": null
"dashLength": 10, },
"dashes": false, {
"datasource": "Prometheus", "color": "red",
"fill": 1, "value": 80
"fillGradient": 0, }
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": { "gridPos": {
"h": 7, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 14 "y": 14
}, },
"height": "270px",
"hiddenSeries": false,
"id": 6, "id": 6,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideEmpty": false,
"hideZero": true,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [], "links": [],
"nullPointMode": "null as zero",
"options": { "options": {
"alertThreshold": true "legend": {
"calcs": [
"lastNotNull",
"mean",
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
}, },
"percentage": false, "tooltip": {
"pluginVersion": "8.0.6", "mode": "multi",
"pointradius": 5, "sort": "desc"
"points": false, }
"renderer": "flot", },
"seriesOverrides": [], "pluginVersion": "9.5.2",
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(rate(container_network_receive_bytes_total{container_label_com_docker_stack_namespace=~\"$stack\"}[$interval])) by (container_label_com_docker_swarm_service_name, container_label_com_docker_swarm_task_id)", "datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(rate(container_network_receive_bytes_total{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval])) by (container_label_com_docker_swarm_service_name)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ container_label_com_docker_swarm_service_name }} - {{ container_label_com_docker_swarm_task_id }}", "legendFormat": "RX: {{ container_label_com_docker_swarm_service_name }}",
"range": true,
"refId": "A", "refId": "A",
"step": 2 "step": 2
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(rate(container_network_transmit_bytes_total{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval])) by (container_label_com_docker_swarm_service_name) * -1",
"hide": false,
"legendFormat": "TX: {{container_label_com_docker_swarm_service_name}}",
"range": true,
"refId": "B"
} }
], ],
"thresholds": [], "title": "Network Traffic per Container",
"timeFrom": null, "transformations": [],
"timeRegions": [], "type": "timeseries"
"timeShift": null,
"title": "Incoming Network Traffic per Container",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "Bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
} }
], ],
"yaxis": { "refresh": "",
"align": false, "schemaVersion": 38,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 21
},
"height": "270px",
"hiddenSeries": false,
"id": 8,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideEmpty": false,
"hideZero": true,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.0.6",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(container_network_transmit_bytes_total{container_label_com_docker_stack_namespace=~\"$stack\"}[$interval])) by (container_label_com_docker_swarm_service_name, container_label_com_docker_swarm_task_id)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{ container_label_com_docker_swarm_service_name }} - {{ container_label_com_docker_swarm_task_id }}",
"refId": "A",
"step": 2
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Outgoing Network Traffic per Container",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "Bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"schemaVersion": 30,
"style": "dark", "style": "dark",
"tags": [ "tags": [
"prometheus", "prometheus",
"cAdvisor", "cAdvisor",
"node-exporter", "node-exporter",
"alertmanager" "alertmanager",
"menu"
], ],
"templating": { "templating": {
"list": [ "list": [
{ {
"allValue": null,
"current": { "current": {
"selected": false, "selected": true,
"text": "pretix", "text": [
"value": "pretix" "All"
],
"value": [
"$__all"
]
}, },
"datasource": "Prometheus", "datasource": {
"definition": "", "type": "prometheus",
"description": null, "uid": "PBFA97CFB590B2093"
"error": null, },
"definition": "label_values(container_label_com_docker_stack_namespace)",
"hide": 0, "hide": 0,
"includeAll": false, "includeAll": true,
"label": "Stack", "label": "Stack",
"multi": false, "multi": true,
"name": "stack", "name": "stack",
"options": [], "options": [],
"query": { "query": {
"query": "query_result(count(container_last_seen{container_label_com_docker_stack_namespace =~\".+\"}) by (container_label_com_docker_stack_namespace))", "query": "label_values(container_label_com_docker_stack_namespace)",
"refId": "Prometheus-stack-Variable-Query" "refId": "PrometheusVariableQueryEditor-VariableQuery"
}, },
"refresh": 1, "refresh": 1,
"regex": "/container_label_com_docker_stack_namespace=\"(.*)\"/", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
"sort": 2, "sort": 2,
"tagValuesQuery": "", "tagValuesQuery": "",
@ -612,17 +566,15 @@
"auto_min": "50s", "auto_min": "50s",
"current": { "current": {
"selected": false, "selected": false,
"text": "auto", "text": "5m",
"value": "$__auto_interval_interval" "value": "5m"
}, },
"description": null,
"error": null,
"hide": 0, "hide": 0,
"label": "Interval", "label": "Interval",
"name": "interval", "name": "interval",
"options": [ "options": [
{ {
"selected": true, "selected": false,
"text": "auto", "text": "auto",
"value": "$__auto_interval_interval" "value": "$__auto_interval_interval"
}, },
@ -647,7 +599,7 @@
"value": "3m" "value": "3m"
}, },
{ {
"selected": false, "selected": true,
"text": "5m", "text": "5m",
"value": "5m" "value": "5m"
}, },
@ -703,14 +655,46 @@
} }
], ],
"query": "30s,1m,2m,3m,5m,7m,10m,30m,1h,6h,12h,1d,7d,14d,30d", "query": "30s,1m,2m,3m,5m,7m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
"queryValue": "",
"refresh": 2, "refresh": 2,
"skipUrlSync": false, "skipUrlSync": false,
"type": "interval" "type": "interval"
},
{
"current": {
"selected": true,
"text": [
"local-it.cloud"
],
"value": [
"local-it.cloud"
]
},
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"definition": "label_values(instance)",
"hide": 0,
"includeAll": true,
"label": "instance",
"multi": true,
"name": "instance",
"options": [],
"query": {
"query": "label_values(instance)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "/.*cadvisor.monitoring.(?<instance>.*):80/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
} }
] ]
}, },
"time": { "time": {
"from": "now-30m", "from": "now-2d",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
@ -738,8 +722,9 @@
"30d" "30d"
] ]
}, },
"timezone": "browser", "timezone": "Europe/Berlin",
"title": "Swarm Stack Monitoring", "title": "Swarm Stack Monitoring",
"uid": "KdVoGQm7z", "uid": "KdVoGQm7z",
"version": 1 "version": 21,
"weekStart": ""
} }

View File

@ -3,7 +3,10 @@
"list": [ "list": [
{ {
"builtIn": 1, "builtIn": 1,
"datasource": "-- Grafana --", "datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true, "enable": true,
"hide": true, "hide": true,
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
@ -23,9 +26,23 @@
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"gnetId": 7461, "gnetId": 7461,
"graphTooltip": 0, "graphTooltip": 0,
"id": 3, "id": 1,
"iteration": 1683802396909, "links": [
"links": [], {
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [
"menu"
],
"targetBlank": false,
"title": "Dashboards",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
@ -93,9 +110,13 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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))", "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", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -168,9 +189,13 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "count(node_meta * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})", "expr": "count(node_meta * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -243,9 +268,13 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "count(node_cpu_seconds_total{mode=\"idle\"} * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})", "expr": "count(node_cpu_seconds_total{mode=\"idle\"} * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -322,9 +351,13 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"text": {} "text": {}
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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\"}) ", "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\"}) ",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -378,7 +411,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -388,6 +421,10 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "node_load5 * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}", "expr": "node_load5 * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}",
"format": "time_series", "format": "time_series",
"interval": "", "interval": "",
@ -487,9 +524,13 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(node_memory_MemTotal_bytes * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})", "expr": "sum(node_memory_MemTotal_bytes * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -564,13 +605,19 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"text": {} "text": {}
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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\"})", "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\"})",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A", "refId": "A",
"step": 20 "step": 20
} }
@ -638,9 +685,13 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"exemplar": true, "exemplar": true,
"expr": "sum(node_filesystem_size_bytes{fstype=\"ext4\",mountpoint=~\"(/$)|(/media.*)\"} * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})", "expr": "sum(node_filesystem_size_bytes{fstype=\"ext4\",mountpoint=~\"(/$)|(/media.*)\"} * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"})",
"format": "time_series", "format": "time_series",
@ -661,6 +712,9 @@
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [ "mappings": [
{ {
"options": { "options": {
@ -697,14 +751,18 @@
}, },
"gridPos": { "gridPos": {
"h": 4, "h": 4,
"w": 3, "w": 4,
"x": 8, "x": 0,
"y": 4 "y": 8
}, },
"id": 10, "id": 10,
"links": [], "links": [],
"maxDataPoints": 100, "maxDataPoints": 100,
"maxPerRow": 12,
"options": { "options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
@ -713,13 +771,17 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showThresholdLabels": false, "textMode": "auto"
"showThresholdMarkers": true,
"text": {}
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"repeat": "node_id",
"repeatDirection": "h",
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"exemplar": true, "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\"})", "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", "format": "time_series",
@ -730,8 +792,8 @@
"step": 20 "step": 20
} }
], ],
"title": "Available Disk Space", "title": "Available Disk Space $node_id",
"type": "gauge" "type": "stat"
}, },
{ {
"aliasColors": {}, "aliasColors": {},
@ -749,7 +811,7 @@
"h": 7, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 8 "y": 12
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 14, "id": 14,
@ -774,7 +836,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -784,6 +846,10 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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))", "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", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -824,99 +890,173 @@
} }
}, },
{ {
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"fill": 1, "fieldConfig": {
"fillGradient": 0, "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"
}
}
]
}
]
},
"gridPos": { "gridPos": {
"h": 7, "h": 7,
"w": 24, "w": 4,
"x": 0, "x": 0,
"y": 15 "y": 19
}, },
"hiddenSeries": false,
"id": 15, "id": 15,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null", "maxPerRow": 12,
"options": { "options": {
"alertThreshold": true "legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "list",
"placement": "right",
"showLegend": false
}, },
"percentage": false, "tooltip": {
"pluginVersion": "8.4.4", "mode": "multi",
"pointradius": 5, "sort": "none"
"points": false, }
"renderer": "flot", },
"seriesOverrides": [], "pluginVersion": "9.5.2",
"spaceLength": 10, "repeat": "node_id",
"stack": true, "repeatDirection": "h",
"steppedLine": false,
"targets": [ "targets": [
{ {
"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)",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "Free {{node_name}}",
"range": true,
"refId": "free",
"step": 2
},
{
"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)",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "cache,buffer,slab {{node_name}}",
"range": true,
"refId": "cache,buffer,slab",
"step": 2
},
{
"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)", "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", "format": "time_series",
"hide": false,
"interval": "", "interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "Used {{node_name}}", "legendFormat": "Used {{node_name}}",
"refId": "A", "range": true,
"refId": "Used",
"step": 2 "step": 2
}, },
{ {
"expr": "sum(node_memory_Cached * on(instance) group_left(node_name) node_meta{node_id=~\"$node_id\"}) by (node_name)", "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", "format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "Cached {{node_name}}", "legendFormat": "Total {{node_name}}",
"refId": "B", "range": true,
"refId": "total",
"step": 2 "step": 2
} }
], ],
"thresholds": [], "title": "Memory $node_id",
"timeRegions": [], "type": "timeseries"
"title": "Memory usage by Node",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
}, },
{ {
"aliasColors": {}, "aliasColors": {},
@ -934,7 +1074,7 @@
"h": 7, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 22 "y": 26
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 16, "id": 16,
@ -957,7 +1097,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -967,6 +1107,10 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(irate(node_disk_read_bytes_total[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)", "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", "format": "time_series",
"interval": "", "interval": "",
@ -976,6 +1120,10 @@
"step": 2 "step": 2
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(irate(node_disk_written_bytes_total[$interval]) * on(instance) group_left(node_name) node_meta{node_id=~\"$node_id\"}) by (node_name)", "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", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -1030,7 +1178,7 @@
"h": 7, "h": 7,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 29 "y": 33
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 18, "id": 18,
@ -1053,7 +1201,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1063,6 +1211,10 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(irate(node_disk_reads_completed_total[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)", "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", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -1071,6 +1223,10 @@
"step": 2 "step": 2
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "sum(irate(node_disk_writes_completed_total[$interval]) * on(instance) group_left(node_name) node_meta{node_name=~\"$node_id\"}) by (node_name)", "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", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -1125,7 +1281,7 @@
"h": 7, "h": 7,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 29 "y": 33
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 19, "id": 19,
@ -1150,7 +1306,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1160,6 +1316,10 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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))", "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", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -1184,11 +1344,13 @@
}, },
"yaxes": [ "yaxes": [
{ {
"$$hashKey": "object:143",
"format": "percent", "format": "percent",
"logBase": 1, "logBase": 1,
"show": true "show": true
}, },
{ {
"$$hashKey": "object:144",
"format": "short", "format": "short",
"logBase": 1, "logBase": 1,
"show": true "show": true
@ -1214,7 +1376,7 @@
"h": 7, "h": 7,
"w": 18, "w": 18,
"x": 0, "x": 0,
"y": 36 "y": 40
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 12, "id": 12,
@ -1241,7 +1403,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1251,6 +1413,10 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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)", "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", "format": "time_series",
"hide": false, "hide": false,
@ -1291,6 +1457,10 @@
} }
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1313,8 +1483,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -1330,7 +1499,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 18, "x": 18,
"y": 36 "y": 40
}, },
"id": 7, "id": 7,
"links": [], "links": [],
@ -1350,7 +1519,7 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -1371,53 +1540,89 @@
"type": "stat" "type": "stat"
}, },
{ {
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"fill": 1, "fieldConfig": {
"fillGradient": 0, "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": []
},
"gridPos": { "gridPos": {
"h": 7, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 43 "y": 47
}, },
"hiddenSeries": false,
"id": 17, "id": 17,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null",
"options": { "options": {
"alertThreshold": true "legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
}, },
"percentage": false, "tooltip": {
"pluginVersion": "8.4.4", "mode": "single",
"pointradius": 5, "sort": "none"
"points": false, }
"renderer": "flot", },
"seriesOverrides": [], "pluginVersion": "9.5.2",
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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)", "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", "format": "time_series",
"interval": "", "interval": "",
@ -1427,6 +1632,10 @@
"step": 2 "step": 2
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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)", "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", "format": "time_series",
"hide": false, "hide": false,
@ -1437,111 +1646,26 @@
"step": 2 "step": 2
} }
], ],
"thresholds": [],
"timeRegions": [],
"title": "Containers Network Traffic by Node", "title": "Containers Network Traffic by Node",
"tooltip": { "type": "timeseries"
"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": { "refresh": "",
"align": false "schemaVersion": 38,
}
},
{
"columns": [],
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 50
},
"hideTimeOverride": true,
"id": 20,
"links": [],
"scroll": true,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "Time",
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"alias": "",
"align": "auto",
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"expr": "sum(node_meta) by (node_id, node_name, instance)",
"format": "table",
"intervalFactor": 2,
"refId": "A",
"step": 2
}
],
"timeFrom": "1s",
"title": "Cluster members",
"transform": "table",
"type": "table-old"
}
],
"refresh": "5s",
"schemaVersion": 35,
"style": "dark", "style": "dark",
"tags": [ "tags": [
"swarmprom", "swarmprom",
"prometheus", "prometheus",
"node-exporter", "node-exporter",
"cadvisor" "cadvisor",
"menu"
], ],
"templating": { "templating": {
"list": [ "list": [
{ {
"allValue": ".+", "allValue": ".+",
"current": { "current": {
"selected": true, "selected": false,
"text": "All", "text": "All",
"value": "$__all" "value": "$__all"
}, },
@ -1572,8 +1696,8 @@
"auto_min": "30s", "auto_min": "30s",
"current": { "current": {
"selected": false, "selected": false,
"text": "1m", "text": "10m",
"value": "1m" "value": "10m"
}, },
"hide": 0, "hide": 0,
"label": "Interval", "label": "Interval",
@ -1585,12 +1709,12 @@
"value": "$__auto_interval_interval" "value": "$__auto_interval_interval"
}, },
{ {
"selected": true, "selected": false,
"text": "1m", "text": "1m",
"value": "1m" "value": "1m"
}, },
{ {
"selected": false, "selected": true,
"text": "10m", "text": "10m",
"value": "10m" "value": "10m"
}, },
@ -1644,7 +1768,7 @@
] ]
}, },
"time": { "time": {
"from": "now-1h", "from": "now-2d",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
@ -1675,6 +1799,6 @@
"timezone": "", "timezone": "",
"title": "Docker Swarm Nodes", "title": "Docker Swarm Nodes",
"uid": "BPlb-Sgik", "uid": "BPlb-Sgik",
"version": 28, "version": 19,
"weekStart": "" "weekStart": ""
} }

View File

@ -3,7 +3,10 @@
"list": [ "list": [
{ {
"builtIn": 1, "builtIn": 1,
"datasource": "-- Grafana --", "datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true, "enable": true,
"hide": true, "hide": true,
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
@ -18,17 +21,35 @@
} }
] ]
}, },
"description": "Simple dashboard for Traefik 2", "description": "Dashboards for Traefik Reverse Proxy",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"gnetId": 11462, "gnetId": 11462,
"graphTooltip": 0, "graphTooltip": 0,
"id": 3, "id": 3,
"iteration": 1684839198931, "links": [
"links": [], {
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [
"menu"
],
"targetBlank": false,
"title": "dashboards",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"decimals": 0, "decimals": 0,
@ -87,7 +108,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -108,6 +129,10 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"decimals": 0, "decimals": 0,
@ -167,7 +192,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -185,6 +210,10 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"decimals": 0, "decimals": 0,
@ -243,7 +272,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -265,6 +294,10 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -324,7 +357,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -352,6 +385,10 @@
"label": "Others", "label": "Others",
"threshold": 0 "threshold": 0
}, },
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "", "description": "",
"fontSize": "80%", "fontSize": "80%",
"format": "short", "format": "short",
@ -397,6 +434,10 @@
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"decimals": 0, "decimals": 0,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -433,7 +474,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -493,6 +534,10 @@
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -530,7 +575,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -587,6 +632,10 @@
} }
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"mappings": [ "mappings": [
@ -652,7 +701,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -676,6 +725,10 @@
"bars": true, "bars": true,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [] "links": []
@ -712,7 +765,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -726,12 +779,14 @@
"type": "prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "sum(delta(traefik_service_requests_total{instance=\"$instance\"}[$interval]))", "expr": "sum(delta(traefik_service_requests_total{instance=\"${instance:raw}\"}[$interval]))",
"format": "time_series", "format": "time_series",
"interval": "", "interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "Total requests", "legendFormat": "Total requests",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -769,6 +824,10 @@
} }
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [], "links": [],
@ -812,7 +871,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.4.4", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -832,6 +891,10 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -839,6 +902,8 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
@ -899,8 +964,11 @@
"lastNotNull", "lastNotNull",
"max" "max"
], ],
"displayMode": "list", "displayMode": "table",
"placement": "right" "placement": "right",
"showLegend": true,
"sortBy": "Last *",
"sortDesc": true
}, },
"tooltip": { "tooltip": {
"mode": "single", "mode": "single",
@ -914,12 +982,14 @@
"type": "prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "rate(traefik_service_request_duration_seconds_sum{ instance=\"$instance\" }[5m])", "expr": "sum(rate(traefik_service_request_duration_seconds_sum{ instance=\"$instance\" }[5m])) by(service)",
"format": "time_series", "format": "time_series",
"interval": "", "interval": "",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{ service }}", "legendFormat": "{{ service }}",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -931,6 +1001,10 @@
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [] "links": []
@ -964,7 +1038,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1023,6 +1097,10 @@
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"decimals": 0, "decimals": 0,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1061,7 +1139,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1121,6 +1199,10 @@
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [] "links": []
@ -1158,7 +1240,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1217,6 +1299,10 @@
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [] "links": []
@ -1254,7 +1340,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1313,6 +1399,10 @@
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"decimals": 0, "decimals": 0,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1349,7 +1439,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "8.4.4", "pluginVersion": "9.5.2",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -1413,13 +1503,14 @@
} }
], ],
"refresh": "", "refresh": "",
"schemaVersion": 35, "schemaVersion": 38,
"style": "dark", "style": "dark",
"tags": [ "tags": [
"traefik", "traefik",
"load-balancer", "load-balancer",
"docker", "docker",
"prometheus" "prometheus",
"menu"
], ],
"templating": { "templating": {
"list": [ "list": [
@ -1455,7 +1546,7 @@
}, },
{ {
"current": { "current": {
"selected": false, "selected": true,
"text": [ "text": [
"All" "All"
], ],
@ -1492,7 +1583,7 @@
"auto_count": 30, "auto_count": 30,
"auto_min": "10s", "auto_min": "10s",
"current": { "current": {
"selected": true, "selected": false,
"text": "5m", "text": "5m",
"value": "5m" "value": "5m"
}, },
@ -1562,16 +1653,16 @@
} }
], ],
"query": "1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", "query": "1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
"queryValue": "5m", "queryValue": "",
"refresh": 2, "refresh": 2,
"skipUrlSync": false, "skipUrlSync": false,
"type": "interval" "type": "interval"
}, },
{ {
"current": { "current": {
"selected": true, "selected": false,
"text": "demo.local-it.cloud:8082", "text": "fe.local-it.cloud:8082",
"value": "demo.local-it.cloud:8082" "value": "fe.local-it.cloud:8082"
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -1586,12 +1677,12 @@
"options": [], "options": [],
"query": { "query": {
"query": "label_values(instance)", "query": "label_values(instance)",
"refId": "StandardVariableQuery" "refId": "PrometheusVariableQueryEditor-VariableQuery"
}, },
"refresh": 1, "refresh": 1,
"regex": ".*8082.*", "regex": ".*8082",
"skipUrlSync": false, "skipUrlSync": false,
"sort": 0, "sort": 1,
"tagValuesQuery": "", "tagValuesQuery": "",
"tagsQuery": "", "tagsQuery": "",
"type": "query", "type": "query",
@ -1600,7 +1691,7 @@
] ]
}, },
"time": { "time": {
"from": "now-15m", "from": "now-2d",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
@ -1629,8 +1720,8 @@
] ]
}, },
"timezone": "", "timezone": "",
"title": "Traefik 2", "title": "Traefik Reverse Proxy",
"uid": "3ipsWfViz", "uid": "3ipsWfViz",
"version": 5, "version": 9,
"weekStart": "" "weekStart": ""
} }