1371 lines
25 KiB
JSON
1371 lines
25 KiB
JSON
{
|
|
"annotations":{
|
|
"list":[
|
|
{
|
|
"builtIn":1,
|
|
"datasource":"-- Grafana --",
|
|
"enable":true,
|
|
"hide":true,
|
|
"iconColor":"rgba(0, 211, 255, 1)",
|
|
"name":"Annotations & Alerts",
|
|
"type":"dashboard"
|
|
}
|
|
]
|
|
},
|
|
"editable":true,
|
|
"gnetId":null,
|
|
"graphTooltip":0,
|
|
"id":6,
|
|
"iteration":1557245882378,
|
|
"links":[
|
|
|
|
],
|
|
"panels":[
|
|
{
|
|
"cacheTimeout":null,
|
|
"colorBackground":false,
|
|
"colorValue":false,
|
|
"colors":[
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource":"default-kubecost",
|
|
"format":"percentunit",
|
|
"gauge":{
|
|
"maxValue":100,
|
|
"minValue":0,
|
|
"show":true,
|
|
"thresholdLabels":false,
|
|
"thresholdMarkers":true
|
|
},
|
|
"gridPos":{
|
|
"h":7,
|
|
"w":8,
|
|
"x":0,
|
|
"y":0
|
|
},
|
|
"id":2,
|
|
"interval":null,
|
|
"links":[
|
|
|
|
],
|
|
"mappingType":1,
|
|
"mappingTypes":[
|
|
{
|
|
"name":"value to text",
|
|
"value":1
|
|
},
|
|
{
|
|
"name":"range to text",
|
|
"value":2
|
|
}
|
|
],
|
|
"maxDataPoints":100,
|
|
"nullPointMode":"connected",
|
|
"nullText":null,
|
|
"postfix":"",
|
|
"postfixFontSize":"50%",
|
|
"prefix":"",
|
|
"prefixFontSize":"50%",
|
|
"rangeMaps":[
|
|
{
|
|
"from":"null",
|
|
"text":"N/A",
|
|
"to":"null"
|
|
}
|
|
],
|
|
"sparkline":{
|
|
"fillColor":"rgba(31, 118, 189, 0.18)",
|
|
"full":false,
|
|
"lineColor":"rgb(31, 120, 193)",
|
|
"show":false
|
|
},
|
|
"tableColumn":"",
|
|
"targets":[
|
|
{
|
|
"expr":"sum(irate(container_cpu_usage_seconds_total{id=\"/\",instance=\"$node\"}[10m]))",
|
|
"format":"time_series",
|
|
"intervalFactor":1,
|
|
"refId":"A"
|
|
}
|
|
],
|
|
"thresholds":"",
|
|
"title":"CPU Usage",
|
|
"type":"singlestat",
|
|
"valueFontSize":"80%",
|
|
"valueMaps":[
|
|
{
|
|
"op":"=",
|
|
"text":"N/A",
|
|
"value":"null"
|
|
}
|
|
],
|
|
"valueName":"avg"
|
|
},
|
|
{
|
|
"cacheTimeout":null,
|
|
"colorBackground":false,
|
|
"colorValue":false,
|
|
"colors":[
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource":"default-kubecost",
|
|
"format":"percentunit",
|
|
"gauge":{
|
|
"maxValue":100,
|
|
"minValue":0,
|
|
"show":true,
|
|
"thresholdLabels":false,
|
|
"thresholdMarkers":true
|
|
},
|
|
"gridPos":{
|
|
"h":7,
|
|
"w":8,
|
|
"x":8,
|
|
"y":0
|
|
},
|
|
"id":3,
|
|
"interval":null,
|
|
"links":[
|
|
|
|
],
|
|
"mappingType":1,
|
|
"mappingTypes":[
|
|
{
|
|
"name":"value to text",
|
|
"value":1
|
|
},
|
|
{
|
|
"name":"range to text",
|
|
"value":2
|
|
}
|
|
],
|
|
"maxDataPoints":100,
|
|
"nullPointMode":"connected",
|
|
"nullText":null,
|
|
"postfix":"",
|
|
"postfixFontSize":"50%",
|
|
"prefix":"",
|
|
"prefixFontSize":"50%",
|
|
"rangeMaps":[
|
|
{
|
|
"from":"null",
|
|
"text":"N/A",
|
|
"to":"null"
|
|
}
|
|
],
|
|
"sparkline":{
|
|
"fillColor":"rgba(31, 118, 189, 0.18)",
|
|
"full":false,
|
|
"lineColor":"rgb(31, 120, 193)",
|
|
"show":false
|
|
},
|
|
"tableColumn":"",
|
|
"targets":[
|
|
{
|
|
"expr":"SUM(container_memory_usage_bytes{namespace!=\"\",instance=\"$node\"}) / SUM(kube_node_status_capacity_memory_bytes{node=\"$node\"})",
|
|
"format":"time_series",
|
|
"intervalFactor":1,
|
|
"refId":"A"
|
|
}
|
|
],
|
|
"thresholds":"",
|
|
"title":"Memory Usage",
|
|
"type":"singlestat",
|
|
"valueFontSize":"80%",
|
|
"valueMaps":[
|
|
{
|
|
"op":"=",
|
|
"text":"N/A",
|
|
"value":"null"
|
|
}
|
|
],
|
|
"valueName":"avg"
|
|
},
|
|
{
|
|
"cacheTimeout":null,
|
|
"colorBackground":false,
|
|
"colorValue":false,
|
|
"colors":[
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource":"default-kubecost",
|
|
"format":"percentunit",
|
|
"gauge":{
|
|
"maxValue":100,
|
|
"minValue":0,
|
|
"show":true,
|
|
"thresholdLabels":false,
|
|
"thresholdMarkers":true
|
|
},
|
|
"gridPos":{
|
|
"h":7,
|
|
"w":8,
|
|
"x":16,
|
|
"y":0
|
|
},
|
|
"id":4,
|
|
"interval":null,
|
|
"links":[
|
|
|
|
],
|
|
"mappingType":1,
|
|
"mappingTypes":[
|
|
{
|
|
"name":"value to text",
|
|
"value":1
|
|
},
|
|
{
|
|
"name":"range to text",
|
|
"value":2
|
|
}
|
|
],
|
|
"maxDataPoints":100,
|
|
"nullPointMode":"connected",
|
|
"nullText":null,
|
|
"postfix":"",
|
|
"postfixFontSize":"50%",
|
|
"prefix":"",
|
|
"prefixFontSize":"50%",
|
|
"rangeMaps":[
|
|
{
|
|
"from":"null",
|
|
"text":"N/A",
|
|
"to":"null"
|
|
}
|
|
],
|
|
"sparkline":{
|
|
"fillColor":"rgba(31, 118, 189, 0.18)",
|
|
"full":false,
|
|
"lineColor":"rgb(31, 120, 193)",
|
|
"show":false
|
|
},
|
|
"tableColumn":"",
|
|
"targets":[
|
|
{
|
|
"expr":"sum(container_fs_usage_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$\",id=\"/\",instance=\"$node\"}) /\nsum(container_fs_limit_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$\",id=\"/\",instance=\"$node\"})",
|
|
"format":"time_series",
|
|
"intervalFactor":1,
|
|
"refId":"A"
|
|
}
|
|
],
|
|
"thresholds":"",
|
|
"title":"Storage Usage",
|
|
"type":"singlestat",
|
|
"valueFontSize":"80%",
|
|
"valueMaps":[
|
|
{
|
|
"op":"=",
|
|
"text":"N/A",
|
|
"value":"null"
|
|
}
|
|
],
|
|
"valueName":"avg"
|
|
},
|
|
{
|
|
"columns":[
|
|
{
|
|
"text":"Avg",
|
|
"value":"avg"
|
|
}
|
|
],
|
|
"datasource":"default-kubecost",
|
|
"fontSize":"100%",
|
|
"gridPos":{
|
|
"h":8,
|
|
"w":16,
|
|
"x":0,
|
|
"y":7
|
|
},
|
|
"hideTimeOverride":true,
|
|
"id":21,
|
|
"links":[
|
|
|
|
],
|
|
"pageSize":8,
|
|
"repeat":null,
|
|
"repeatDirection":"v",
|
|
"scroll":true,
|
|
"showHeader":true,
|
|
"sort":{
|
|
"col":4,
|
|
"desc":true
|
|
},
|
|
"styles":[
|
|
{
|
|
"alias":"Pod",
|
|
"colorMode":null,
|
|
"colors":[
|
|
"rgba(245, 54, 54, 0.9)",
|
|
"rgba(50, 172, 45, 0.97)",
|
|
"#c15c17"
|
|
],
|
|
"dateFormat":"YYYY-MM-DD HH:mm:ss",
|
|
"decimals":2,
|
|
"link":false,
|
|
"linkTooltip":"",
|
|
"linkUrl":"",
|
|
"pattern":"pod_name",
|
|
"thresholds":[
|
|
"30",
|
|
"80"
|
|
],
|
|
"type":"string",
|
|
"unit":"currencyUSD"
|
|
},
|
|
{
|
|
"alias":"",
|
|
"colorMode":null,
|
|
"colors":[
|
|
"rgba(245, 54, 54, 0.9)",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"rgba(50, 172, 45, 0.97)"
|
|
],
|
|
"dateFormat":"YYYY-MM-DD HH:mm:ss",
|
|
"decimals":2,
|
|
"mappingType":1,
|
|
"pattern":"Time",
|
|
"thresholds":[
|
|
|
|
],
|
|
"type":"hidden",
|
|
"unit":"short"
|
|
},
|
|
{
|
|
"alias":"CPU Usage",
|
|
"colorMode":null,
|
|
"colors":[
|
|
"rgba(245, 54, 54, 0.9)",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"rgba(50, 172, 45, 0.97)"
|
|
],
|
|
"dateFormat":"YYYY-MM-DD HH:mm:ss",
|
|
"decimals":2,
|
|
"mappingType":1,
|
|
"pattern":"Value #C",
|
|
"thresholds":[
|
|
|
|
],
|
|
"type":"number",
|
|
"unit":"short"
|
|
},
|
|
{
|
|
"alias":"CPU Request",
|
|
"colorMode":null,
|
|
"colors":[
|
|
"rgba(245, 54, 54, 0.9)",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"rgba(50, 172, 45, 0.97)"
|
|
],
|
|
"dateFormat":"YYYY-MM-DD HH:mm:ss",
|
|
"decimals":2,
|
|
"mappingType":1,
|
|
"pattern":"Value #A",
|
|
"thresholds":[
|
|
|
|
],
|
|
"type":"number",
|
|
"unit":"short"
|
|
},
|
|
{
|
|
"alias":"CPU Limit",
|
|
"colorMode":null,
|
|
"colors":[
|
|
"rgba(245, 54, 54, 0.9)",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"rgba(50, 172, 45, 0.97)"
|
|
],
|
|
"dateFormat":"YYYY-MM-DD HH:mm:ss",
|
|
"decimals":2,
|
|
"mappingType":1,
|
|
"pattern":"Value #B",
|
|
"thresholds":[
|
|
|
|
],
|
|
"type":"number",
|
|
"unit":"short"
|
|
},
|
|
{
|
|
"alias":"Mem Usage",
|
|
"colorMode":null,
|
|
"colors":[
|
|
"rgba(245, 54, 54, 0.9)",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"rgba(50, 172, 45, 0.97)"
|
|
],
|
|
"dateFormat":"YYYY-MM-DD HH:mm:ss",
|
|
"decimals":2,
|
|
"mappingType":1,
|
|
"pattern":"Value #D",
|
|
"thresholds":[
|
|
|
|
],
|
|
"type":"number",
|
|
"unit":"bytes"
|
|
},
|
|
{
|
|
"alias":"Mem Request",
|
|
"colorMode":null,
|
|
"colors":[
|
|
"rgba(245, 54, 54, 0.9)",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"rgba(50, 172, 45, 0.97)"
|
|
],
|
|
"dateFormat":"YYYY-MM-DD HH:mm:ss",
|
|
"decimals":2,
|
|
"mappingType":1,
|
|
"pattern":"Value #E",
|
|
"thresholds":[
|
|
|
|
],
|
|
"type":"number",
|
|
"unit":"bytes"
|
|
},
|
|
{
|
|
"alias":"Mem Limit",
|
|
"colorMode":null,
|
|
"colors":[
|
|
"rgba(245, 54, 54, 0.9)",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"rgba(50, 172, 45, 0.97)"
|
|
],
|
|
"dateFormat":"YYYY-MM-DD HH:mm:ss",
|
|
"decimals":2,
|
|
"mappingType":1,
|
|
"pattern":"Value #F",
|
|
"thresholds":[
|
|
|
|
],
|
|
"type":"number",
|
|
"unit":"bytes"
|
|
}
|
|
],
|
|
"targets":[
|
|
{
|
|
"expr":"sum(rate(container_cpu_usage_seconds_total{container_name!=\"\",container_name!=\"POD\",pod_name!=\"\",instance=\"$node\"}[24h])) by (pod_name)",
|
|
"format":"table",
|
|
"instant":true,
|
|
"intervalFactor":1,
|
|
"refId":"C"
|
|
},
|
|
{
|
|
"expr":"sum(label_replace(\nsum(avg_over_time(kube_pod_container_resource_requests_cpu_cores{container!=\"\",container!=\"POD\",node=\"$node\"}[24h])) by (pod), \n\"pod_name\",\"$1\",\"pod\",\"(.+)\")\nor up * 0\n) by (pod_name)",
|
|
"format":"table",
|
|
"instant":true,
|
|
"intervalFactor":1,
|
|
"refId":"A"
|
|
},
|
|
{
|
|
"expr":"sum(avg_over_time(container_memory_usage_bytes{container_name!=\"\",container_name!=\"POD\",pod_name!=\"\",instance=\"$node\"}[24h])) by (pod_name)\n",
|
|
"format":"table",
|
|
"instant":true,
|
|
"intervalFactor":1,
|
|
"refId":"D"
|
|
},
|
|
{
|
|
"expr":"sum(label_replace(label_replace(\nsum(avg_over_time(kube_pod_container_resource_requests_memory_bytes{container!=\"\",container!=\"POD\",node=\"$node\"}[24h])) by (pod),\n\"container_name\",\"$1\",\"container\",\"(.+)\"), \"pod_name\",\"$1\",\"pod\",\"(.+)\")\nor up * 0\n) by (pod_name)\n",
|
|
"format":"table",
|
|
"instant":true,
|
|
"intervalFactor":1,
|
|
"refId":"E"
|
|
}
|
|
],
|
|
"timeFrom":"1M",
|
|
"timeShift":null,
|
|
"title":"Current pods",
|
|
"transform":"table",
|
|
"transparent":false,
|
|
"type":"table"
|
|
},
|
|
{
|
|
"cacheTimeout":null,
|
|
"colorBackground":false,
|
|
"colorValue":false,
|
|
"colors":[
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource":"default-kubecost",
|
|
"decimals":0,
|
|
"format":"none",
|
|
"gauge":{
|
|
"maxValue":100,
|
|
"minValue":0,
|
|
"show":false,
|
|
"thresholdLabels":false,
|
|
"thresholdMarkers":true
|
|
},
|
|
"gridPos":{
|
|
"h":4,
|
|
"w":4,
|
|
"x":16,
|
|
"y":7
|
|
},
|
|
"id":8,
|
|
"interval":null,
|
|
"links":[
|
|
|
|
],
|
|
"mappingType":1,
|
|
"mappingTypes":[
|
|
{
|
|
"name":"value to text",
|
|
"value":1
|
|
},
|
|
{
|
|
"name":"range to text",
|
|
"value":2
|
|
}
|
|
],
|
|
"maxDataPoints":100,
|
|
"nullPointMode":"connected",
|
|
"nullText":null,
|
|
"postfix":"",
|
|
"postfixFontSize":"50%",
|
|
"prefix":"",
|
|
"prefixFontSize":"50%",
|
|
"rangeMaps":[
|
|
{
|
|
"from":"null",
|
|
"text":"N/A",
|
|
"to":"null"
|
|
}
|
|
],
|
|
"sparkline":{
|
|
"fillColor":"rgba(31, 118, 189, 0.18)",
|
|
"full":false,
|
|
"lineColor":"rgb(31, 120, 193)",
|
|
"show":false
|
|
},
|
|
"tableColumn":"",
|
|
"targets":[
|
|
{
|
|
"expr":"sum(\n count(avg_over_time(kube_pod_container_resource_requests_cpu_cores{container!=\"\",container!=\"POD\",node=\"$node\"}[24h])) by (pod)\n * on (pod) group_right()\n sum(kube_pod_container_status_running) by (pod)\n)",
|
|
"format":"time_series",
|
|
"instant":true,
|
|
"intervalFactor":1,
|
|
"refId":"A"
|
|
}
|
|
],
|
|
"thresholds":"",
|
|
"title":"Pods Running",
|
|
"type":"singlestat",
|
|
"valueFontSize":"80%",
|
|
"valueMaps":[
|
|
{
|
|
"op":"=",
|
|
"text":"N/A",
|
|
"value":"null"
|
|
}
|
|
],
|
|
"valueName":"current"
|
|
},
|
|
{
|
|
"cacheTimeout":null,
|
|
"colorBackground":false,
|
|
"colorValue":false,
|
|
"colors":[
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource":"default-kubecost",
|
|
"format":"bytes",
|
|
"gauge":{
|
|
"maxValue":100,
|
|
"minValue":0,
|
|
"show":false,
|
|
"thresholdLabels":false,
|
|
"thresholdMarkers":true
|
|
},
|
|
"gridPos":{
|
|
"h":4,
|
|
"w":4,
|
|
"x":20,
|
|
"y":7
|
|
},
|
|
"id":18,
|
|
"interval":null,
|
|
"links":[
|
|
|
|
],
|
|
"mappingType":1,
|
|
"mappingTypes":[
|
|
{
|
|
"name":"value to text",
|
|
"value":1
|
|
},
|
|
{
|
|
"name":"range to text",
|
|
"value":2
|
|
}
|
|
],
|
|
"maxDataPoints":100,
|
|
"nullPointMode":"connected",
|
|
"nullText":null,
|
|
"postfix":"",
|
|
"postfixFontSize":"50%",
|
|
"prefix":"",
|
|
"prefixFontSize":"50%",
|
|
"rangeMaps":[
|
|
{
|
|
"from":"null",
|
|
"text":"N/A",
|
|
"to":"null"
|
|
}
|
|
],
|
|
"sparkline":{
|
|
"fillColor":"rgba(31, 118, 189, 0.18)",
|
|
"full":false,
|
|
"lineColor":"rgb(31, 120, 193)",
|
|
"show":false
|
|
},
|
|
"tableColumn":"",
|
|
"targets":[
|
|
{
|
|
"expr":"sum(container_fs_limit_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$\",id=\"/\",instance=\"$node\"})",
|
|
"format":"time_series",
|
|
"intervalFactor":1,
|
|
"refId":"A"
|
|
}
|
|
],
|
|
"thresholds":"",
|
|
"title":"Storage Capacity",
|
|
"type":"singlestat",
|
|
"valueFontSize":"80%",
|
|
"valueMaps":[
|
|
{
|
|
"op":"=",
|
|
"text":"N/A",
|
|
"value":"null"
|
|
}
|
|
],
|
|
"valueName":"current"
|
|
},
|
|
{
|
|
"cacheTimeout":null,
|
|
"colorBackground":false,
|
|
"colorValue":false,
|
|
"colors":[
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource":"default-kubecost",
|
|
"format":"none",
|
|
"gauge":{
|
|
"maxValue":100,
|
|
"minValue":0,
|
|
"show":false,
|
|
"thresholdLabels":false,
|
|
"thresholdMarkers":true
|
|
},
|
|
"gridPos":{
|
|
"h":4,
|
|
"w":4,
|
|
"x":16,
|
|
"y":11
|
|
},
|
|
"id":9,
|
|
"interval":null,
|
|
"links":[
|
|
|
|
],
|
|
"mappingType":1,
|
|
"mappingTypes":[
|
|
{
|
|
"name":"value to text",
|
|
"value":1
|
|
},
|
|
{
|
|
"name":"range to text",
|
|
"value":2
|
|
}
|
|
],
|
|
"maxDataPoints":100,
|
|
"nullPointMode":"connected",
|
|
"nullText":null,
|
|
"postfix":"",
|
|
"postfixFontSize":"50%",
|
|
"prefix":"",
|
|
"prefixFontSize":"50%",
|
|
"rangeMaps":[
|
|
{
|
|
"from":"null",
|
|
"text":"N/A",
|
|
"to":"null"
|
|
}
|
|
],
|
|
"sparkline":{
|
|
"fillColor":"rgba(31, 118, 189, 0.18)",
|
|
"full":false,
|
|
"lineColor":"rgb(31, 120, 193)",
|
|
"show":false
|
|
},
|
|
"tableColumn":"",
|
|
"targets":[
|
|
{
|
|
"expr":"kube_node_status_capacity_cpu_cores{node=\"$node\"}",
|
|
"format":"time_series",
|
|
"intervalFactor":1,
|
|
"refId":"A"
|
|
}
|
|
],
|
|
"thresholds":"",
|
|
"title":"CPU Capacity",
|
|
"type":"singlestat",
|
|
"valueFontSize":"80%",
|
|
"valueMaps":[
|
|
{
|
|
"op":"=",
|
|
"text":"N/A",
|
|
"value":"null"
|
|
}
|
|
],
|
|
"valueName":"avg"
|
|
},
|
|
{
|
|
"cacheTimeout":null,
|
|
"colorBackground":false,
|
|
"colorValue":false,
|
|
"colors":[
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource":"default-kubecost",
|
|
"format":"bytes",
|
|
"gauge":{
|
|
"maxValue":100,
|
|
"minValue":0,
|
|
"show":false,
|
|
"thresholdLabels":false,
|
|
"thresholdMarkers":true
|
|
},
|
|
"gridPos":{
|
|
"h":4,
|
|
"w":4,
|
|
"x":20,
|
|
"y":11
|
|
},
|
|
"id":19,
|
|
"interval":null,
|
|
"links":[
|
|
|
|
],
|
|
"mappingType":1,
|
|
"mappingTypes":[
|
|
{
|
|
"name":"value to text",
|
|
"value":1
|
|
},
|
|
{
|
|
"name":"range to text",
|
|
"value":2
|
|
}
|
|
],
|
|
"maxDataPoints":100,
|
|
"nullPointMode":"connected",
|
|
"nullText":null,
|
|
"postfix":"",
|
|
"postfixFontSize":"50%",
|
|
"prefix":"",
|
|
"prefixFontSize":"50%",
|
|
"rangeMaps":[
|
|
{
|
|
"from":"null",
|
|
"text":"N/A",
|
|
"to":"null"
|
|
}
|
|
],
|
|
"sparkline":{
|
|
"fillColor":"rgba(31, 118, 189, 0.18)",
|
|
"full":false,
|
|
"lineColor":"rgb(31, 120, 193)",
|
|
"show":false
|
|
},
|
|
"tableColumn":"",
|
|
"targets":[
|
|
{
|
|
"expr":"kube_node_status_capacity_memory_bytes{node=\"$node\"}",
|
|
"format":"time_series",
|
|
"intervalFactor":1,
|
|
"refId":"A"
|
|
}
|
|
],
|
|
"thresholds":"",
|
|
"title":"RAM Capacity",
|
|
"type":"singlestat",
|
|
"valueFontSize":"80%",
|
|
"valueMaps":[
|
|
{
|
|
"op":"=",
|
|
"text":"N/A",
|
|
"value":"null"
|
|
}
|
|
],
|
|
"valueName":"current"
|
|
},
|
|
{
|
|
"aliasColors":{
|
|
|
|
},
|
|
"bars":false,
|
|
"dashLength":10,
|
|
"dashes":false,
|
|
"datasource":"default-kubecost",
|
|
"decimals":3,
|
|
"description":"This panel shows historical utilization for the node.",
|
|
"editable":true,
|
|
"error":false,
|
|
"fill":0,
|
|
"grid":{
|
|
|
|
},
|
|
"gridPos":{
|
|
"h":6,
|
|
"w":12,
|
|
"x":0,
|
|
"y":15
|
|
},
|
|
"height":"",
|
|
"id":11,
|
|
"isNew":true,
|
|
"legend":{
|
|
"alignAsTable":false,
|
|
"avg":false,
|
|
"current":false,
|
|
"hideEmpty":false,
|
|
"hideZero":false,
|
|
"max":false,
|
|
"min":false,
|
|
"rightSide":false,
|
|
"show":false,
|
|
"sideWidth":null,
|
|
"sort":"current",
|
|
"sortDesc":true,
|
|
"total":false,
|
|
"values":true
|
|
},
|
|
"lines":true,
|
|
"linewidth":2,
|
|
"links":[
|
|
|
|
],
|
|
"nullPointMode":"connected",
|
|
"percentage":false,
|
|
"pointradius":5,
|
|
"points":false,
|
|
"renderer":"flot",
|
|
"seriesOverrides":[
|
|
|
|
],
|
|
"spaceLength":10,
|
|
"stack":false,
|
|
"steppedLine":true,
|
|
"targets":[
|
|
{
|
|
"expr":"sum(irate(container_cpu_usage_seconds_total{id=\"/\",instance=\"$node\"}[10m]))",
|
|
"format":"time_series",
|
|
"hide":false,
|
|
"instant":false,
|
|
"interval":"10s",
|
|
"intervalFactor":1,
|
|
"legendFormat":"cpu utilization",
|
|
"metric":"container_cpu",
|
|
"refId":"A",
|
|
"step":10
|
|
}
|
|
],
|
|
"thresholds":[
|
|
|
|
],
|
|
"timeFrom":"",
|
|
"timeShift":null,
|
|
"title":"CPU Utilization",
|
|
"tooltip":{
|
|
"msResolution":true,
|
|
"shared":true,
|
|
"sort":2,
|
|
"value_type":"cumulative"
|
|
},
|
|
"type":"graph",
|
|
"xaxis":{
|
|
"buckets":null,
|
|
"mode":"time",
|
|
"name":null,
|
|
"show":true,
|
|
"values":[
|
|
|
|
]
|
|
},
|
|
"yaxes":[
|
|
{
|
|
"decimals":null,
|
|
"format":"percentunit",
|
|
"label":"",
|
|
"logBase":1,
|
|
"max":"1.1",
|
|
"min":"0",
|
|
"show":true
|
|
},
|
|
{
|
|
"format":"short",
|
|
"label":null,
|
|
"logBase":1,
|
|
"max":null,
|
|
"min":null,
|
|
"show":false
|
|
}
|
|
],
|
|
"yaxis":{
|
|
"align":false,
|
|
"alignLevel":null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors":{
|
|
|
|
},
|
|
"bars":false,
|
|
"dashLength":10,
|
|
"dashes":false,
|
|
"datasource":"default-kubecost",
|
|
"decimals":2,
|
|
"description":"This panel shows historical utilization for the node.",
|
|
"editable":true,
|
|
"error":false,
|
|
"fill":0,
|
|
"grid":{
|
|
|
|
},
|
|
"gridPos":{
|
|
"h":6,
|
|
"w":12,
|
|
"x":12,
|
|
"y":15
|
|
},
|
|
"id":13,
|
|
"isNew":true,
|
|
"legend":{
|
|
"alignAsTable":false,
|
|
"avg":false,
|
|
"current":false,
|
|
"max":false,
|
|
"min":false,
|
|
"rightSide":false,
|
|
"show":false,
|
|
"sideWidth":200,
|
|
"sort":"current",
|
|
"sortDesc":true,
|
|
"total":false,
|
|
"values":true
|
|
},
|
|
"lines":true,
|
|
"linewidth":2,
|
|
"links":[
|
|
|
|
],
|
|
"nullPointMode":"connected",
|
|
"percentage":false,
|
|
"pointradius":5,
|
|
"points":false,
|
|
"renderer":"flot",
|
|
"seriesOverrides":[
|
|
|
|
],
|
|
"spaceLength":10,
|
|
"stack":false,
|
|
"steppedLine":true,
|
|
"targets":[
|
|
{
|
|
"expr":"SUM(container_memory_usage_bytes{namespace!=\"\",instance=\"$node\"}) / SUM(kube_node_status_capacity_memory_bytes{node=\"$node\"})",
|
|
"format":"time_series",
|
|
"instant":false,
|
|
"interval":"10s",
|
|
"intervalFactor":1,
|
|
"legendFormat":"ram utilization",
|
|
"metric":"container_memory_usage:sort_desc",
|
|
"refId":"A",
|
|
"step":10
|
|
}
|
|
],
|
|
"thresholds":[
|
|
|
|
],
|
|
"timeFrom":"",
|
|
"timeShift":null,
|
|
"title":"RAM Utilization",
|
|
"tooltip":{
|
|
"msResolution":false,
|
|
"shared":true,
|
|
"sort":2,
|
|
"value_type":"cumulative"
|
|
},
|
|
"type":"graph",
|
|
"xaxis":{
|
|
"buckets":null,
|
|
"mode":"time",
|
|
"name":null,
|
|
"show":true,
|
|
"values":[
|
|
|
|
]
|
|
},
|
|
"yaxes":[
|
|
{
|
|
"decimals":null,
|
|
"format":"percentunit",
|
|
"label":null,
|
|
"logBase":1,
|
|
"max":"1.1",
|
|
"min":"0",
|
|
"show":true
|
|
},
|
|
{
|
|
"format":"short",
|
|
"label":null,
|
|
"logBase":1,
|
|
"max":null,
|
|
"min":null,
|
|
"show":false
|
|
}
|
|
],
|
|
"yaxis":{
|
|
"align":false,
|
|
"alignLevel":null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors":{
|
|
|
|
},
|
|
"bars":false,
|
|
"dashLength":10,
|
|
"dashes":false,
|
|
"datasource":"default-kubecost",
|
|
"decimals":2,
|
|
"description":"Traffic in and out of this namespace, as a sum of the pods within it",
|
|
"editable":true,
|
|
"error":false,
|
|
"fill":1,
|
|
"grid":{
|
|
|
|
},
|
|
"gridPos":{
|
|
"h":6,
|
|
"w":12,
|
|
"x":0,
|
|
"y":21
|
|
},
|
|
"height":"",
|
|
"id":15,
|
|
"isNew":true,
|
|
"legend":{
|
|
"alignAsTable":false,
|
|
"avg":true,
|
|
"current":true,
|
|
"hideEmpty":false,
|
|
"hideZero":false,
|
|
"max":false,
|
|
"min":false,
|
|
"rightSide":false,
|
|
"show":true,
|
|
"sideWidth":null,
|
|
"sort":"current",
|
|
"sortDesc":true,
|
|
"total":false,
|
|
"values":true
|
|
},
|
|
"lines":true,
|
|
"linewidth":2,
|
|
"links":[
|
|
|
|
],
|
|
"nullPointMode":"connected",
|
|
"percentage":false,
|
|
"pointradius":5,
|
|
"points":false,
|
|
"renderer":"flot",
|
|
"seriesOverrides":[
|
|
|
|
],
|
|
"spaceLength":10,
|
|
"stack":false,
|
|
"steppedLine":false,
|
|
"targets":[
|
|
{
|
|
"expr":"sum (rate (container_network_receive_bytes_total{instance=\"$node\"}[10m]))",
|
|
"format":"time_series",
|
|
"hide":false,
|
|
"instant":false,
|
|
"interval":"",
|
|
"intervalFactor":1,
|
|
"legendFormat":"<- in",
|
|
"metric":"container_cpu",
|
|
"refId":"A",
|
|
"step":10
|
|
},
|
|
{
|
|
"expr":"- sum (rate (container_network_transmit_bytes_total{instance=\"$node\"}[10m]))",
|
|
"format":"time_series",
|
|
"hide":false,
|
|
"instant":false,
|
|
"interval":"",
|
|
"intervalFactor":1,
|
|
"legendFormat":"-> out",
|
|
"refId":"B"
|
|
}
|
|
],
|
|
"thresholds":[
|
|
|
|
],
|
|
"timeFrom":"",
|
|
"timeShift":null,
|
|
"title":"Network IO",
|
|
"tooltip":{
|
|
"msResolution":true,
|
|
"shared":true,
|
|
"sort":2,
|
|
"value_type":"cumulative"
|
|
},
|
|
"type":"graph",
|
|
"xaxis":{
|
|
"buckets":null,
|
|
"mode":"time",
|
|
"name":null,
|
|
"show":true,
|
|
"values":[
|
|
|
|
]
|
|
},
|
|
"yaxes":[
|
|
{
|
|
"format":"Bps",
|
|
"label":"",
|
|
"logBase":1,
|
|
"max":null,
|
|
"min":null,
|
|
"show":true
|
|
},
|
|
{
|
|
"format":"short",
|
|
"label":null,
|
|
"logBase":1,
|
|
"max":null,
|
|
"min":null,
|
|
"show":false
|
|
}
|
|
],
|
|
"yaxis":{
|
|
"align":false,
|
|
"alignLevel":null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors":{
|
|
|
|
},
|
|
"bars":false,
|
|
"dashLength":10,
|
|
"dashes":false,
|
|
"datasource":"default-kubecost",
|
|
"decimals":2,
|
|
"description":"Disk reads and writes for the namespace, as a sum of the pods within it",
|
|
"editable":true,
|
|
"error":false,
|
|
"fill":1,
|
|
"grid":{
|
|
|
|
},
|
|
"gridPos":{
|
|
"h":6,
|
|
"w":12,
|
|
"x":12,
|
|
"y":21
|
|
},
|
|
"height":"",
|
|
"id":17,
|
|
"isNew":true,
|
|
"legend":{
|
|
"alignAsTable":false,
|
|
"avg":true,
|
|
"current":true,
|
|
"hideEmpty":false,
|
|
"hideZero":false,
|
|
"max":false,
|
|
"min":false,
|
|
"rightSide":false,
|
|
"show":true,
|
|
"sideWidth":null,
|
|
"sort":"current",
|
|
"sortDesc":true,
|
|
"total":false,
|
|
"values":true
|
|
},
|
|
"lines":true,
|
|
"linewidth":2,
|
|
"links":[
|
|
|
|
],
|
|
"nullPointMode":"connected",
|
|
"percentage":false,
|
|
"pointradius":5,
|
|
"points":false,
|
|
"renderer":"flot",
|
|
"seriesOverrides":[
|
|
|
|
],
|
|
"spaceLength":10,
|
|
"stack":false,
|
|
"steppedLine":false,
|
|
"targets":[
|
|
{
|
|
"expr":"sum (rate (container_fs_writes_bytes_total{instance=\"$node\"}[10m]))",
|
|
"format":"time_series",
|
|
"hide":false,
|
|
"instant":false,
|
|
"interval":"",
|
|
"intervalFactor":1,
|
|
"legendFormat":"<- write",
|
|
"metric":"container_cpu",
|
|
"refId":"A",
|
|
"step":10
|
|
},
|
|
{
|
|
"expr":"- sum (rate (container_fs_reads_bytes_total{instance=\"$node\"}[10m]))",
|
|
"format":"time_series",
|
|
"hide":false,
|
|
"instant":false,
|
|
"interval":"",
|
|
"intervalFactor":1,
|
|
"legendFormat":"-> read",
|
|
"refId":"B"
|
|
}
|
|
],
|
|
"thresholds":[
|
|
|
|
],
|
|
"timeFrom":"",
|
|
"timeShift":null,
|
|
"title":"Disk IO",
|
|
"tooltip":{
|
|
"msResolution":true,
|
|
"shared":true,
|
|
"sort":2,
|
|
"value_type":"cumulative"
|
|
},
|
|
"type":"graph",
|
|
"xaxis":{
|
|
"buckets":null,
|
|
"mode":"time",
|
|
"name":null,
|
|
"show":true,
|
|
"values":[
|
|
|
|
]
|
|
},
|
|
"yaxes":[
|
|
{
|
|
"format":"Bps",
|
|
"label":"",
|
|
"logBase":1,
|
|
"max":null,
|
|
"min":null,
|
|
"show":true
|
|
},
|
|
{
|
|
"format":"short",
|
|
"label":null,
|
|
"logBase":1,
|
|
"max":null,
|
|
"min":null,
|
|
"show":false
|
|
}
|
|
],
|
|
"yaxis":{
|
|
"align":false,
|
|
"alignLevel":null
|
|
}
|
|
}
|
|
],
|
|
"schemaVersion":16,
|
|
"style":"dark",
|
|
"tags":[
|
|
"cost",
|
|
"utilization",
|
|
"metrics"
|
|
],
|
|
"templating":{
|
|
"list":[
|
|
{
|
|
"allValue":null,
|
|
"current":{
|
|
"text":"ip-172-20-44-170.us-east-2.compute.internal",
|
|
"value":"ip-172-20-44-170.us-east-2.compute.internal"
|
|
},
|
|
"datasource":"default-kubecost",
|
|
"hide":0,
|
|
"includeAll":false,
|
|
"label":null,
|
|
"multi":false,
|
|
"name":"node",
|
|
"options":[
|
|
|
|
],
|
|
"query":"query_result(kube_node_labels)",
|
|
"refresh":1,
|
|
"regex":"/node=\\\"(.*?)(\\\")/",
|
|
"skipUrlSync":false,
|
|
"sort":0,
|
|
"tagValuesQuery":"",
|
|
"tags":[
|
|
|
|
],
|
|
"tagsQuery":"",
|
|
"type":"query",
|
|
"useTags":false
|
|
}
|
|
]
|
|
},
|
|
"time":{
|
|
"from":"now-6h",
|
|
"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":"Node utilization metrics",
|
|
"uid":"NUQW37Lmk",
|
|
"version":1
|
|
}
|