Files
kube-forge-dist/grafana/dashboards/Component Metrics-1717014684245.json

1455 lines
41 KiB
JSON

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 28,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 18,
"panels": [],
"title": "Pods Count",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": 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",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"kube-metrics-kube-state-metrics-7f54cddf7c-hm6jq"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": false
}
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 1
},
"id": 10,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"exemplar": false,
"expr": "count by(pod) (kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"instant": false,
"interval": "",
"legendFormat": "{{label_name}}",
"range": true,
"refId": "A"
}
],
"title": "Count Timeline",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 12,
"y": 1
},
"id": 16,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "builder",
"exemplar": false,
"expr": "count by(pod) (kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"format": "time_series",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Count",
"type": "stat"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 9
},
"id": 19,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"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": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 10
},
"id": 20,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(exported_pod) (kube_pod_container_resource_requests{exported_namespace=\"$namespace\", resource=\"cpu\", unit=\"core\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"instant": false,
"legendFormat": "{{pod}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (sum by(exported_pod) (kube_pod_container_resource_requests{exported_namespace=\"$namespace\", resource=\"cpu\", unit=\"core\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"instant": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "CPU requests (cores)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"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": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 10
},
"id": 21,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(exported_pod) (kube_pod_container_resource_requests{exported_namespace=\"$namespace\", resource=\"memory\", unit=\"byte\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"instant": false,
"legendFormat": "{{label_name}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (sum by(exported_pod) (kube_pod_container_resource_requests{exported_namespace=\"$namespace\", resource=\"memory\", unit=\"byte\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"instant": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "RAM requests",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"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": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 18
},
"id": 22,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(exported_pod) (kube_pod_container_resource_limits{exported_namespace=\"$namespace\", resource=\"cpu\", unit=\"core\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"instant": false,
"legendFormat": "{{exported_pod}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (sum by(exported_pod) (kube_pod_container_resource_limits{exported_namespace=\"$namespace\", resource=\"cpu\", unit=\"core\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"instant": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "CPU limits (cores)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"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": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 18
},
"id": 23,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(exported_pod) (kube_pod_container_resource_limits{exported_namespace=\"$namespace\", resource=\"memory\", unit=\"byte\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"instant": false,
"legendFormat": "{{exported_pod}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (sum by(exported_pod) (kube_pod_container_resource_limits{exported_namespace=\"$namespace\", resource=\"memory\", unit=\"byte\"}) and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"instant": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "RAM limits",
"type": "timeseries"
}
],
"title": "Resources requests/limits",
"type": "row"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 10
},
"id": 12,
"panels": [],
"title": "Resources usage",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": 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",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Overall"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#F2495C",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 11
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"exemplar": false,
"expr": "label_replace(sum by(pod) (rate(container_cpu_usage_seconds_total{container!~\"POD|\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"hide": false,
"legendFormat": "{{pod}}",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_cpu_usage_seconds_total{container!~\"POD|\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"legendFormat": "Overall",
"range": true,
"refId": "A"
}
],
"title": "CPU (cores)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": 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",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 11
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "label_replace(sum by(pod) (container_memory_working_set_bytes{namespace=\"$namespace\"}), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"legendFormat": "{{pod}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (container_memory_working_set_bytes{namespace=\"$namespace\"}), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "RAM (MB)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": 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",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "Bps"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 20
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "label_replace(sum by(pod) (rate(container_fs_writes_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"legendFormat": "{{pod}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_fs_writes_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "Disk Write",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": 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",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "binBps"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 20
},
"id": 3,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "label_replace(sum by(pod) (rate(container_fs_reads_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"legendFormat": "{{pod}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_fs_reads_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "Disk Read",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 29
},
"id": 14,
"panels": [],
"title": "Network",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"description": "",
"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": "Bps"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 30
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "label_replace(sum by(pod) (rate(container_network_receive_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"instant": false,
"legendFormat": "{{pod}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_network_receive_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"instant": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "Receive Bandwidth",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"description": "",
"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": "Bps"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 30
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "label_replace(sum by(pod) (rate(container_network_transmit_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"}",
"instant": false,
"legendFormat": "{{pod}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"editorMode": "code",
"expr": "sum by(label_app_kubernetes_io_component) (label_replace(sum by(pod) (rate(container_network_transmit_bytes_total{namespace=\"$namespace\"}[$__rate_interval])), \"exported_pod\", \"$1\", \"pod\", \"(.*)\") and on(exported_pod) kube_pod_labels{exported_namespace=\"$namespace\", label_app_kubernetes_io_component=\"$component\"})",
"hide": false,
"instant": false,
"legendFormat": "Overall",
"range": true,
"refId": "B"
}
],
"title": "Transmit Bandwidth",
"type": "timeseries"
}
],
"refresh": "",
"schemaVersion": 39,
"tags": [
"kubernetes"
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "Kube-prometheus",
"value": "P8D3620484E958841"
},
"hide": 0,
"includeAll": false,
"label": "datasource",
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": false,
"text": "cert-manager",
"value": "cert-manager"
},
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"definition": "label_values(kube_namespace_labels, exported_namespace)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "namespace",
"options": [],
"query": {
"query": "label_values(kube_namespace_labels, exported_namespace)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "controller",
"value": "controller"
},
"datasource": {
"type": "prometheus",
"uid": "P8D3620484E958841"
},
"definition": "label_values(kube_pod_labels{exported_namespace=\"$namespace\"},label_app_kubernetes_io_component)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "component",
"options": [],
"query": {
"query": "label_values(kube_pod_labels{exported_namespace=\"$namespace\"},label_app_kubernetes_io_component)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Component Metrics",
"uid": "e5ae1f99-2b2b-44e3-9165-487757ea2d57",
"version": 1,
"weekStart": ""
}