Grafana dashboard: Kubernetes Pod Monitoring
Description: https://em8g.com - free kubernetes monitoring

# Kubernetes Pod Monitoring Dashboard
- Usage % Trend of CPU, Memory by Pods
- Usage Nanocores Trend of CPU by Pods
- Usage Bytes Trend of Memory, Network In/Out by Pods
- Details on monitoring each pod

## Learn more about
- [Kubernetes Pod Monitoring Dashboard](https://em8g.com/landing/documents/open-source-kubernetes-monitoring#build-oss-step5)

## You should download as well the next dashboards for kubernetes visibility:
-  [Kubernetes Cluster Monitoring Dashboard](https://grafana.com/grafana/dashboards/16694-kubernetes-overview/)
-  [Kubernetes Node Monitoring Dashboard](https://grafana.com/grafana/dashboards/16696-kubernetes-node-monitoring/)
-  [Kubernetes Event Monitoring Dashboard](https://grafana.com/grafana/dashboards/16695-kubernetes-event-monitoring/)
---
# JMSIGHT's Kubernetes Examples 
Examples to test [JMSIGHT's em8g](https://www.em8g.com) that is a Monitoring SaaS for Kubernetes.
---
## Directory contents
### 1. Deploying WordPress in Cloud Native with Kubernetes
Example of deploying to the Cloud Native of various cloud(ncloud, aws, etc.) based on [Example: Deploying WordPress and MySQL with Persistent Volumes](https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/)
- [JMSIGHT WordPress Example](https://em8g.com/landing/documents/example)
### 2. Open Source Kubernetes Monitoring
Complete Guide to build Kubernetes Monitoring with open sources (Grafana + Elasticsearch + Metricbeat)
- [Open Source Kubernetes Monitoring - Grafana + Elasticsearch + Metricbeat](https://em8g.com/landing/documents/open-source-kubernetes-monitoring)
### 3. Kubernetes APM
Kubernetes Application Monitoring (APM) which monitors IT service based on Microservices in Kubernetes.
- [Kubernetes Application Monitoring (APM) for Microservices](https://em8g.com/landing/documents/kubernetes-application-monitoring)

{
  "__inputs": [
    {
      "name": "DS_ELASTICSEARCH",
      "label": "Elasticsearch",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "7.10.x"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.12"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph (old)",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "grafana"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "limit": 100,
        "name": "Annotations & Alerts",
        "showIn": 0,
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "https://em8g.com - free kubernetes monitoring",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 16697,
  "graphTooltip": 2,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "datasource": {
        "type": "elasticsearch",
        "uid": "000000010"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 37,
      "panels": [],
      "targets": [
        {
          "datasource": {
            "type": "elasticsearch",
            "uid": "000000010"
          },
          "refId": "A"
        }
      ],
      "title": "Visualization",
      "type": "row"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "elasticsearch",
        "uid": "${DS_ELASTICSEARCH}"
      },
      "decimals": 1,
      "description": "CPU usage as a percentage of the defined limit for the pod containers (or total node CPU if one or more containers of the pod are unlimited)",
      "fieldConfig": {
        "defaults": {
          "unit": "percentunit"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 8,
        "x": 0,
        "y": 1
      },
      "hiddenSeries": false,
      "hideTimeOverride": false,
      "id": 49,
      "interval": "1m",
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.12",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "kubernetes.pod.name",
              "id": "3",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": "1"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": {
            "type": "elasticsearch",
            "uid": "${DS_ELASTICSEARCH}"
          },
          "hide": false,
          "metrics": [
            {
              "field": "kubernetes.pod.cpu.usage.limit.pct",
              "id": "1",
              "type": "avg"
            }
          ],
          "query": "kubernetes.namespace:$namespace AND agent.hostname:$node AND kubernetes.pod.name:$pod AND event.dataset:kubernetes.pod",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "CPU Usage %",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "200~299": {
                "aggregations": []
              },
              "300~399": {
                "aggregations": []
              }
            }
          }
        }
      ],
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1257",
          "format": "percentunit",
          "logBase": 1,
          "show": true
        },
        {
          "$$hashKey": "object:1258",
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "elasticsearch",
        "uid": "${DS_ELASTICSEARCH}"
      },
      "decimals": 1,
      "description": "Memory usage as a percentage of the defined limit for the pod containers (or total node allocatable memory if unlimited)",
      "fieldConfig": {
        "defaults": {
          "unit": "percentunit"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 8,
        "x": 8,
        "y": 1
      },
      "hiddenSeries": false,
      "hideTimeOverride": false,
      "id": 55,
      "interval": "1m",
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.12",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "kubernetes.pod.name",
              "id": "3",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": "1"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": {
            "type": "elasticsearch",
            "uid": "${DS_ELASTICSEARCH}"
          },
          "hide": false,
          "metrics": [
            {
              "field": "kubernetes.pod.memory.usage.limit.pct",
              "id": "1",
              "type": "avg"
            }
          ],
          "query": "kubernetes.namespace:$namespace AND agent.hostname:$node AND kubernetes.pod.name:$pod AND event.dataset:kubernetes.pod",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Memory Usage %",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "200~299": {
                "aggregations": []
              },
              "300~399": {
                "aggregations": []
              }
            }
          }
        }
      ],
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1168",
          "decimals": 1,
          "format": "percentunit",
          "logBase": 1,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:1169",
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "elasticsearch",
        "uid": "${DS_ELASTICSEARCH}"
      },
      "decimals": 1,
      "description": "Total memory usage",
      "fieldConfig": {
        "defaults": {
          "unit": "bytes"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 8,
        "x": 16,
        "y": 1
      },
      "hiddenSeries": false,
      "hideTimeOverride": false,
      "id": 54,
      "interval": "1m",
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.12",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "kubernetes.pod.name",
              "id": "3",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": "1"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": {
            "type": "elasticsearch",
            "uid": "${DS_ELASTICSEARCH}"
          },
          "hide": false,
          "metrics": [
            {
              "field": "kubernetes.pod.memory.usage.bytes",
              "id": "1",
              "type": "avg"
            }
          ],
          "query": "kubernetes.namespace:$namespace AND agent.hostname:$node AND kubernetes.pod.name:$pod AND event.dataset:kubernetes.pod",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Memory Usage Bytes",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "200~299": {
                "aggregations": []
              },
              "300~399": {
                "aggregations": []
              }
            }
          }
        }
      ],
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:990",
          "decimals": 0,
          "format": "bytes",
          "logBase": 1,
          "show": true
        },
        {
          "$$hashKey": "object:991",
          "decimals": 0,
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "elasticsearch",
        "uid": "${DS_ELASTICSEARCH}"
      },
      "decimals": 1,
      "description": "CPU used nanocores",
      "fieldConfig": {
        "defaults": {
          "unit": "short"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 12,
        "w": 8,
        "x": 0,
        "y": 12
      },
      "hiddenSeries": false,
      "hideTimeOverride": false,
      "id": 53,
      "interval": "1m",
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.12",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "kubernetes.pod.name",
              "id": "3",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": "1"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": {
            "type": "elasticsearch",
            "uid": "${DS_ELASTICSEARCH}"
          },
          "hide": false,
          "metrics": [
            {
              "field": "kubernetes.pod.cpu.usage.nanocores",
              "id": "1",
              "type": "avg"
            }
          ],
          "query": "kubernetes.namespace:$namespace AND agent.hostname:$node AND kubernetes.pod.name:$pod AND event.dataset:kubernetes.pod",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "CPU Usage Nanocore",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "200~299": {
                "aggregations": []
              },
              "300~399": {
                "aggregations": []
              }
            }
          }
        }
      ],
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1079",
          "decimals": 0,
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "$$hashKey": "object:1080",
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "elasticsearch",
        "uid": "${DS_ELASTICSEARCH}"
      },
      "decimals": 1,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "unit": "binBps"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 12,
        "w": 8,
        "x": 8,
        "y": 12
      },
      "hiddenSeries": false,
      "hideTimeOverride": true,
      "id": 59,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.12",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "repeatDirection": "v",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "kubernetes.pod.name",
              "id": "3",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": "1"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": {
            "type": "elasticsearch",
            "uid": "${DS_ELASTICSEARCH}"
          },
          "metrics": [
            {
              "field": "kubernetes.pod.network.rx.bytes",
              "hide": true,
              "id": "1",
              "settings": {
                "script": "_value / $__interval_ms * 1000"
              },
              "type": "sum"
            },
            {
              "field": "1",
              "id": "4",
              "pipelineAgg": "1",
              "type": "derivative"
            }
          ],
          "query": "kubernetes.namespace:$namespace AND agent.hostname:$node AND kubernetes.pod.name:$pod AND event.dataset:kubernetes.pod",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "timeShift": "1m",
      "title": "Network In (rx)",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "transformations": [],
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:235",
          "decimals": 0,
          "format": "binBps",
          "logBase": 1,
          "show": true
        },
        {
          "$$hashKey": "object:236",
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "elasticsearch",
        "uid": "${DS_ELASTICSEARCH}"
      },
      "decimals": 1,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "unit": "binBps"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 12,
        "w": 8,
        "x": 16,
        "y": 12
      },
      "hiddenSeries": false,
      "hideTimeOverride": true,
      "id": 60,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.12",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "repeatDirection": "v",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "kubernetes.pod.name",
              "id": "3",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": "1"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": {
            "type": "elasticsearch",
            "uid": "${DS_ELASTICSEARCH}"
          },
          "metrics": [
            {
              "field": "kubernetes.pod.network.tx.bytes",
              "hide": true,
              "id": "1",
              "settings": {
                "script": "_value / $__interval_ms * 1000"
              },
              "type": "sum"
            },
            {
              "field": "1",
              "id": "4",
              "pipelineAgg": "1",
              "type": "derivative"
            }
          ],
          "query": "kubernetes.namespace:$namespace AND agent.hostname:$node AND kubernetes.pod.name:$pod AND event.dataset:kubernetes.pod",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "timeShift": "1m",
      "title": "Network Out (tx)",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "transformations": [],
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:235",
          "decimals": 0,
          "format": "binBps",
          "logBase": 1,
          "show": true
        },
        {
          "$$hashKey": "object:236",
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "datasource": {
        "type": "elasticsearch",
        "uid": "000000010"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 24
      },
      "id": 35,
      "targets": [
        {
          "datasource": {
            "type": "elasticsearch",
            "uid": "000000010"
          },
          "refId": "A"
        }
      ],
      "title": "Details",
      "type": "row"
    },
    {
      "datasource": {
        "type": "elasticsearch",
        "uid": "${DS_ELASTICSEARCH}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "displayMode": "auto",
            "filterable": true,
            "inspect": false,
            "width": 85
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Timestamp"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 146
              },
              {
                "id": "unit",
                "value": "dateTimeAsIso"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "IP"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 124
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "CPU core"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 91
              },
              {
                "id": "unit",
                "value": "short"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "CPU %"
            },
            "properties": [
              {
                "id": "custom.width"
              },
              {
                "id": "unit",
                "value": "percentunit"
              },
              {
                "id": "decimals",
                "value": 1
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "percentage",
                  "steps": [
                    {
                      "color": "#17019b",
                      "value": null
                    },
                    {
                      "color": "#ffc701",
                      "value": 50
                    },
                    {
                      "color": "#ff6067",
                      "value": 80
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Memory Free"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 116
              },
              {
                "id": "unit",
                "value": "bytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "rx error"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 79
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgb(255, 255, 255)",
                      "value": null
                    },
                    {
                      "color": "#ff6067",
                      "value": 1
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Start"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 156
              },
              {
                "id": "unit",
                "value": "dateTimeAsIso"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "tx error"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 77
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgb(255, 255, 255)",
                      "value": null
                    },
                    {
                      "color": "#ff6067",
                      "value": 1
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "tx"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 77
              },
              {
                "id": "unit",
                "value": "bytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "rx"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 85
              },
              {
                "id": "unit",
                "value": "bytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "UID"
            },
            "properties": [
              {
                "id": "custom.width"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Memory Usage"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 88
              },
              {
                "id": "unit",
                "value": "bytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Memory %"
            },
            "properties": [
              {
                "id": "custom.width"
              },
              {
                "id": "unit",
                "value": "percentunit"
              },
              {
                "id": "decimals",
                "value": 1
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "percentage",
                  "steps": [
                    {
                      "color": "#17019b",
                      "value": null
                    },
                    {
                      "color": "#ffc701",
                      "value": 50
                    },
                    {
                      "color": "#ff6067",
                      "value": 80
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pod"
            },
            "properties": [
              {
                "id": "custom.width"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Node"
            },
            "properties": [
              {
                "id": "custom.width"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Namespace"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 134
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 23,
        "w": 24,
        "x": 0,
        "y": 25
      },
      "hideTimeOverride": true,
      "id": 24,
      "links": [],
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "CPU %"
          }
        ]
      },
      "pluginVersion": "7.5.12",
      "targets": [
        {
          "bucketAggs": [],
          "datasource": {
            "type": "elasticsearch",
            "uid": "${DS_ELASTICSEARCH}"
          },
          "metrics": [
            {
              "id": "1",
              "settings": {
                "size": "500"
              },
              "type": "raw_data"
            }
          ],
          "query": "kubernetes.namespace:$namespace AND agent.hostname:$node AND kubernetes.pod.name:$pod AND event.dataset:kubernetes.pod",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": "1m",
      "timeShift": "1m",
      "title": "Pod Monitoring",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "@timestamp",
                "agent.hostname",
                "kubernetes.pod.cpu.usage.limit.pct",
                "kubernetes.pod.cpu.usage.nanocores",
                "kubernetes.pod.memory.usage.bytes",
                "kubernetes.pod.memory.usage.limit.pct",
                "kubernetes.pod.name",
                "kubernetes.pod.network.rx.bytes",
                "kubernetes.pod.network.rx.errors",
                "kubernetes.pod.network.tx.bytes",
                "kubernetes.pod.network.tx.errors",
                "kubernetes.pod.start_time",
                "kubernetes.pod.uid",
                "kubernetes.namespace"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "@timestamp": 3,
              "agent.hostname": 1,
              "kubernetes.namespace": 0,
              "kubernetes.pod.cpu.usage.limit.pct": 4,
              "kubernetes.pod.cpu.usage.nanocores": 6,
              "kubernetes.pod.memory.usage.bytes": 7,
              "kubernetes.pod.memory.usage.limit.pct": 5,
              "kubernetes.pod.name": 2,
              "kubernetes.pod.network.rx.bytes": 8,
              "kubernetes.pod.network.rx.errors": 9,
              "kubernetes.pod.network.tx.bytes": 10,
              "kubernetes.pod.network.tx.errors": 11,
              "kubernetes.pod.start_time": 12,
              "kubernetes.pod.uid": 13
            },
            "renameByName": {
              "@timestamp": "Timestamp",
              "agent.hostname": "Node",
              "kubernetes.namespace": "Namespace",
              "kubernetes.pod.cpu.usage.limit.pct": "CPU %",
              "kubernetes.pod.cpu.usage.nanocores": "CPU core",
              "kubernetes.pod.cpu.usage.node.pct": "CPU %",
              "kubernetes.pod.ip": "IP",
              "kubernetes.pod.memory.available.bytes": "Memory Free",
              "kubernetes.pod.memory.usage.bytes": "Memory Usage",
              "kubernetes.pod.memory.usage.limit.pct": "Memory %",
              "kubernetes.pod.memory.usage.node.pct": "Memory %",
              "kubernetes.pod.name": "Pod",
              "kubernetes.pod.network.rx.bytes": "rx",
              "kubernetes.pod.network.rx.errors": "rx error",
              "kubernetes.pod.network.tx.bytes": "tx",
              "kubernetes.pod.network.tx.errors": "tx error",
              "kubernetes.pod.start_time": "Start",
              "kubernetes.pod.uid": "UID"
            }
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 36,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": "*",
        "current": {},
        "datasource": {
          "type": "elasticsearch",
          "uid": "${DS_ELASTICSEARCH}"
        },
        "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.namespace\"}",
        "hide": 0,
        "includeAll": true,
        "label": "Namespace",
        "multi": true,
        "name": "namespace",
        "options": [],
        "query": "{\"find\": \"terms\", \"field\": \"kubernetes.namespace\"}",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "*",
        "current": {},
        "datasource": {
          "type": "elasticsearch",
          "uid": "${DS_ELASTICSEARCH}"
        },
        "definition": "{\"find\": \"terms\", \"field\": \"agent.hostname\"}",
        "hide": 0,
        "includeAll": true,
        "label": "Node",
        "multi": true,
        "name": "node",
        "options": [],
        "query": "{\"find\": \"terms\", \"field\": \"agent.hostname\"}",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "*",
        "current": {},
        "datasource": {
          "type": "elasticsearch",
          "uid": "${DS_ELASTICSEARCH}"
        },
        "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.pod.name\"}",
        "hide": 0,
        "includeAll": true,
        "label": "Pod",
        "multi": true,
        "name": "pod",
        "options": [],
        "query": "{\"find\": \"terms\", \"field\": \"kubernetes.pod.name\"}",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "to": "now"
  },
  "timepicker": {
    "nowDelay": "",
    "refresh_intervals": [
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Kubernetes Pod Monitoring",
  "uid": "en1aEZm4k",
  "version": 2,
  "weekStart": ""
}