"expr":"sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", node=~\"$node\"}) by (pod) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", node=~\"$node\", resource=\"cpu\"}) by (pod)",
"expr":"sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=\"$cluster\", node=~\"$node\"}) by (pod) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", node=~\"$node\", resource=\"cpu\"}) by (pod)",
"expr":"sum(node_namespace_pod_container:container_memory_working_set_bytes{cluster=\"$cluster\", node=~\"$node\", container!=\"\"}) by (pod)",
"format":"time_series",
"intervalFactor":2,
"legendFormat":"{{pod}}",
"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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":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,
"linkTargetBlank":false,
"linkTooltip":"Drill down",
"linkUrl":"",
"pattern":"Value #G",
"thresholds":[],
"type":"number",
"unit":"bytes"
},
{
"alias":"Memory Usage (Swap)",
"colorMode":null,
"colors":[],
"dateFormat":"YYYY-MM-DD HH:mm:ss",
"decimals":2,
"link":false,
"linkTargetBlank":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,
"link":false,
"linkTargetBlank":false,
"linkTooltip":"Drill down",
"linkUrl":"",
"pattern":"pod",
"thresholds":[],
"type":"number",
"unit":"short"
},
{
"alias":"",
"colorMode":null,
"colors":[],
"dateFormat":"YYYY-MM-DD HH:mm:ss",
"decimals":2,
"pattern":"/.*/",
"thresholds":[],
"type":"string",
"unit":"short"
}
],
"targets":[
{
"expr":"sum(node_namespace_pod_container:container_memory_working_set_bytes{cluster=\"$cluster\", node=~\"$node\",container!=\"\"}) by (pod)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"A",
"step":10
},
{
"expr":"sum(kube_pod_container_resource_requests{cluster=\"$cluster\", node=~\"$node\", resource=\"memory\"}) by (pod)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"B",
"step":10
},
{
"expr":"sum(node_namespace_pod_container:container_memory_working_set_bytes{cluster=\"$cluster\", node=~\"$node\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", node=~\"$node\", resource=\"memory\"}) by (pod)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"C",
"step":10
},
{
"expr":"sum(kube_pod_container_resource_limits{cluster=\"$cluster\", node=~\"$node\", resource=\"memory\"}) by (pod)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"D",
"step":10
},
{
"expr":"sum(node_namespace_pod_container:container_memory_working_set_bytes{cluster=\"$cluster\", node=~\"$node\",container!=\"\"}) by (pod) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", node=~\"$node\", resource=\"memory\"}) by (pod)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"E",
"step":10
},
{
"expr":"sum(node_namespace_pod_container:container_memory_rss{cluster=\"$cluster\", node=~\"$node\",container!=\"\"}) by (pod)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"F",
"step":10
},
{
"expr":"sum(node_namespace_pod_container:container_memory_cache{cluster=\"$cluster\", node=~\"$node\",container!=\"\"}) by (pod)",
"format":"table",
"instant":true,
"intervalFactor":2,
"legendFormat":"",
"refId":"G",
"step":10
},
{
"expr":"sum(node_namespace_pod_container:container_memory_swap{cluster=\"$cluster\", node=~\"$node\",container!=\"\"}) by (pod)",