"expr":"sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\", pod=\"$pod\", cluster=\"$cluster\"}) by (container)",
"expr":"sum(increase(container_cpu_cfs_throttled_periods_total{namespace=\"$namespace\", pod=\"$pod\", container!=\"\", cluster=\"$cluster\"}[5m])) by (container) /sum(increase(container_cpu_cfs_periods_total{namespace=\"$namespace\", pod=\"$pod\", container!=\"\", cluster=\"$cluster\"}[5m])) by (container)",
"format":"time_series",
"intervalFactor":2,
"legendFormat":"{{container}}",
"legendLink":null,
"step":10
}
],
"thresholds":[
{
"colorMode":"critical",
"fill":true,
"line":true,
"op":"gt",
"value":0.25,
"yaxis":"left"
}
],
"timeFrom":null,
"timeShift":null,
"title":"CPU Throttling",
"tooltip":{
"shared":false,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"percentunit",
"label":null,
"logBase":1,
"max":1,
"min":0,
"show":true
},
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":false
}
]
}
],
"repeat":null,
"repeatIteration":null,
"repeatRowId":null,
"showTitle":true,
"title":"CPU Throttling",
"titleSize":"h6"
},
{
"collapse":false,
"height":"250px",
"panels":[
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":"$datasource",
"fill":1,
"id":3,
"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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":false,
"linkTooltip":"Drill down",
"linkUrl":"",
"pattern":"container",
"thresholds":[],
"type":"number",
"unit":"short"
},
{
"alias":"",
"colorMode":null,
"colors":[],
"dateFormat":"YYYY-MM-DD HH:mm:ss",
"decimals":2,
"pattern":"/.*/",
"thresholds":[],
"type":"string",
"unit":"short"
}
],
"targets":[
{
"expr":"sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"A",
"step":10
},
{
"expr":"sum(kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"cpu\"}) by (container)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"B",
"step":10
},
{
"expr":"sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"cpu\"}) by (container)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"C",
"step":10
},
{
"expr":"sum(kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"cpu\"}) by (container)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"D",
"step":10
},
{
"expr":"sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", resource=\"cpu\"}) by (container)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"E",
"step":10
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"CPU Quota",
"tooltip":{
"shared":false,
"sort":0,
"value_type":"individual"
},
"transform":"table",
"type":"table",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":0,
"show":true
},
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":false
}
]
}
],
"repeat":null,
"repeatIteration":null,
"repeatRowId":null,
"showTitle":true,
"title":"CPU Quota",
"titleSize":"h6"
},
{
"collapse":false,
"height":"250px",
"panels":[
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":"$datasource",
"fill":10,
"id":4,
"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":[
{
"alias":"requests",
"color":"#F2495C",
"dashes":true,
"fill":0,
"hideTooltip":true,
"legend":true,
"linewidth":2,
"stack":false
},
{
"alias":"limits",
"color":"#FF9830",
"dashes":true,
"fill":0,
"hideTooltip":true,
"legend":true,
"linewidth":2,
"stack":false
}
],
"spaceLength":10,
"span":12,
"stack":true,
"steppedLine":false,
"targets":[
{
"expr":"sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\", image!=\"\"}) by (container)",
"expr":"sum(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"format":"time_series",
"intervalFactor":2,
"legendFormat":"{{pod}}",
"legendLink":null,
"step":10
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"Receive Bandwidth",
"tooltip":{
"shared":false,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"Bps",
"label":null,
"logBase":1,
"max":null,
"min":0,
"show":true
},
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":false
}
]
},
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":"$datasource",
"fill":10,
"id":7,
"interval":"1m",
"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":6,
"stack":true,
"steppedLine":false,
"targets":[
{
"expr":"sum(irate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"format":"time_series",
"intervalFactor":2,
"legendFormat":"{{pod}}",
"legendLink":null,
"step":10
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"Transmit Bandwidth",
"tooltip":{
"shared":false,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"Bps",
"label":null,
"logBase":1,
"max":null,
"min":0,
"show":true
},
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":false
}
]
}
],
"repeat":null,
"repeatIteration":null,
"repeatRowId":null,
"showTitle":true,
"title":"Bandwidth",
"titleSize":"h6"
},
{
"collapse":false,
"height":"250px",
"panels":[
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":"$datasource",
"fill":10,
"id":8,
"interval":"1m",
"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":6,
"stack":true,
"steppedLine":false,
"targets":[
{
"expr":"sum(irate(container_network_receive_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"format":"time_series",
"intervalFactor":2,
"legendFormat":"{{pod}}",
"legendLink":null,
"step":10
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"Rate of Received Packets",
"tooltip":{
"shared":false,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"Bps",
"label":null,
"logBase":1,
"max":null,
"min":0,
"show":true
},
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":false
}
]
},
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":"$datasource",
"fill":10,
"id":9,
"interval":"1m",
"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":6,
"stack":true,
"steppedLine":false,
"targets":[
{
"expr":"sum(irate(container_network_transmit_packets_total{cluster=\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"format":"time_series",
"intervalFactor":2,
"legendFormat":"{{pod}}",
"legendLink":null,
"step":10
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"Rate of Transmitted Packets",
"tooltip":{
"shared":false,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"Bps",
"label":null,
"logBase":1,
"max":null,
"min":0,
"show":true
},
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":false
}
]
}
],
"repeat":null,
"repeatIteration":null,
"repeatRowId":null,
"showTitle":true,
"title":"Rate of Packets",
"titleSize":"h6"
},
{
"collapse":false,
"height":"250px",
"panels":[
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":"$datasource",
"fill":10,
"id":10,
"interval":"1m",
"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":6,
"stack":true,
"steppedLine":false,
"targets":[
{
"expr":"sum(irate(container_network_receive_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",
"format":"time_series",
"intervalFactor":2,
"legendFormat":"{{pod}}",
"legendLink":null,
"step":10
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"Rate of Received Packets Dropped",
"tooltip":{
"shared":false,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"Bps",
"label":null,
"logBase":1,
"max":null,
"min":0,
"show":true
},
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":false
}
]
},
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":"$datasource",
"fill":10,
"id":11,
"interval":"1m",
"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":6,
"stack":true,
"steppedLine":false,
"targets":[
{
"expr":"sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)",