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" ,
"type" : "dashboard"
}
]
} ,
"description" : "Simple docker swarm monitoring with relation to individual stacks." ,
"editable" : true ,
2023-07-31 14:28:44 +00:00
"fiscalYearStartMonth" : 0 ,
2023-02-11 16:17:50 +00:00
"gnetId" : 7007 ,
"graphTooltip" : 1 ,
"id" : 2 ,
2023-07-31 14:28:44 +00:00
"links" : [
{
"asDropdown" : false ,
"icon" : "external link" ,
"includeVars" : false ,
"keepTime" : false ,
"tags" : [
"menu"
] ,
"targetBlank" : false ,
"title" : "dashboards" ,
"tooltip" : "" ,
"type" : "dashboards" ,
"url" : ""
}
] ,
"liveNow" : false ,
2023-02-11 16:17:50 +00:00
"panels" : [
{
2023-07-31 14:28:44 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
2023-02-11 16:17:50 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"decimals" : 1 ,
"mappings" : [
{
"options" : {
"match" : "null" ,
"result" : {
"text" : "N/A"
}
} ,
"type" : "special"
}
] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
} ,
"unit" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 3 ,
"w" : 4 ,
"x" : 0 ,
"y" : 0
} ,
"id" : 10 ,
"links" : [ ] ,
"maxDataPoints" : 100 ,
"options" : {
"colorMode" : "none" ,
"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"
} ,
"editorMode" : "code" ,
"expr" : "(time() - min(container_start_time_seconds{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}))" ,
2023-02-11 16:17:50 +00:00
"format" : "time_series" ,
"intervalFactor" : 1 ,
"legendFormat" : "" ,
2023-07-31 14:28:44 +00:00
"range" : true ,
2023-02-11 16:17:50 +00:00
"refId" : "A"
}
] ,
"title" : "Stack Uptime" ,
"type" : "stat"
} ,
{
2023-07-31 14:28:44 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"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" : [ ]
} ,
2023-02-11 16:17:50 +00:00
"gridPos" : {
"h" : 7 ,
"w" : 20 ,
"x" : 4 ,
"y" : 0
} ,
"id" : 1 ,
"links" : [ ] ,
"options" : {
2023-07-31 14:28:44 +00:00
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean"
] ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
2023-12-20 22:22:59 +00:00
"sortBy" : "Mean" ,
"sortDesc" : true
} ,
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
} ,
"pluginVersion" : "9.5.2" ,
"targets" : [
{
"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" ,
"intervalFactor" : 2 ,
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
"range" : true ,
"refId" : "A" ,
"step" : 2
}
] ,
"title" : "CPU Usage per Container" ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"fieldConfig" : {
"defaults" : {
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 4 ,
"w" : 4 ,
"x" : 0 ,
"y" : 3
} ,
"id" : 3 ,
"links" : [ ] ,
"maxDataPoints" : 100 ,
"options" : {
"colorMode" : "value" ,
"graphMode" : "area" ,
"justifyMode" : "auto" ,
"orientation" : "auto" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"textMode" : "auto"
} ,
"pluginVersion" : "10.0.2" ,
"targets" : [
{
"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" ,
"intervalFactor" : 2 ,
"range" : true ,
"refId" : "B" ,
"step" : 4
}
] ,
"title" : "Containers" ,
"type" : "stat"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"fieldConfig" : {
"defaults" : {
"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" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
"y" : 7
} ,
"id" : 5 ,
"links" : [ ] ,
"options" : {
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean" ,
"max"
] ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"sortBy" : "Last *" ,
"sortDesc" : true
} ,
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
} ,
"pluginVersion" : "9.5.2" ,
"targets" : [
{
"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" ,
"hide" : false ,
"intervalFactor" : 2 ,
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
"metric" : "container_memory_rss" ,
"range" : true ,
"refId" : "A" ,
"step" : 2
}
] ,
"title" : "Memory Usage per Container" ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"fieldConfig" : {
"defaults" : {
"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" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
"y" : 14
} ,
"id" : 6 ,
"links" : [ ] ,
"options" : {
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean" ,
"max" ,
"sum"
] ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"sortBy" : "Total" ,
"sortDesc" : true
} ,
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
} ,
"pluginVersion" : "9.5.2" ,
"targets" : [
{
"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" ,
"intervalFactor" : 2 ,
"legendFormat" : "RX: {{ container_label_com_docker_swarm_service_name }}" ,
"range" : true ,
"refId" : "A" ,
"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"
}
] ,
"title" : "Network Traffic per Container" ,
"transformations" : [ ] ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"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" : [
{
"__systemRef" : "hideSeriesFrom" ,
"matcher" : {
"id" : "byNames" ,
"options" : {
"mode" : "exclude" ,
"names" : [
"Value"
] ,
"prefix" : "All except:" ,
"readOnly" : true
}
} ,
"properties" : [
{
"id" : "custom.hideFrom" ,
"value" : {
"legend" : false ,
"tooltip" : false ,
"viz" : true
}
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
"y" : 21
} ,
"id" : 16 ,
"links" : [ ] ,
"options" : {
"legend" : {
"calcs" : [
"lastNotNull"
] ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
2023-07-31 14:28:44 +00:00
"sortBy" : "Last *" ,
"sortDesc" : true
} ,
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
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"
} ,
"editorMode" : "code" ,
2023-12-20 22:22:59 +00:00
"expr" : "sum(container_fs_usage_bytes{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}) by (container_label_com_docker_swarm_service_name)" ,
"format" : "time_series" ,
"hide" : false ,
"intervalFactor" : 2 ,
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
"range" : true ,
"refId" : "A" ,
"step" : 2
}
] ,
"title" : "FS Usage per Container" ,
"transformations" : [ ] ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"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" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
"y" : 28
} ,
"id" : 11 ,
"links" : [ ] ,
"options" : {
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean" ,
"max" ,
"sum"
] ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"sortBy" : "Total" ,
"sortDesc" : true
} ,
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
} ,
"pluginVersion" : "9.5.2" ,
"targets" : [
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"editorMode" : "code" ,
"expr" : "sum(rate(container_fs_usage_bytes{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval])) by (container_label_com_docker_swarm_service_name)" ,
"format" : "time_series" ,
"hide" : false ,
"intervalFactor" : 2 ,
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
"range" : true ,
"refId" : "A" ,
"step" : 2
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"editorMode" : "builder" ,
"expr" : "sum by(container_label_com_docker_swarm_service_name) (container_fs_usage_bytes)" ,
"format" : "time_series" ,
"hide" : true ,
"intervalFactor" : 2 ,
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
"range" : true ,
"refId" : "B" ,
"step" : 2
}
] ,
"title" : "FS Usage Rate per Container" ,
"transformations" : [ ] ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"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" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
"y" : 35
} ,
"id" : 15 ,
"links" : [ ] ,
"options" : {
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean" ,
"max" ,
"sum"
] ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"sortBy" : "Total" ,
"sortDesc" : true
} ,
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
} ,
"pluginVersion" : "9.5.2" ,
"targets" : [
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"editorMode" : "code" ,
"expr" : "sum(rate(container_fs_io_time_seconds_total{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval])) by (container_label_com_docker_swarm_service_name)" ,
"format" : "time_series" ,
"hide" : false ,
"intervalFactor" : 2 ,
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
"range" : true ,
"refId" : "A" ,
"step" : 2
}
] ,
"title" : "FS IO Time per Container" ,
"transformations" : [ ] ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"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" : "none"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
"y" : 42
} ,
"id" : 14 ,
"links" : [ ] ,
"options" : {
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean" ,
"max" ,
"sum"
] ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"sortBy" : "Total" ,
"sortDesc" : true
} ,
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
} ,
"pluginVersion" : "9.5.2" ,
"targets" : [
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"editorMode" : "code" ,
"expr" : "container_fs_io_current{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}" ,
2023-02-11 16:17:50 +00:00
"format" : "time_series" ,
2023-12-20 22:22:59 +00:00
"hide" : false ,
2023-02-11 16:17:50 +00:00
"intervalFactor" : 2 ,
2023-07-31 14:28:44 +00:00
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
"range" : true ,
2023-02-11 16:17:50 +00:00
"refId" : "A" ,
"step" : 2
}
] ,
2023-12-20 22:22:59 +00:00
"title" : "FS Current IO per Container" ,
"transformations" : [ ] ,
2023-07-31 14:28:44 +00:00
"type" : "timeseries"
2023-02-11 16:17:50 +00:00
} ,
{
2023-07-31 14:28:44 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
2023-12-20 22:22:59 +00:00
"description" : "" ,
2023-02-11 16:17:50 +00:00
"fieldConfig" : {
"defaults" : {
2023-12-20 22:22:59 +00:00
"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"
}
} ,
2023-07-31 14:28:44 +00:00
"mappings" : [ ] ,
2023-02-11 16:17:50 +00:00
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
} ,
2023-12-20 22:22:59 +00:00
"unit" : "decbytes"
2023-02-11 16:17:50 +00:00
} ,
"overrides" : [ ]
} ,
"gridPos" : {
2023-12-20 22:22:59 +00:00
"h" : 7 ,
"w" : 24 ,
2023-02-11 16:17:50 +00:00
"x" : 0 ,
2023-12-20 22:22:59 +00:00
"y" : 49
2023-02-11 16:17:50 +00:00
} ,
2023-12-20 22:22:59 +00:00
"id" : 17 ,
2023-02-11 16:17:50 +00:00
"links" : [ ] ,
"options" : {
2023-12-20 22:22:59 +00:00
"legend" : {
2023-02-11 16:17:50 +00:00
"calcs" : [
2023-12-20 22:22:59 +00:00
"lastNotNull" ,
"mean" ,
"max" ,
"sum"
2023-02-11 16:17:50 +00:00
] ,
2023-12-20 22:22:59 +00:00
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"sortBy" : "Total" ,
"sortDesc" : true
2023-02-11 16:17:50 +00:00
} ,
2023-12-20 22:22:59 +00:00
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
2023-02-11 16:17:50 +00:00
} ,
2023-12-20 22:22:59 +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"
} ,
"editorMode" : "code" ,
2023-12-20 22:22:59 +00:00
"expr" : "sum(rate(container_fs_reads_bytes_total{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval])) by (container_label_com_docker_swarm_service_name)" ,
2023-02-11 16:17:50 +00:00
"format" : "time_series" ,
"intervalFactor" : 2 ,
2023-12-20 22:22:59 +00:00
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
2023-07-31 14:28:44 +00:00
"range" : true ,
2023-12-20 22:22:59 +00:00
"refId" : "A" ,
"step" : 2
2023-02-11 16:17:50 +00:00
}
] ,
2023-12-20 22:22:59 +00:00
"title" : "FS Reads per Container" ,
"transformations" : [ ] ,
"type" : "timeseries"
2023-02-11 16:17:50 +00:00
} ,
{
2023-07-31 14:28:44 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
2023-12-20 22:22:59 +00:00
"description" : "" ,
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" : 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
}
]
} ,
2023-12-20 22:22:59 +00:00
"unit" : "s"
2023-07-31 14:28:44 +00:00
} ,
"overrides" : [ ]
} ,
2023-02-11 16:17:50 +00:00
"gridPos" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
2023-12-20 22:22:59 +00:00
"y" : 56
2023-02-11 16:17:50 +00:00
} ,
2023-12-20 22:22:59 +00:00
"id" : 19 ,
2023-02-11 16:17:50 +00:00
"links" : [ ] ,
"options" : {
2023-07-31 14:28:44 +00:00
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean" ,
2023-12-20 22:22:59 +00:00
"max" ,
"sum"
2023-07-31 14:28:44 +00:00
] ,
"displayMode" : "table" ,
"placement" : "right" ,
2023-12-20 22:22:59 +00:00
"showLegend" : true ,
"sortBy" : "Total" ,
"sortDesc" : true
2023-07-31 14:28:44 +00:00
} ,
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
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"
} ,
"editorMode" : "code" ,
2023-12-20 22:22:59 +00:00
"expr" : "sum(rate(container_fs_read_seconds_total{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval])) by (container_label_com_docker_swarm_service_name)" ,
2023-02-11 16:17:50 +00:00
"format" : "time_series" ,
"intervalFactor" : 2 ,
2023-07-31 14:28:44 +00:00
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
"range" : true ,
2023-02-11 16:17:50 +00:00
"refId" : "A" ,
"step" : 2
}
] ,
2023-12-20 22:22:59 +00:00
"title" : "FS Read-Seconds per Container" ,
"transformations" : [ ] ,
2023-07-31 14:28:44 +00:00
"type" : "timeseries"
2023-02-11 16:17:50 +00:00
} ,
{
2023-07-31 14:28:44 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
2023-12-20 22:22:59 +00:00
"description" : "" ,
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" : 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" : [ ]
} ,
2023-02-11 16:17:50 +00:00
"gridPos" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
2023-12-20 22:22:59 +00:00
"y" : 63
2023-02-11 16:17:50 +00:00
} ,
2023-12-20 22:22:59 +00:00
"id" : 18 ,
2023-02-11 16:17:50 +00:00
"links" : [ ] ,
"options" : {
2023-07-31 14:28:44 +00:00
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean" ,
2023-12-20 22:22:59 +00:00
"max" ,
"sum"
2023-07-31 14:28:44 +00:00
] ,
"displayMode" : "table" ,
"placement" : "right" ,
2023-12-20 22:22:59 +00:00
"showLegend" : true ,
"sortBy" : "Total" ,
"sortDesc" : true
2023-02-11 16:17:50 +00:00
} ,
2023-07-31 14:28:44 +00:00
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
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"
} ,
"editorMode" : "code" ,
2023-12-20 22:22:59 +00:00
"expr" : "sum(rate(container_fs_writes_bytes_total{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval])) by (container_label_com_docker_swarm_service_name)" ,
2023-02-11 16:17:50 +00:00
"format" : "time_series" ,
"intervalFactor" : 2 ,
2023-12-20 22:22:59 +00:00
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
2023-07-31 14:28:44 +00:00
"range" : true ,
2023-02-11 16:17:50 +00:00
"refId" : "A" ,
"step" : 2
2023-12-20 22:22:59 +00:00
}
] ,
"title" : "FS Writes per Container" ,
"transformations" : [ ] ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"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" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
"y" : 70
} ,
"id" : 20 ,
"links" : [ ] ,
"options" : {
"legend" : {
"calcs" : [
"lastNotNull" ,
"mean" ,
"max" ,
"sum"
] ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"sortBy" : "Total" ,
"sortDesc" : true
2023-02-11 16:17:50 +00:00
} ,
2023-12-20 22:22:59 +00:00
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
} ,
"pluginVersion" : "9.5.2" ,
"targets" : [
2023-02-11 16:17:50 +00:00
{
2023-07-31 14:28:44 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
} ,
"editorMode" : "code" ,
2023-12-20 22:22:59 +00:00
"expr" : "sum(rate(container_fs_write_seconds_total{container_label_com_docker_stack_namespace=~\"$stack\", instance=~\"cadvisor.monitoring.$instance.*\"}[$interval])) by (container_label_com_docker_swarm_service_name)" ,
"format" : "time_series" ,
"intervalFactor" : 2 ,
"legendFormat" : "{{ container_label_com_docker_swarm_service_name }}" ,
2023-07-31 14:28:44 +00:00
"range" : true ,
2023-12-20 22:22:59 +00:00
"refId" : "A" ,
"step" : 2
2023-02-11 16:17:50 +00:00
}
] ,
2023-12-20 22:22:59 +00:00
"title" : "FS Write-Seconds per Container" ,
2023-07-31 14:28:44 +00:00
"transformations" : [ ] ,
"type" : "timeseries"
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" : [
"prometheus" ,
"cAdvisor" ,
"node-exporter" ,
2023-07-31 14:28:44 +00:00
"alertmanager" ,
"menu"
2023-02-11 16:17:50 +00:00
] ,
"templating" : {
"list" : [
{
"current" : {
2023-07-31 14:28:44 +00:00
"selected" : true ,
"text" : [
"All"
] ,
"value" : [
"$__all"
]
} ,
"datasource" : {
"type" : "prometheus" ,
"uid" : "PBFA97CFB590B2093"
2023-02-11 16:17:50 +00:00
} ,
2023-07-31 14:28:44 +00:00
"definition" : "label_values(container_label_com_docker_stack_namespace)" ,
2023-02-11 16:17:50 +00:00
"hide" : 0 ,
2023-07-31 14:28:44 +00:00
"includeAll" : true ,
2023-02-11 16:17:50 +00:00
"label" : "Stack" ,
2023-07-31 14:28:44 +00:00
"multi" : true ,
2023-02-11 16:17:50 +00:00
"name" : "stack" ,
"options" : [ ] ,
"query" : {
2023-07-31 14:28:44 +00:00
"query" : "label_values(container_label_com_docker_stack_namespace)" ,
"refId" : "PrometheusVariableQueryEditor-VariableQuery"
2023-02-11 16:17:50 +00:00
} ,
"refresh" : 1 ,
2023-07-31 14:28:44 +00:00
"regex" : "" ,
2023-02-11 16:17:50 +00:00
"skipUrlSync" : false ,
"sort" : 2 ,
"tagValuesQuery" : "" ,
"tagsQuery" : "" ,
"type" : "query" ,
"useTags" : false
} ,
{
"auto" : true ,
"auto_count" : 50 ,
"auto_min" : "50s" ,
"current" : {
"selected" : false ,
2023-07-31 14:28:44 +00:00
"text" : "5m" ,
"value" : "5m"
2023-02-11 16:17:50 +00:00
} ,
"hide" : 0 ,
"label" : "Interval" ,
"name" : "interval" ,
"options" : [
{
2023-07-31 14:28:44 +00:00
"selected" : false ,
2023-02-11 16:17:50 +00:00
"text" : "auto" ,
"value" : "$__auto_interval_interval"
} ,
{
"selected" : false ,
"text" : "30s" ,
"value" : "30s"
} ,
{
"selected" : false ,
"text" : "1m" ,
"value" : "1m"
} ,
{
"selected" : false ,
"text" : "2m" ,
"value" : "2m"
} ,
{
"selected" : false ,
"text" : "3m" ,
"value" : "3m"
} ,
{
2023-07-31 14:28:44 +00:00
"selected" : true ,
2023-02-11 16:17:50 +00:00
"text" : "5m" ,
"value" : "5m"
} ,
{
"selected" : false ,
"text" : "7m" ,
"value" : "7m"
} ,
{
"selected" : false ,
"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" : "30s,1m,2m,3m,5m,7m,10m,30m,1h,6h,12h,1d,7d,14d,30d" ,
2023-07-31 14:28:44 +00:00
"queryValue" : "" ,
2023-02-11 16:17:50 +00:00
"refresh" : 2 ,
"skipUrlSync" : false ,
"type" : "interval"
2023-07-31 14:28:44 +00:00
} ,
{
"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"
2023-02-11 16:17:50 +00:00
}
]
} ,
"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"
]
} ,
2023-07-31 14:28:44 +00:00
"timezone" : "Europe/Berlin" ,
2023-02-11 16:17:50 +00:00
"title" : "Swarm Stack Monitoring" ,
"uid" : "KdVoGQm7z" ,
2023-12-20 22:22:59 +00:00
"version" : 36 ,
2023-07-31 14:28:44 +00:00
"weekStart" : ""
2023-12-20 22:22:59 +00:00
}