2021-04-26 14:27:19 +00:00
{
2024-07-19 14:14:43 +00:00
"editable" : false ,
2021-04-26 14:27:19 +00:00
"panels" : [
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"fieldConfig" : {
"defaults" : {
"displayName" : "$namespace" ,
"max" : 10000000000 ,
"min" : 0 ,
"thresholds" : {
"steps" : [
{
"color" : "dark-green" ,
"index" : 0 ,
"value" : null
} ,
{
"color" : "dark-yellow" ,
"index" : 1 ,
"value" : 5000000000
} ,
{
"color" : "dark-red" ,
"index" : 2 ,
"value" : 7000000000
}
]
} ,
"unit" : "Bps"
}
2021-04-26 14:27:19 +00:00
} ,
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 0 ,
2024-07-19 14:14:43 +00:00
"y" : 0
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"id" : 1 ,
"pluginVersion" : "v11.0.0" ,
2021-04-26 14:27:19 +00:00
"targets" : [
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_receive_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"})" ,
"legendFormat" : "__auto"
2021-04-26 14:27:19 +00:00
}
] ,
"title" : "Current Rate of Bytes Received" ,
2024-07-19 14:14:43 +00:00
"type" : "gauge"
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
} ,
"fieldConfig" : {
"defaults" : {
"displayName" : "$namespace" ,
"max" : 10000000000 ,
"min" : 0 ,
"thresholds" : {
"steps" : [
{
"color" : "dark-green" ,
"index" : 0 ,
"value" : null
} ,
{
"color" : "dark-yellow" ,
"index" : 1 ,
"value" : 5000000000
} ,
{
"color" : "dark-red" ,
"index" : 2 ,
"value" : 7000000000
}
]
} ,
"unit" : "Bps"
}
2021-04-26 14:27:19 +00:00
} ,
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 12 ,
2024-07-19 14:14:43 +00:00
"y" : 0
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"id" : 2 ,
"pluginVersion" : "v11.0.0" ,
2021-04-26 14:27:19 +00:00
"targets" : [
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_transmit_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"})" ,
"legendFormat" : "__auto"
2021-04-26 14:27:19 +00:00
}
] ,
"title" : "Current Rate of Bytes Transmitted" ,
2024-07-19 14:14:43 +00:00
"type" : "gauge"
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
} ,
"fieldConfig" : {
"overrides" : [
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "/Bandwidth/"
} ,
"properties" : [
{
"id" : "unit" ,
"value" : "Bps"
}
]
} ,
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "/Packets/"
} ,
"properties" : [
{
"id" : "unit" ,
"value" : "pps"
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "Pod"
} ,
"properties" : [
{
"id" : "links" ,
"value" : [
{
"title" : "Drill down" ,
"url" : "/d/7a18067ce943a40ae25454675c19ff5c/kubernetes-networking-pod?${datasource:queryparam}&var-cluster=${cluster}&var-namespace=${namespace}&var-pod=${__data.fields.Pod}"
}
]
}
]
}
]
} ,
2021-04-26 14:27:19 +00:00
"gridPos" : {
"h" : 9 ,
"w" : 24 ,
"x" : 0 ,
2024-07-19 14:14:43 +00:00
"y" : 9
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"id" : 3 ,
"pluginVersion" : "v11.0.0" ,
2021-04-26 14:27:19 +00:00
"targets" : [
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_receive_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
2021-04-26 14:27:19 +00:00
"format" : "table" ,
2024-07-19 14:14:43 +00:00
"instant" : true
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_transmit_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
2021-04-26 14:27:19 +00:00
"format" : "table" ,
2024-07-19 14:14:43 +00:00
"instant" : true
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_receive_packets_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
2021-04-26 14:27:19 +00:00
"format" : "table" ,
2024-07-19 14:14:43 +00:00
"instant" : true
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_transmit_packets_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
2021-04-26 14:27:19 +00:00
"format" : "table" ,
2024-07-19 14:14:43 +00:00
"instant" : true
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_receive_packets_dropped_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
2021-04-26 14:27:19 +00:00
"format" : "table" ,
2024-07-19 14:14:43 +00:00
"instant" : true
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
2021-04-26 14:27:19 +00:00
"format" : "table" ,
2024-07-19 14:14:43 +00:00
"instant" : true
}
] ,
"title" : "Current Network Usage" ,
"transformations" : [
{
"id" : "joinByField" ,
"options" : {
"byField" : "pod" ,
"mode" : "outer"
}
} ,
{
"id" : "organize" ,
"options" : {
"excludeByName" : {
"Time" : true ,
"Time 1" : true ,
"Time 2" : true ,
"Time 3" : true ,
"Time 4" : true ,
"Time 5" : true ,
"Time 6" : true
} ,
"indexByName" : {
"Time 1" : 0 ,
"Time 2" : 1 ,
"Time 3" : 2 ,
"Time 4" : 3 ,
"Time 5" : 4 ,
"Time 6" : 5 ,
"Value #A" : 7 ,
"Value #B" : 8 ,
"Value #C" : 9 ,
"Value #D" : 10 ,
"Value #E" : 11 ,
"Value #F" : 12 ,
"pod" : 6
} ,
"renameByName" : {
"Value #A" : "Current Receive Bandwidth" ,
"Value #B" : "Current Transmit Bandwidth" ,
"Value #C" : "Rate of Received Packets" ,
"Value #D" : "Rate of Transmitted Packets" ,
"Value #E" : "Rate of Received Packets Dropped" ,
"Value #F" : "Rate of Transmitted Packets Dropped" ,
"pod" : "Pod"
}
}
2021-04-26 14:27:19 +00:00
}
] ,
"type" : "table"
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
} ,
"fieldConfig" : {
"defaults" : {
"custom" : {
"showPoints" : "never"
} ,
"unit" : "binBps"
}
2021-04-26 14:27:19 +00:00
} ,
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 0 ,
2024-07-19 14:14:43 +00:00
"y" : 18
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"id" : 4 ,
"interval" : "1m" ,
"options" : {
"legend" : {
"asTable" : true ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single"
}
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"pluginVersion" : "v11.0.0" ,
2021-04-26 14:27:19 +00:00
"targets" : [
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_receive_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
"legendFormat" : "__auto"
2021-04-26 14:27:19 +00:00
}
] ,
"title" : "Receive Bandwidth" ,
2024-07-19 14:14:43 +00:00
"type" : "timeseries"
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
} ,
"fieldConfig" : {
"defaults" : {
"custom" : {
"showPoints" : "never"
} ,
"unit" : "binBps"
}
} ,
2021-04-26 14:27:19 +00:00
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 12 ,
2024-07-19 14:14:43 +00:00
"y" : 18
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"id" : 5 ,
"interval" : "1m" ,
"options" : {
"legend" : {
"asTable" : true ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single"
}
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"pluginVersion" : "v11.0.0" ,
2021-04-26 14:27:19 +00:00
"targets" : [
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_transmit_bytes_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
"legendFormat" : "__auto"
2021-04-26 14:27:19 +00:00
}
] ,
"title" : "Transmit Bandwidth" ,
2024-07-19 14:14:43 +00:00
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
} ,
"fieldConfig" : {
"defaults" : {
"custom" : {
"showPoints" : "never"
} ,
"unit" : "pps"
}
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 0 ,
"y" : 27
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"id" : 6 ,
"interval" : "1m" ,
"options" : {
"legend" : {
"asTable" : true ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"tooltip" : {
"mode" : "single"
}
} ,
"pluginVersion" : "v11.0.0" ,
"targets" : [
2021-04-26 14:27:19 +00:00
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
"expr" : "sum(rate(container_network_receive_packets_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
"legendFormat" : "__auto"
2021-04-26 14:27:19 +00:00
}
2024-07-19 14:14:43 +00:00
] ,
"title" : "Rate of Received Packets" ,
"type" : "timeseries"
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"showPoints" : "never"
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"unit" : "pps"
}
} ,
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 12 ,
"y" : 27
} ,
"id" : 7 ,
"interval" : "1m" ,
"options" : {
"legend" : {
"asTable" : true ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"tooltip" : {
"mode" : "single"
}
} ,
"pluginVersion" : "v11.0.0" ,
"targets" : [
2021-04-26 14:27:19 +00:00
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"expr" : "sum(rate(container_network_transmit_packets_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
"legendFormat" : "__auto"
2021-04-26 14:27:19 +00:00
}
] ,
2024-07-19 14:14:43 +00:00
"title" : "Rate of Transmitted Packets" ,
"type" : "timeseries"
2021-04-26 14:27:19 +00:00
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
} ,
"fieldConfig" : {
"defaults" : {
"custom" : {
"showPoints" : "never"
} ,
"unit" : "pps"
}
} ,
2021-04-26 14:27:19 +00:00
"gridPos" : {
2024-07-19 14:14:43 +00:00
"h" : 9 ,
"w" : 12 ,
2021-04-26 14:27:19 +00:00
"x" : 0 ,
2024-07-19 14:14:43 +00:00
"y" : 36
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"id" : 8 ,
"interval" : "1m" ,
"options" : {
"legend" : {
"asTable" : true ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single"
}
} ,
"pluginVersion" : "v11.0.0" ,
"targets" : [
2021-04-26 14:27:19 +00:00
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"expr" : "sum by (namespace) (rate(container_network_receive_packets_dropped_total{cluster=\"$cluster\",namespace!=\"\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"})" ,
"legendFormat" : "__auto"
}
] ,
"title" : "Rate of Received Packets Dropped" ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
} ,
"fieldConfig" : {
"defaults" : {
"custom" : {
"showPoints" : "never"
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"unit" : "pps"
}
} ,
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 12 ,
"y" : 36
} ,
"id" : 9 ,
"interval" : "1m" ,
"options" : {
"legend" : {
"asTable" : true ,
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"tooltip" : {
"mode" : "single"
}
} ,
"pluginVersion" : "v11.0.0" ,
"targets" : [
2021-04-26 14:27:19 +00:00
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
2021-04-26 14:27:19 +00:00
} ,
2024-07-19 14:14:43 +00:00
"expr" : "sum(rate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]) * on (cluster,namespace,pod) kube_pod_info{host_network=\"false\"}) by (pod)" ,
"legendFormat" : "__auto"
2021-04-26 14:27:19 +00:00
}
] ,
2024-07-19 14:14:43 +00:00
"title" : "Rate of Transmitted Packets Dropped" ,
"type" : "timeseries"
2021-04-26 14:27:19 +00:00
}
] ,
"refresh" : "10s" ,
2024-07-19 14:14:43 +00:00
"schemaVersion" : 39 ,
2021-04-26 14:27:19 +00:00
"tags" : [
"kubernetes"
] ,
"templating" : {
"list" : [
{
"current" : {
2023-11-27 12:45:06 +00:00
"selected" : true ,
2021-04-26 14:27:19 +00:00
"text" : "default" ,
"value" : "default"
} ,
"hide" : 0 ,
2024-04-04 13:39:36 +00:00
"label" : "Data source" ,
2021-04-26 14:27:19 +00:00
"name" : "datasource" ,
"query" : "prometheus" ,
"regex" : "" ,
"type" : "datasource"
} ,
{
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
2021-04-26 14:27:19 +00:00
"hide" : 2 ,
2024-07-19 14:14:43 +00:00
"label" : "cluster" ,
2021-04-26 14:27:19 +00:00
"name" : "cluster" ,
2022-09-20 11:50:19 +00:00
"query" : "label_values(up{job=\"kubelet\"}, cluster)" ,
2021-04-26 14:27:19 +00:00
"refresh" : 2 ,
2024-07-19 14:14:43 +00:00
"sort" : 1 ,
"type" : "query"
2021-04-26 14:27:19 +00:00
} ,
{
"allValue" : ".+" ,
"current" : {
2024-07-19 14:14:43 +00:00
"selected" : false ,
2021-04-26 14:27:19 +00:00
"text" : "kube-system" ,
"value" : "kube-system"
} ,
2024-07-19 14:14:43 +00:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "${datasource}"
} ,
2021-04-26 14:27:19 +00:00
"hide" : 0 ,
"includeAll" : true ,
2024-07-19 14:14:43 +00:00
"label" : "namespace" ,
2021-04-26 14:27:19 +00:00
"name" : "namespace" ,
"query" : "label_values(container_network_receive_packets_total{cluster=\"$cluster\"}, namespace)" ,
"refresh" : 2 ,
"sort" : 1 ,
2024-07-19 14:14:43 +00:00
"type" : "query"
2021-04-26 14:27:19 +00:00
}
]
} ,
"time" : {
"from" : "now-1h" ,
"to" : "now"
} ,
"timezone" : "UTC" ,
2021-04-26 14:46:35 +00:00
"title" : "Networking / Namespace (Pods)" ,
2024-07-19 14:14:43 +00:00
"uid" : "8b7a8b326d7a6f1f04244066368c67af"
2021-04-26 14:27:19 +00:00
}