2019-10-28 10:22:15 +01:00
apiVersion : v1
data :
k8s-resources-pod.json : |-
{
"annotations": {
"list": [
]
},
"editable": true ,
"gnetId": null ,
"graphTooltip": 0 ,
"hideControls": false ,
"links": [
] ,
"refresh": "10s" ,
"rows": [
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 1 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
2020-03-02 08:20:33 +01:00
{
"alias": "requests" ,
"color": "#F2495C" ,
"fill": 0 ,
"hideTooltip": true ,
"legend": true ,
"linewidth": 2 ,
"stack": false
},
{
"alias": "limits" ,
"color": "#FF9830" ,
"fill": 0 ,
"hideTooltip": true ,
"legend": true ,
"linewidth": 2 ,
"stack": false
}
2019-10-28 10:22:15 +01:00
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", cluster=\"$cluster\"}) by (container)" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{container}}" ,
"legendLink": null ,
"step": 10
2020-03-02 08:20:33 +01:00
},
{
"expr": "sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"})\n" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "requests" ,
"legendLink": null ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"})\n" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "limits" ,
"legendLink": null ,
"step": 10
2019-10-28 10:22:15 +01:00
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "CPU Usage" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"type": "graph" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "CPU Usage" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2020-03-02 08:20:33 +01:00
"fill": 10 ,
2019-10-28 10:22:15 +01:00
"id": 2 ,
2020-03-02 08:20:33 +01:00
"legend": {
"avg": false ,
"current": true ,
"max": true ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
"expr": "sum(increase(container_cpu_cfs_throttled_periods_total{namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", cluster=\"$cluster\"}[5m])) by (container) /sum(increase(container_cpu_cfs_periods_total{namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", cluster=\"$cluster\"}[5m])) by (container)" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{container}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
{
"colorMode": "critical" ,
"fill": true ,
"line": true ,
"op": "gt" ,
"value": 1 ,
"yaxis": "left"
}
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "CPU Throttling" ,
"tooltip": {
"shared": false ,
"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": 1 ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "CPU Throttling" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
"id": 3 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": false ,
"steppedLine": false ,
"styles": [
{
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
},
{
"alias": "CPU Usage" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Requests" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Requests %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "CPU Limits" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Limits %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Container" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "container" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
] ,
"targets": [
{
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "CPU Quota" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"transform": "table" ,
"type": "table" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "CPU Quota" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
2020-03-02 08:20:33 +01:00
"id": 4 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
2020-03-02 08:20:33 +01:00
{
"alias": "requests" ,
"color": "#F2495C" ,
"dashes": true ,
"fill": 0 ,
"hideTooltip": true ,
"legend": false ,
"linewidth": 2 ,
"stack": false
},
{
"alias": "limits" ,
"color": "#FF9830" ,
"dashes": true ,
"fill": 0 ,
"hideTooltip": true ,
"legend": false ,
"linewidth": 2 ,
"stack": false
}
2019-10-28 10:22:15 +01:00
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-02 08:20:33 +01:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
2020-03-02 08:20:33 +01:00
"legendFormat": "{{container}}" ,
2019-10-28 10:22:15 +01:00
"legendLink": null ,
"step": 10
},
{
2020-03-02 08:20:33 +01:00
"expr": "sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"})\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
2020-03-02 08:20:33 +01:00
"legendFormat": "requests" ,
2019-10-28 10:22:15 +01:00
"legendLink": null ,
"step": 10
},
{
2020-03-02 08:20:33 +01:00
"expr": "sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"})\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
2020-03-02 08:20:33 +01:00
"legendFormat": "limits" ,
2019-10-28 10:22:15 +01:00
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Memory Usage" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Memory Usage" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
2020-03-02 08:20:33 +01:00
"id": 5 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": false ,
"steppedLine": false ,
"styles": [
{
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
},
{
"alias": "Memory Usage" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Requests" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Requests %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Memory Limits" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Limits %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Memory Usage (RSS)" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #F" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Usage (Cache)" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #G" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Usage (Swap)" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #H" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Container" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "container" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
] ,
"targets": [
{
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\", pod=\"$pod\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container) / sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\", pod=\"$pod\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
"expr": "sum(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
},
{
"expr": "sum(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "G" ,
"step": 10
},
{
"expr": "sum(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "H" ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Memory Quota" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"transform": "table" ,
"type": "table" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Memory Quota" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
2020-03-02 08:20:33 +01:00
"id": 6 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "sum(irate(container_network_receive_bytes_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$__interval])) by (pod)" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Receive Bandwidth" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
2020-03-02 08:20:33 +01:00
"id": 7 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "sum(irate(container_network_transmit_bytes_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$__interval])) by (pod)" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Transmit Bandwidth" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
2020-03-02 08:20:33 +01:00
"id": 8 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "sum(irate(container_network_receive_packets_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$__interval])) by (pod)" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Received Packets" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
2020-03-02 08:20:33 +01:00
"id": 9 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "sum(irate(container_network_transmit_packets_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$__interval])) by (pod)" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Transmitted Packets" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
2020-03-02 08:20:33 +01:00
"id": 10 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "sum(irate(container_network_receive_packets_dropped_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$__interval])) by (pod)" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Received Packets Dropped" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
2020-03-02 08:20:33 +01:00
"id": 11 ,
2019-10-28 10:22:15 +01:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "sum(irate(container_network_transmit_packets_dropped_total{namespace=~\"$namespace\", pod=~\"$pod\"}[$__interval])) by (pod)" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Transmitted Packets Dropped" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
2020-03-02 08:20:33 +01:00
"text": "default" ,
"value": "default"
2019-10-28 10:22:15 +01:00
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
"datasource": "$datasource" ,
2020-03-02 08:20:33 +01:00
"hide": 2 ,
2019-10-28 10:22:15 +01:00
"includeAll": false ,
2020-03-02 08:20:33 +01:00
"label": null ,
2019-10-28 10:22:15 +01:00
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "cluster" ,
2019-10-28 10:22:15 +01:00
"options": [
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(kube_pod_info, cluster)" ,
2019-10-28 10:22:15 +01:00
"refresh": 1 ,
"regex": "" ,
2020-03-02 08:20:33 +01:00
"sort": 1 ,
2019-10-28 10:22:15 +01:00
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
2020-03-02 08:20:33 +01:00
"label": null ,
2019-10-28 10:22:15 +01:00
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "namespace" ,
2019-10-28 10:22:15 +01:00
"options": [
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)" ,
2019-10-28 10:22:15 +01:00
"refresh": 1 ,
"regex": "" ,
2020-03-02 08:20:33 +01:00
"sort": 1 ,
2019-10-28 10:22:15 +01:00
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
2020-03-02 08:20:33 +01:00
"datasource": "$datasource" ,
"hide": 0 ,
2019-10-28 10:22:15 +01:00
"includeAll": false ,
"label": null ,
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "pod" ,
2019-10-28 10:22:15 +01:00
"options": [
2020-03-02 08:20:33 +01:00
2019-10-28 10:22:15 +01:00
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(kube_pod_info{cluster=\"$cluster\", namespace=\"$namespace\"}, pod)" ,
2019-10-28 10:22:15 +01:00
"refresh": 2 ,
"regex": "" ,
"sort": 1 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
2020-03-02 08:20:33 +01:00
"type": "query" ,
2019-10-28 10:22:15 +01:00
"useTags": false
}
]
},
"time": {
"from": "now-1h" ,
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s" ,
"10s" ,
"30s" ,
"1m" ,
"5m" ,
"15m" ,
"30m" ,
"1h" ,
"2h" ,
"1d"
] ,
"time_options": [
"5m" ,
"15m" ,
"1h" ,
"6h" ,
"12h" ,
"24h" ,
"2d" ,
"7d" ,
"30d"
]
},
"timezone": "" ,
"title": "Kubernetes / Compute Resources / Pod" ,
"uid": "6581e46e4e5c7ba40a07646395ef7b23" ,
"version": 0
}
k8s-resources-workload.json : |-
{
"annotations": {
"list": [
]
},
"editable": true ,
"gnetId": null ,
"graphTooltip": 0 ,
"hideControls": false ,
"links": [
] ,
"refresh": "10s" ,
"rows": [
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 1 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "CPU Usage" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"type": "graph" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "CPU Usage" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
"id": 2 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": false ,
"steppedLine": false ,
"styles": [
{
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
},
{
"alias": "CPU Usage" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Requests" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Requests %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "CPU Limits" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Limits %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Pod" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
"linkTooltip": "Drill down" ,
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell" ,
"pattern": "pod" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
] ,
"targets": [
{
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n/sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n/sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "CPU Quota" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"transform": "table" ,
"type": "table" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "CPU Quota" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 3 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Memory Usage" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Memory Usage" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
"id": 4 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": false ,
"steppedLine": false ,
"styles": [
{
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
},
{
"alias": "Memory Usage" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Requests" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Requests %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Memory Limits" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Limits %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Pod" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
"linkTooltip": "Drill down" ,
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell" ,
"pattern": "pod" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
] ,
"targets": [
{
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n/sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n/sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\", workload_type=\"$type\"}\n) by (pod)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Memory Quota" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"transform": "table" ,
"type": "table" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Memory Quota" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
"id": 5 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": false ,
"steppedLine": false ,
"styles": [
{
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
},
{
"alias": "Current Receive Bandwidth" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "Bps"
},
{
"alias": "Current Transmit Bandwidth" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "Bps"
},
{
"alias": "Rate of Received Packets" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "pps"
},
{
"alias": "Rate of Transmitted Packets" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "pps"
},
{
"alias": "Rate of Received Packets Dropped" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "pps"
},
{
"alias": "Rate of Transmitted Packets Dropped" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #F" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "pps"
},
{
"alias": "Pod" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
"linkTooltip": "Drill down" ,
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell" ,
"pattern": "pod" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
] ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Current Network Usage" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"transform": "table" ,
"type": "table" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 6 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Receive Bandwidth" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 7 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Transmit Bandwidth" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 8 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(avg(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Average Container Bandwidth by Pod: Received" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 9 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(avg(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Average Container Bandwidth by Pod: Transmitted" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 10 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Received Packets" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 11 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Transmitted Packets" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 12 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Received Packets Dropped" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 13 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\"$workload\", workload_type=\"$type\"}) by (pod))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{pod}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Transmitted Packets Dropped" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
2020-03-02 08:20:33 +01:00
"text": "default" ,
"value": "default"
2019-10-28 10:22:15 +01:00
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
"datasource": "$datasource" ,
2020-03-02 08:20:33 +01:00
"hide": 2 ,
2019-10-28 10:22:15 +01:00
"includeAll": false ,
2020-03-02 08:20:33 +01:00
"label": null ,
2019-10-28 10:22:15 +01:00
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "cluster" ,
2019-10-28 10:22:15 +01:00
"options": [
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(kube_pod_info, cluster)" ,
2019-10-28 10:22:15 +01:00
"refresh": 1 ,
"regex": "" ,
2020-03-02 08:20:33 +01:00
"sort": 1 ,
2019-10-28 10:22:15 +01:00
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
2020-03-02 08:20:33 +01:00
"label": null ,
2019-10-28 10:22:15 +01:00
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "namespace" ,
2019-10-28 10:22:15 +01:00
"options": [
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)" ,
2019-10-28 10:22:15 +01:00
"refresh": 1 ,
"regex": "" ,
2020-03-02 08:20:33 +01:00
"sort": 1 ,
2019-10-28 10:22:15 +01:00
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
"datasource": "$datasource" ,
2020-03-31 09:50:16 +02:00
"hide": 0 ,
2019-10-28 10:22:15 +01:00
"includeAll": false ,
2020-03-02 08:20:33 +01:00
"label": null ,
2019-10-28 10:22:15 +01:00
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "workload" ,
2019-10-28 10:22:15 +01:00
"options": [
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}, workload)" ,
2019-10-28 10:22:15 +01:00
"refresh": 1 ,
"regex": "" ,
2020-03-02 08:20:33 +01:00
"sort": 1 ,
2019-10-28 10:22:15 +01:00
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
2020-03-02 08:20:33 +01:00
"datasource": "$datasource" ,
"hide": 0 ,
2019-10-28 10:22:15 +01:00
"includeAll": false ,
"label": null ,
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "type" ,
2019-10-28 10:22:15 +01:00
"options": [
2020-03-02 08:20:33 +01:00
2019-10-28 10:22:15 +01:00
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\"}, workload_type)" ,
"refresh": 1 ,
2019-10-28 10:22:15 +01:00
"regex": "" ,
"sort": 1 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
2020-03-02 08:20:33 +01:00
"type": "query" ,
2019-10-28 10:22:15 +01:00
"useTags": false
}
]
},
"time": {
"from": "now-1h" ,
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s" ,
"10s" ,
"30s" ,
"1m" ,
"5m" ,
"15m" ,
"30m" ,
"1h" ,
"2h" ,
"1d"
] ,
"time_options": [
"5m" ,
"15m" ,
"1h" ,
"6h" ,
"12h" ,
"24h" ,
"2d" ,
"7d" ,
"30d"
]
},
"timezone": "" ,
"title": "Kubernetes / Compute Resources / Workload" ,
"uid": "a164a7f0339f99e89cea5cb47e9be617" ,
"version": 0
}
k8s-resources-workloads-namespace.json : |-
{
"annotations": {
"list": [
]
},
"editable": true ,
"gnetId": null ,
"graphTooltip": 0 ,
"hideControls": false ,
"links": [
] ,
"refresh": "10s" ,
"rows": [
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 1 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
2020-03-02 08:20:33 +01:00
{
"alias": "quota - requests" ,
"color": "#F2495C" ,
"dashes": true ,
"fill": 0 ,
"hideTooltip": true ,
"legend": false ,
"linewidth": 2 ,
"stack": false
},
{
"alias": "quota - limits" ,
"color": "#FF9830" ,
"dashes": true ,
"fill": 0 ,
"hideTooltip": true ,
"legend": false ,
"linewidth": 2 ,
"stack": false
}
2019-10-28 10:22:15 +01:00
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}} - {{workload_type}}" ,
"legendLink": null ,
"step": 10
2020-03-02 08:20:33 +01:00
},
{
"expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"requests.cpu\"})" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "quota - requests" ,
"legendLink": null ,
"step": 10
},
{
"expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"limits.cpu\"})" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "quota - limits" ,
"legendLink": null ,
"step": 10
2019-10-28 10:22:15 +01:00
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "CPU Usage" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"type": "graph" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "CPU Usage" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
"id": 2 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": false ,
"steppedLine": false ,
"styles": [
{
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
},
{
"alias": "Running Pods" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 0 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Usage" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Requests" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Requests %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "CPU Limits" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Limits %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #F" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Workload" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
"linkTooltip": "Drill down" ,
"linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$__cell_2" ,
"pattern": "workload" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "Workload Type" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "workload_type" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
] ,
"targets": [
{
"expr": "count(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}) by (workload, workload_type)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
"expr": "sum(\n node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "CPU Quota" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"transform": "table" ,
"type": "table" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "CPU Quota" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 3 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
2020-03-02 08:20:33 +01:00
{
"alias": "quota - requests" ,
"color": "#F2495C" ,
"dashes": true ,
"fill": 0 ,
"hideTooltip": true ,
"legend": false ,
"linewidth": 2 ,
"stack": false
},
{
"alias": "quota - limits" ,
"color": "#FF9830" ,
"dashes": true ,
"fill": 0 ,
"hideTooltip": true ,
"legend": false ,
"linewidth": 2 ,
"stack": false
}
2019-10-28 10:22:15 +01:00
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}} - {{workload_type}}" ,
"legendLink": null ,
"step": 10
2020-03-02 08:20:33 +01:00
},
{
"expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"requests.memory\"})" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "quota - requests" ,
"legendLink": null ,
"step": 10
},
{
"expr": "scalar(kube_resourcequota{cluster=\"$cluster\", namespace=\"$namespace\", type=\"hard\",resource=\"limits.memory\"})" ,
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "quota - limits" ,
"legendLink": null ,
"step": 10
2019-10-28 10:22:15 +01:00
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Memory Usage" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Memory Usage" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
"id": 4 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": false ,
"steppedLine": false ,
"styles": [
{
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
},
{
"alias": "Running Pods" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 0 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "Memory Usage" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Requests" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Requests %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Memory Limits" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
"alias": "Memory Limits %" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #F" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
"alias": "Workload" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
"linkTooltip": "Drill down" ,
"linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$__cell_2" ,
"pattern": "workload" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "Workload Type" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "workload_type" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
] ,
"targets": [
{
"expr": "count(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}) by (workload, workload_type)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
"expr": "sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
"expr": "sum(\n container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}\n * on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n* on(namespace,pod)\n group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload_type=\"$type\"}\n) by (workload, workload_type)\n" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Memory Quota" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"transform": "table" ,
"type": "table" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Memory Quota" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
"id": 5 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": false ,
"steppedLine": false ,
"styles": [
{
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
},
{
"alias": "Current Receive Bandwidth" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "Bps"
},
{
"alias": "Current Transmit Bandwidth" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "Bps"
},
{
"alias": "Rate of Received Packets" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "pps"
},
{
"alias": "Rate of Transmitted Packets" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "pps"
},
{
"alias": "Rate of Received Packets Dropped" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "pps"
},
{
"alias": "Rate of Transmitted Packets Dropped" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #F" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "pps"
},
{
"alias": "Workload" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
"linkTooltip": "Drill down to pods" ,
"linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$type" ,
"pattern": "workload" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "Workload Type" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "workload_type" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
] ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Current Network Usage" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
"transform": "table" ,
"type": "table" ,
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 6 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Receive Bandwidth" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 7 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Transmit Bandwidth" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 8 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(avg(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Average Container Bandwidth by Workload: Received" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 9 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(avg(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Average Container Bandwidth by Workload: Transmitted" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 10 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Received Packets" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 11 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Transmitted Packets" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 12 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod)\ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Received Packets Dropped" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
"id": 13 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 0 ,
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2020-03-31 09:50:16 +02:00
"expr": "(sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__interval])\n* on (namespace,pod) \ngroup_left(workload,workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=~\"$namespace\", workload=~\".+\", workload_type=\"$type\"}) by (workload))\n" ,
2019-10-28 10:22:15 +01:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}}" ,
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Rate of Transmitted Packets Dropped" ,
"tooltip": {
"shared": false ,
"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": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Network" ,
"titleSize": "h6"
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
2020-03-02 08:20:33 +01:00
"text": "default" ,
"value": "default"
2019-10-28 10:22:15 +01:00
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
2020-03-02 08:20:33 +01:00
"auto": false ,
"auto_count": 30 ,
"auto_min": "10s" ,
2019-10-28 10:22:15 +01:00
"current": {
2020-03-02 08:20:33 +01:00
"text": "deployment" ,
"value": "deployment"
2019-10-28 10:22:15 +01:00
},
"datasource": "$datasource" ,
2020-03-02 08:20:33 +01:00
"definition": "label_values(mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\"}, workload_type)" ,
2019-10-28 10:22:15 +01:00
"hide": 0 ,
"includeAll": false ,
2020-03-02 08:20:33 +01:00
"label": null ,
2019-10-28 10:22:15 +01:00
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "type" ,
2019-10-28 10:22:15 +01:00
"options": [
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(mixin_pod_workload{namespace=~\"$namespace\", workload=~\".+\"}, workload_type)" ,
2019-10-28 10:22:15 +01:00
"refresh": 1 ,
"regex": "" ,
2020-03-02 08:20:33 +01:00
"skipUrlSync": false ,
"sort": 0 ,
2019-10-28 10:22:15 +01:00
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
2020-03-02 08:20:33 +01:00
"datasource": "$datasource" ,
2019-10-28 10:22:15 +01:00
"hide": 2 ,
"includeAll": false ,
"label": null ,
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "cluster" ,
2019-10-28 10:22:15 +01:00
"options": [
2020-03-02 08:20:33 +01:00
2019-10-28 10:22:15 +01:00
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(kube_pod_info, cluster)" ,
"refresh": 1 ,
2019-10-28 10:22:15 +01:00
"regex": "" ,
"sort": 1 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
2020-03-02 08:20:33 +01:00
"type": "query" ,
2019-10-28 10:22:15 +01:00
"useTags": false
},
{
"allValue": null ,
"current": {
2020-03-02 08:20:33 +01:00
"text": "" ,
"value": ""
2019-10-28 10:22:15 +01:00
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
"label": null ,
"multi": false ,
2020-03-02 08:20:33 +01:00
"name": "namespace" ,
2019-10-28 10:22:15 +01:00
"options": [
] ,
2020-03-02 08:20:33 +01:00
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)" ,
2019-10-28 10:22:15 +01:00
"refresh": 1 ,
"regex": "" ,
2020-03-02 08:20:33 +01:00
"sort": 1 ,
2019-10-28 10:22:15 +01:00
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
}
]
},
"time": {
"from": "now-1h" ,
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s" ,
"10s" ,
"30s" ,
"1m" ,
"5m" ,
"15m" ,
"30m" ,
"1h" ,
"2h" ,
"1d"
] ,
"time_options": [
"5m" ,
"15m" ,
"1h" ,
"6h" ,
"12h" ,
"24h" ,
"2d" ,
"7d" ,
"30d"
]
},
"timezone": "" ,
"title": "Kubernetes / Compute Resources / Namespace (Workloads)" ,
"uid": "a87fb0d919ec0ea5f6543124e16c42a5" ,
"version": 0
}
kind : ConfigMap
metadata :
name : grafana-dashboards-k8s-resources-2
namespace : monitoring