2019-04-07 08:27:11 +02:00
apiVersion : v1
data :
2019-10-20 02:43:47 +02:00
k8s-resources-cluster.json : |-
2019-07-21 20:02:18 +02:00
{
"annotations": {
"list": [
]
},
"editable": true ,
"gnetId": null ,
"graphTooltip": 0 ,
"hideControls": false ,
"links": [
] ,
"refresh": "10s" ,
"rows": [
{
"collapse": false ,
2019-10-20 02:43:47 +02:00
"height": "100px" ,
2019-07-21 20:02:18 +02:00
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2019-10-20 02:43:47 +02:00
"fill": 1 ,
"format": "percentunit" ,
2019-07-21 20:02:18 +02:00
"id": 1 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
2019-10-20 02:43:47 +02:00
"linewidth": 1 ,
2019-07-21 20:02:18 +02:00
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
2019-10-20 02:43:47 +02:00
"span": 2 ,
"stack": false ,
2019-07-21 20:02:18 +02:00
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "1 - avg(rate(node_cpu_seconds_total{mode=\"idle\", cluster=\"$cluster\"}[1m]))" ,
2019-07-21 20:02:18 +02:00
"format": "time_series" ,
2019-10-20 02:43:47 +02:00
"instant": true ,
2019-07-21 20:02:18 +02:00
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"refId": "A"
2019-07-21 20:02:18 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": "70,80" ,
2019-07-21 20:02:18 +02:00
"timeFrom": null ,
"timeShift": null ,
"title": "CPU Utilisation" ,
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"type": "singlestat" ,
2019-07-21 20:02:18 +02:00
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
2019-10-20 02:43:47 +02:00
"format": "short" ,
2019-07-21 20:02:18 +02:00
"label": null ,
"logBase": 1 ,
2019-10-20 02:43:47 +02:00
"max": null ,
2019-07-21 20:02:18 +02:00
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
},
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2019-10-20 02:43:47 +02:00
"fill": 1 ,
"format": "percentunit" ,
2019-07-21 20:02:18 +02:00
"id": 2 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
2019-10-20 02:43:47 +02:00
"linewidth": 1 ,
2019-07-21 20:02:18 +02:00
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
2019-10-20 02:43:47 +02:00
"span": 2 ,
"stack": false ,
2019-07-21 20:02:18 +02:00
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_cpu_cores{cluster=\"$cluster\"})" ,
2019-07-21 20:02:18 +02:00
"format": "time_series" ,
2019-10-20 02:43:47 +02:00
"instant": true ,
2019-07-21 20:02:18 +02:00
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"refId": "A"
2019-07-21 20:02:18 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": "70,80" ,
2019-07-21 20:02:18 +02:00
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "CPU Requests Commitment" ,
2019-07-21 20:02:18 +02:00
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"type": "singlestat" ,
2019-07-21 20:02:18 +02:00
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
2019-10-20 02:43:47 +02:00
"format": "short" ,
2019-07-21 20:02:18 +02:00
"label": null ,
"logBase": 1 ,
2019-10-20 02:43:47 +02:00
"max": null ,
2019-07-21 20:02:18 +02:00
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
2019-10-20 02:43:47 +02:00
},
2019-07-21 20:02:18 +02:00
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2019-10-20 02:43:47 +02:00
"fill": 1 ,
"format": "percentunit" ,
2019-07-21 20:02:18 +02:00
"id": 3 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
2019-10-20 02:43:47 +02:00
"linewidth": 1 ,
2019-07-21 20:02:18 +02:00
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
2019-10-20 02:43:47 +02:00
"span": 2 ,
"stack": false ,
2019-07-21 20:02:18 +02:00
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_cpu_cores{cluster=\"$cluster\"})" ,
2019-07-21 20:02:18 +02:00
"format": "time_series" ,
2019-10-20 02:43:47 +02:00
"instant": true ,
2019-07-21 20:02:18 +02:00
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"refId": "A"
2019-07-21 20:02:18 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": "70,80" ,
2019-07-21 20:02:18 +02:00
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "CPU Limits Commitment" ,
2019-07-21 20:02:18 +02:00
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"type": "singlestat" ,
2019-07-21 20:02:18 +02:00
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
2019-10-20 02:43:47 +02:00
"format": "short" ,
2019-07-21 20:02:18 +02:00
"label": null ,
"logBase": 1 ,
2019-10-20 02:43:47 +02:00
"max": null ,
2019-07-21 20:02:18 +02:00
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
},
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2019-10-20 02:43:47 +02:00
"fill": 1 ,
"format": "percentunit" ,
2019-07-21 20:02:18 +02:00
"id": 4 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
2019-10-20 02:43:47 +02:00
"linewidth": 1 ,
2019-07-21 20:02:18 +02:00
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
2019-10-20 02:43:47 +02:00
"span": 2 ,
"stack": false ,
2019-07-21 20:02:18 +02:00
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "1 - sum(:node_memory_MemFreeCachedBuffers_bytes:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})" ,
2019-07-21 20:02:18 +02:00
"format": "time_series" ,
2019-10-20 02:43:47 +02:00
"instant": true ,
2019-07-21 20:02:18 +02:00
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"refId": "A"
2019-07-21 20:02:18 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": "70,80" ,
2019-07-21 20:02:18 +02:00
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "Memory Utilisation" ,
2019-07-21 20:02:18 +02:00
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"type": "singlestat" ,
2019-07-21 20:02:18 +02:00
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
2019-10-20 02:43:47 +02:00
"format": "short" ,
2019-07-21 20:02:18 +02:00
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
2019-10-20 02:43:47 +02:00
},
2019-07-21 20:02:18 +02:00
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2019-10-20 02:43:47 +02:00
"fill": 1 ,
"format": "percentunit" ,
2019-07-21 20:02:18 +02:00
"id": 5 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
2019-10-20 02:43:47 +02:00
"linewidth": 1 ,
2019-07-21 20:02:18 +02:00
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
2019-10-20 02:43:47 +02:00
"span": 2 ,
"stack": false ,
2019-07-21 20:02:18 +02:00
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})" ,
2019-07-21 20:02:18 +02:00
"format": "time_series" ,
2019-10-20 02:43:47 +02:00
"instant": true ,
2019-07-21 20:02:18 +02:00
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"refId": "A"
2019-07-21 20:02:18 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": "70,80" ,
2019-07-21 20:02:18 +02:00
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "Memory Requests Commitment" ,
2019-07-21 20:02:18 +02:00
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"type": "singlestat" ,
2019-07-21 20:02:18 +02:00
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
2019-10-20 02:43:47 +02:00
"format": "short" ,
2019-07-21 20:02:18 +02:00
"label": null ,
"logBase": 1 ,
2019-10-20 02:43:47 +02:00
"max": null ,
2019-07-21 20:02:18 +02:00
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
},
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2019-10-20 02:43:47 +02:00
"fill": 1 ,
"format": "percentunit" ,
2019-07-21 20:02:18 +02:00
"id": 6 ,
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
2019-10-20 02:43:47 +02:00
"linewidth": 1 ,
2019-07-21 20:02:18 +02:00
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
2019-10-20 02:43:47 +02:00
"span": 2 ,
"stack": false ,
2019-07-21 20:02:18 +02:00
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})" ,
2019-07-21 20:02:18 +02:00
"format": "time_series" ,
2019-10-20 02:43:47 +02:00
"instant": true ,
2019-07-21 20:02:18 +02:00
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"refId": "A"
2019-07-21 20:02:18 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": "70,80" ,
2019-07-21 20:02:18 +02:00
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "Memory Limits Commitment" ,
2019-07-21 20:02:18 +02:00
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"type": "singlestat" ,
2019-07-21 20:02:18 +02:00
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
2019-10-20 02:43:47 +02:00
"format": "short" ,
2019-07-21 20:02:18 +02:00
"label": null ,
"logBase": 1 ,
2019-10-20 02:43:47 +02:00
"max": null ,
2019-07-21 20:02:18 +02:00
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
2019-10-20 02:43:47 +02:00
"showTitle": false ,
"title": "Headlines" ,
2019-07-21 20:02:18 +02:00
"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 ,
2019-10-20 02:43:47 +02:00
"span": 12 ,
2019-07-21 20:02:18 +02:00
"stack": true ,
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace)" ,
2019-07-21 20:02:18 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"legendFormat": "{{namespace}}" ,
"legendLink": null ,
2019-07-21 20:02:18 +02:00
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "CPU Usage" ,
2019-07-21 20:02:18 +02:00
"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 ,
2019-10-20 02:43:47 +02:00
"title": "CPU" ,
2019-07-21 20:02:18 +02:00
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2019-10-20 02:43:47 +02:00
"fill": 1 ,
"id": 8 ,
2019-07-21 20:02:18 +02:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
2019-10-20 02:43:47 +02:00
"linewidth": 1 ,
2019-07-21 20:02:18 +02:00
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
"span": 12 ,
2019-10-20 02:43:47 +02:00
"stack": false ,
2019-07-21 20:02:18 +02:00
"steppedLine": false ,
2019-10-20 02:43:47 +02:00
"styles": [
2019-07-21 20:02:18 +02:00
{
2019-10-20 02:43:47 +02:00
"alias": "Time" ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"pattern": "Time" ,
"type": "hidden"
2019-07-21 20:02:18 +02:00
},
{
2019-10-20 02:43:47 +02:00
"alias": "Pods" ,
"colorMode": null ,
"colors": [
2019-07-21 20:02:18 +02:00
2019-10-20 02:43:47 +02:00
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 0 ,
"link": true ,
"linkTooltip": "Drill down to pods" ,
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1" ,
"pattern": "Value #A" ,
"thresholds": [
2019-07-21 20:02:18 +02:00
2019-10-20 02:43:47 +02:00
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "Workloads" ,
"colorMode": null ,
"colors": [
2019-07-21 20:02:18 +02:00
2019-10-20 02:43:47 +02:00
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 0 ,
"link": true ,
"linkTooltip": "Drill down to workloads" ,
"linkUrl": "./d/a87fb0d919ec0ea5f6543124e16c42a5/k8s-resources-workloads-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1" ,
"pattern": "Value #B" ,
"thresholds": [
2019-07-21 20:02:18 +02:00
2019-10-20 02:43:47 +02:00
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Usage" ,
"colorMode": null ,
"colors": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #C" ,
"thresholds": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Requests" ,
"colorMode": null ,
"colors": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #D" ,
"thresholds": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "CPU Requests %" ,
"colorMode": null ,
"colors": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #E" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
2019-04-07 08:27:11 +02:00
{
2019-10-20 02:43:47 +02:00
"alias": "CPU Limits" ,
"colorMode": null ,
"colors": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
"pattern": "Value #F" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
2019-04-07 08:27:11 +02:00
{
2019-10-20 02:43:47 +02:00
"alias": "CPU Limits %" ,
"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": "percentunit"
2019-04-07 08:27:11 +02:00
},
{
2019-10-20 02:43:47 +02:00
"alias": "Namespace" ,
"colorMode": null ,
"colors": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
"linkTooltip": "Drill down to pods" ,
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell" ,
"pattern": "namespace" ,
"thresholds": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"type": "string" ,
"unit": "short"
}
2019-04-07 08:27:11 +02:00
] ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "count(mixin_pod_workload{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
2019-04-07 08:27:11 +02:00
"instant": true ,
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
2019-04-07 08:27:11 +02:00
{
2019-10-20 02:43:47 +02:00
"expr": "count(avg(mixin_pod_workload{cluster=\"$cluster\"}) by (workload, namespace)) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
2019-04-07 08:27:11 +02:00
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
2019-04-07 08:27:11 +02:00
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
2019-04-07 08:27:11 +02:00
"instant": true ,
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
},
{
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "G" ,
"step": 10
2019-04-07 08:27:11 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": [
] ,
2019-04-07 08:27:11 +02:00
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "CPU Quota" ,
2019-04-07 08:27:11 +02:00
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"transform": "table" ,
"type": "table" ,
2019-04-07 08:27:11 +02:00
"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
}
]
2019-10-20 02:43:47 +02:00
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "CPU Quota" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
2019-04-07 08:27:11 +02:00
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
2019-10-20 02:43:47 +02:00
"fill": 10 ,
"id": 9 ,
2019-04-07 08:27:11 +02:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
2019-10-20 02:43:47 +02:00
"linewidth": 0 ,
2019-04-07 08:27:11 +02:00
"links": [
] ,
"nullPointMode": "null as zero" ,
"percentage": false ,
"pointradius": 5 ,
"points": false ,
"renderer": "flot" ,
"seriesOverrides": [
] ,
"spaceLength": 10 ,
2019-10-20 02:43:47 +02:00
"span": 12 ,
"stack": true ,
2019-04-07 08:27:11 +02:00
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"legendFormat": "{{namespace}}" ,
"legendLink": null ,
"step": 10
2019-04-07 08:27:11 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": [
] ,
2019-04-07 08:27:11 +02:00
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "Memory Usage (w/o cache)" ,
2019-04-07 08:27:11 +02:00
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"type": "graph" ,
2019-04-07 08:27:11 +02:00
"xaxis": {
"buckets": null ,
"mode": "time" ,
"name": null ,
"show": true ,
"values": [
]
},
"yaxes": [
{
2019-10-20 02:43:47 +02:00
"format": "bytes" ,
2019-04-07 08:27:11 +02:00
"label": null ,
"logBase": 1 ,
"max": null ,
"min": 0 ,
"show": true
},
{
"format": "short" ,
"label": null ,
"logBase": 1 ,
"max": null ,
"min": null ,
"show": false
}
]
2019-10-20 02:43:47 +02:00
}
] ,
"repeat": null ,
"repeatIteration": null ,
"repeatRowId": null ,
"showTitle": true ,
"title": "Memory" ,
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
2019-04-07 08:27:11 +02:00
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
2019-10-20 02:43:47 +02:00
"id": 10 ,
2019-04-07 08:27:11 +02:00
"legend": {
"avg": false ,
"current": false ,
"max": false ,
"min": false ,
"show": true ,
"total": false ,
"values": false
},
"lines": true ,
"linewidth": 1 ,
"links": [
2019-10-20 02:43:47 +02:00
] ,
"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": "Pods" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 0 ,
"link": true ,
"linkTooltip": "Drill down to pods" ,
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1" ,
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "Workloads" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 0 ,
"link": true ,
"linkTooltip": "Drill down to workloads" ,
"linkUrl": "./d/a87fb0d919ec0ea5f6543124e16c42a5/k8s-resources-workloads-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell_1" ,
"pattern": "Value #B" ,
"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 #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": "bytes"
},
{
"alias": "Memory Requests %" ,
"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 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": "bytes"
},
{
"alias": "Memory Limits %" ,
"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": "percentunit"
},
{
"alias": "Namespace" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
"linkTooltip": "Drill down to pods" ,
"linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell" ,
"pattern": "namespace" ,
"thresholds": [
] ,
"type": "number" ,
"unit": "short"
},
{
"alias": "" ,
"colorMode": null ,
"colors": [
2019-04-07 08:27:11 +02:00
2019-10-20 02:43:47 +02:00
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"pattern": "/.*/" ,
"thresholds": [
] ,
"type": "string" ,
"unit": "short"
}
2019-04-07 08:27:11 +02:00
] ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "count(mixin_pod_workload{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
2019-04-07 08:27:11 +02:00
"instant": true ,
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
2019-04-07 08:27:11 +02:00
{
2019-10-20 02:43:47 +02:00
"expr": "count(avg(mixin_pod_workload{cluster=\"$cluster\"}) by (workload, namespace)) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
2019-04-07 08:27:11 +02:00
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
2019-04-07 08:27:11 +02:00
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
2019-04-07 08:27:11 +02:00
"instant": true ,
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
"expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
},
{
"expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) by (namespace)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "G" ,
"step": 10
2019-04-07 08:27:11 +02:00
}
] ,
2019-10-20 02:43:47 +02:00
"thresholds": [
] ,
2019-04-07 08:27:11 +02:00
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "Requests by Namespace" ,
2019-04-07 08:27:11 +02:00
"tooltip": {
"shared": false ,
"sort": 0 ,
"value_type": "individual"
},
2019-10-20 02:43:47 +02:00
"transform": "table" ,
"type": "table" ,
2019-04-07 08:27:11 +02:00
"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 ,
2019-10-20 02:43:47 +02:00
"showTitle": true ,
"title": "Memory Requests" ,
2019-04-07 08:27:11 +02:00
"titleSize": "h6"
2019-10-20 02:43:47 +02:00
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
"text": "Prometheus" ,
"value": "Prometheus"
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 2 ,
"includeAll": false ,
"label": "cluster" ,
"multi": false ,
"name": "cluster" ,
"options": [
] ,
"query": "label_values(node_cpu_seconds_total, cluster)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"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 / Cluster" ,
"uid": "efa86fd1d0c121a26444b636a3f509a8" ,
"version": 0
}
k8s-resources-namespace.json : |-
{
"annotations": {
"list": [
]
},
"editable": true ,
"gnetId": null ,
"graphTooltip": 0 ,
"hideControls": false ,
"links": [
] ,
"refresh": "10s" ,
"rows": [
2019-04-07 08:27:11 +02:00
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 10 ,
2019-10-20 02:43:47 +02:00
"id": 1 ,
2019-04-07 08:27:11 +02: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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"legendFormat": "{{pod}}" ,
2019-04-07 08:27:11 +02:00
"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 ,
2019-10-20 02:43:47 +02:00
"title": "CPU Usage" ,
2019-04-07 08:27:11 +02:00
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
2019-10-20 02:43:47 +02:00
"id": 2 ,
2019-04-07 08:27:11 +02: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": "" ,
2019-10-20 02:43:47 +02:00
"pattern": "Value #A" ,
2019-04-07 08:27:11 +02:00
"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": "" ,
2019-10-20 02:43:47 +02:00
"pattern": "Value #B" ,
2019-04-07 08:27:11 +02:00
"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": "" ,
2019-10-20 02:43:47 +02:00
"pattern": "Value #C" ,
2019-04-07 08:27:11 +02:00
"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": "" ,
2019-10-20 02:43:47 +02:00
"pattern": "Value #D" ,
2019-04-07 08:27:11 +02:00
"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": "" ,
2019-10-20 02:43:47 +02:00
"pattern": "Value #E" ,
2019-04-07 08:27:11 +02:00
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
2019-10-20 02:43:47 +02:00
"alias": "Pod" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
2019-10-20 02:43:47 +02:00
"linkTooltip": "Drill down" ,
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell" ,
"pattern": "pod" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"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 ,
2019-10-20 02:43:47 +02:00
"id": 3 ,
2019-04-07 08:27:11 +02: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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-10-20 02:43:47 +02:00
"legendFormat": "{{pod}}" ,
2019-04-07 08:27:11 +02:00
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Memory Usage (w/o cache)" ,
"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 ,
2019-10-20 02:43:47 +02:00
"title": "Memory Usage" ,
2019-04-07 08:27:11 +02:00
"titleSize": "h6"
},
{
"collapse": false ,
"height": "250px" ,
"panels": [
{
"aliasColors": {
},
"bars": false ,
"dashLength": 10 ,
"dashes": false ,
"datasource": "$datasource" ,
"fill": 1 ,
2019-10-20 02:43:47 +02:00
"id": 4 ,
2019-04-07 08:27:11 +02: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"
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Usage" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
2019-10-20 02:43:47 +02:00
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
2019-04-07 08:27:11 +02:00
"pattern": "Value #A" ,
"thresholds": [
] ,
"type": "number" ,
2019-10-20 02:43:47 +02:00
"unit": "bytes"
2019-04-07 08:27:11 +02:00
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Requests" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
2019-10-20 02:43:47 +02:00
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
2019-04-07 08:27:11 +02:00
"pattern": "Value #B" ,
"thresholds": [
] ,
"type": "number" ,
2019-10-20 02:43:47 +02:00
"unit": "bytes"
2019-04-07 08:27:11 +02:00
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Requests %" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
2019-04-28 07:41:13 +02:00
"pattern": "Value #C" ,
2019-04-07 08:27:11 +02:00
"thresholds": [
] ,
"type": "number" ,
2019-10-20 02:43:47 +02:00
"unit": "percentunit"
2019-04-07 08:27:11 +02:00
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Limits" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
2019-04-28 07:41:13 +02:00
"pattern": "Value #D" ,
2019-04-07 08:27:11 +02:00
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Limits %" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
2019-04-28 07:41:13 +02:00
"pattern": "Value #E" ,
2019-04-07 08:27:11 +02:00
"thresholds": [
] ,
"type": "number" ,
"unit": "percentunit"
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Usage (RSS)" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
2019-04-28 07:41:13 +02:00
"pattern": "Value #F" ,
2019-04-07 08:27:11 +02:00
"thresholds": [
] ,
"type": "number" ,
"unit": "bytes"
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Usage (Cache)" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": false ,
"linkTooltip": "Drill down" ,
"linkUrl": "" ,
2019-04-28 07:41:13 +02:00
"pattern": "Value #G" ,
2019-04-07 08:27:11 +02:00
"thresholds": [
] ,
"type": "number" ,
2019-10-20 02:43:47 +02:00
"unit": "bytes"
2019-04-07 08:27:11 +02:00
},
{
2019-10-20 02:43:47 +02:00
"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": "Pod" ,
2019-04-07 08:27:11 +02:00
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
"link": true ,
2019-10-20 02:43:47 +02:00
"linkTooltip": "Drill down" ,
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell" ,
"pattern": "pod" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "G" ,
"step": 10
2019-10-20 02:43:47 +02:00
},
{
"expr": "sum(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\"}) by (pod)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "H" ,
"step": 10
2019-04-07 08:27:11 +02:00
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
2019-10-20 02:43:47 +02:00
"title": "Memory Quota" ,
2019-04-07 08:27:11 +02:00
"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 ,
2019-10-20 02:43:47 +02:00
"title": "Memory Quota" ,
2019-04-07 08:27:11 +02:00
"titleSize": "h6"
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
"text": "Prometheus" ,
"value": "Prometheus"
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 2 ,
"includeAll": false ,
"label": "cluster" ,
"multi": false ,
"name": "cluster" ,
"options": [
] ,
2019-10-20 02:43:47 +02:00
"query": "label_values(kube_pod_info, cluster)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
"label": "namespace" ,
"multi": false ,
"name": "namespace" ,
"options": [
] ,
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)" ,
2019-04-07 08:27:11 +02:00
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"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": "" ,
2019-10-20 02:43:47 +02:00
"title": "Kubernetes / Compute Resources / Namespace (Pods)" ,
"uid": "85a562078cdf77779eaa1add43ccec1e" ,
2019-04-07 08:27:11 +02:00
"version": 0
}
2019-10-20 02:43:47 +02:00
k8s-resources-node.json : |-
2019-04-07 08:27:11 +02:00
{
"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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-07-21 20:02:18 +02:00
"legendFormat": "{{pod}}" ,
2019-04-07 08:27:11 +02:00
"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 ,
2019-10-20 02:43:47 +02:00
"link": false ,
2019-04-07 08:27:11 +02:00
"linkTooltip": "Drill down" ,
2019-10-20 02:43:47 +02:00
"linkUrl": "" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", node=\"$node\"}) by (pod) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", node=\"$node\"}) by (pod) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", node=\"$node\", container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-07-21 20:02:18 +02:00
"legendFormat": "{{pod}}" ,
2019-04-07 08:27:11 +02:00
"legendLink": null ,
"step": 10
}
] ,
"thresholds": [
] ,
"timeFrom": null ,
"timeShift": null ,
"title": "Memory Usage (w/o cache)" ,
"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": "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"
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Usage (Swap)" ,
2019-04-07 08:27:11 +02:00
"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": "Pod" ,
"colorMode": null ,
"colors": [
] ,
"dateFormat": "YYYY-MM-DD HH:mm:ss" ,
"decimals": 2 ,
2019-10-20 02:43:47 +02:00
"link": false ,
2019-04-07 08:27:11 +02:00
"linkTooltip": "Drill down" ,
2019-10-20 02:43:47 +02:00
"linkUrl": "" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_requests_memory_bytes{node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_limits_memory_bytes{node=\"$node\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_rss{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_cache{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "G" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_swap{cluster=\"$cluster\", node=\"$node\",container!=\"\"}) by (pod)" ,
2019-04-07 08:27:11 +02:00
"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"
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
"text": "Prometheus" ,
"value": "Prometheus"
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 2 ,
"includeAll": false ,
"label": "cluster" ,
"multi": false ,
"name": "cluster" ,
"options": [
] ,
"query": "label_values(kube_pod_info, cluster)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
2019-10-20 02:43:47 +02:00
"label": "node" ,
2019-04-07 08:27:11 +02:00
"multi": false ,
2019-10-20 02:43:47 +02:00
"name": "node" ,
2019-04-07 08:27:11 +02:00
"options": [
] ,
2019-10-20 02:43:47 +02:00
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, node)" ,
2019-04-07 08:27:11 +02:00
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"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": "" ,
2019-10-20 02:43:47 +02:00
"title": "Kubernetes / Compute Resources / Node (Pods)" ,
"uid": "200ac8fdbfbb74b39aff88118e4d1c2c" ,
2019-04-07 08:27:11 +02:00
"version": 0
}
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": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", cluster=\"$cluster\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-07-21 20:02:18 +02:00
"legendFormat": "{{container}}" ,
2019-04-07 08:27:11 +02:00
"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": "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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"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
},
{
2019-10-20 02:43:47 +02:00
"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)" ,
2019-04-07 08:27:11 +02:00
"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
},
{
2019-10-20 02:43:47 +02:00
"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)" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-07-21 20:02:18 +02:00
"expr": "sum(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-07-21 20:02:18 +02:00
"legendFormat": "{{container}} (RSS)" ,
2019-04-07 08:27:11 +02:00
"legendLink": null ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"expr": "sum(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-07-21 20:02:18 +02:00
"legendFormat": "{{container}} (Cache)" ,
2019-04-07 08:27:11 +02:00
"legendLink": null ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"expr": "sum(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
2019-07-21 20:02:18 +02:00
"legendFormat": "{{container}} (Swap)" ,
2019-04-07 08:27:11 +02: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 ,
"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": "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"
},
{
2019-10-20 02:43:47 +02:00
"alias": "Memory Usage (Swap)" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"POD\", container!=\"\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"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
},
{
2019-10-20 02:43:47 +02:00
"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)" ,
2019-04-07 08:27:11 +02:00
"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
},
{
2019-10-20 02:43:47 +02:00
"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)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"expr": "sum(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "F" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"expr": "sum(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "G" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"expr": "sum(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container != \"\", container != \"POD\"}) by (container)" ,
2019-04-07 08:27:11 +02:00
"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"
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
"text": "Prometheus" ,
"value": "Prometheus"
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 2 ,
"includeAll": false ,
"label": "cluster" ,
"multi": false ,
"name": "cluster" ,
"options": [
] ,
"query": "label_values(kube_pod_info, cluster)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
"label": "namespace" ,
"multi": false ,
"name": "namespace" ,
"options": [
] ,
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
"label": "pod" ,
"multi": false ,
"name": "pod" ,
"options": [
] ,
"query": "label_values(kube_pod_info{cluster=\"$cluster\", namespace=\"$namespace\"}, pod)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"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 / 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": [
{
2019-10-20 02:43:47 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"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" ,
2019-10-20 02:43:47 +02:00
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"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" ,
2019-10-20 02:43:47 +02:00
"linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell" ,
2019-04-07 08:27:11 +02:00
"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": [
{
2019-10-20 02:43:47 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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" ,
2019-04-07 08:27:11 +02:00
"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"
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
"text": "Prometheus" ,
"value": "Prometheus"
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 2 ,
"includeAll": false ,
"label": "cluster" ,
"multi": false ,
"name": "cluster" ,
"options": [
] ,
"query": "label_values(kube_pod_info, cluster)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
"label": "namespace" ,
"multi": false ,
"name": "namespace" ,
"options": [
] ,
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
"label": "workload" ,
"multi": false ,
"name": "workload" ,
"options": [
] ,
"query": "label_values(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}, workload)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
"label": "type" ,
"multi": false ,
"name": "type" ,
"options": [
] ,
"query": "label_values(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\", workload=\"$workload\"}, workload_type)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"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 / 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": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}} - {{workload_type}}" ,
"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": "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" ,
2019-10-20 02:43:47 +02:00
"linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$__cell_2" ,
2019-04-07 08:27:11 +02:00
"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\"}) by (workload, workload_type)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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\"}\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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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\"}\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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"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": [
] ,
"spaceLength": 10 ,
"span": 12 ,
"stack": true ,
"steppedLine": false ,
"targets": [
{
2019-10-20 02:43:47 +02:00
"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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "time_series" ,
"intervalFactor": 2 ,
"legendFormat": "{{workload}} - {{workload_type}}" ,
"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": "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" ,
2019-10-20 02:43:47 +02:00
"linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$__cell_2" ,
2019-04-07 08:27:11 +02:00
"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\"}) by (workload, workload_type)" ,
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "A" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "B" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "C" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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\"}\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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "D" ,
"step": 10
},
{
2019-07-21 20:02:18 +02:00
"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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"format": "table" ,
"instant": true ,
"intervalFactor": 2 ,
"legendFormat": "" ,
"refId": "E" ,
"step": 10
},
{
2019-10-20 02:43:47 +02:00
"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\"}\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\"}\n) by (workload, workload_type)\n" ,
2019-04-07 08:27:11 +02:00
"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"
}
] ,
"schemaVersion": 14 ,
"style": "dark" ,
"tags": [
"kubernetes-mixin"
] ,
"templating": {
"list": [
{
"current": {
"text": "Prometheus" ,
"value": "Prometheus"
},
"hide": 0 ,
"label": null ,
"name": "datasource" ,
"options": [
] ,
"query": "prometheus" ,
"refresh": 1 ,
"regex": "" ,
"type": "datasource"
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 2 ,
"includeAll": false ,
"label": "cluster" ,
"multi": false ,
"name": "cluster" ,
"options": [
] ,
"query": "label_values(kube_pod_info, cluster)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"tagValuesQuery": "" ,
"tags": [
] ,
"tagsQuery": "" ,
"type": "query" ,
"useTags": false
},
{
"allValue": null ,
"current": {
"text": "prod" ,
"value": "prod"
},
"datasource": "$datasource" ,
"hide": 0 ,
"includeAll": false ,
"label": "namespace" ,
"multi": false ,
"name": "namespace" ,
"options": [
] ,
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)" ,
"refresh": 1 ,
"regex": "" ,
"sort": 2 ,
"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
}
2019-10-20 02:43:47 +02:00
kind : ConfigMap
metadata :
name : grafana-dashboards-k8s-resources
namespace : monitoring