CPU overview
CPU overview
{
  "__inputs": [],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.1.6"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 10264,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "gridPos": {
        "h": 6,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "links": [],
      "options": {
        "maxValue": 100,
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "super-light-green",
            "index": 0,
            "value": null
          },
          {
            "color": "light-green",
            "index": 1,
            "value": 20
          },
          {
            "color": "semi-dark-green",
            "index": 2,
            "value": 40
          },
          {
            "color": "light-yellow",
            "index": 3,
            "value": 60
          },
          {
            "color": "#EF843C",
            "index": 4,
            "value": 80
          },
          {
            "color": "dark-orange",
            "index": 5,
            "value": 110
          }
        ],
        "valueMappings": [],
        "valueOptions": {
          "decimals": 0,
          "prefix": "",
          "stat": "mean",
          "suffix": " %",
          "unit": "none"
        }
      },
      "pluginVersion": "6.1.6",
      "targets": [
        {
          "expr": "sum(kube_pod_container_resource_requests_cpu_cores)/sum(kube_node_status_allocatable_cpu_cores)*100",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Allocatable Cores",
      "type": "gauge"
    },
    {
      "gridPos": {
        "h": 5,
        "w": 9,
        "x": 0,
        "y": 6
      },
      "id": 2,
      "links": [],
      "options": {
        "maxValue": 100,
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "super-light-green",
            "index": 0,
            "value": null
          },
          {
            "color": "semi-dark-green",
            "index": 1,
            "value": 20
          },
          {
            "color": "dark-green",
            "index": 2,
            "value": 40
          },
          {
            "color": "light-yellow",
            "index": 3,
            "value": 60
          },
          {
            "color": "#EF843C",
            "index": 4,
            "value": 80
          },
          {
            "color": "light-red",
            "index": 5,
            "value": 110
          }
        ],
        "valueMappings": [],
        "valueOptions": {
          "decimals": 0,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "none"
        }
      },
      "pluginVersion": "6.1.6",
      "targets": [
        {
          "expr": "sum(kube_pod_container_resource_requests_cpu_cores)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Requested Cores",
      "type": "gauge"
    },
    {
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 9,
        "y": 6
      },
      "id": 3,
      "links": [],
      "options": {
        "maxValue": 100,
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "super-light-green",
            "index": 0,
            "value": null
          },
          {
            "color": "semi-dark-green",
            "index": 1,
            "value": 20
          },
          {
            "color": "dark-green",
            "index": 2,
            "value": 40
          },
          {
            "color": "light-yellow",
            "index": 3,
            "value": 60
          },
          {
            "color": "#EF843C",
            "index": 4,
            "value": 80
          },
          {
            "color": "light-red",
            "index": 5,
            "value": 110
          }
        ],
        "valueMappings": [],
        "valueOptions": {
          "decimals": 0,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "none"
        }
      },
      "pluginVersion": "6.1.6",
      "targets": [
        {
          "expr": "sum(kube_pod_container_resource_limits_cpu_cores)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Limite Cores",
      "type": "gauge"
    },
    {
      "gridPos": {
        "h": 5,
        "w": 9,
        "x": 15,
        "y": 6
      },
      "id": 5,
      "links": [],
      "options": {
        "maxValue": 100,
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "super-light-green",
            "index": 0,
            "value": null
          },
          {
            "color": "semi-dark-green",
            "index": 1,
            "value": 20
          },
          {
            "color": "dark-green",
            "index": 2,
            "value": 40
          },
          {
            "color": "light-yellow",
            "index": 3,
            "value": 60
          },
          {
            "color": "#EF843C",
            "index": 4,
            "value": 80
          },
          {
            "color": "light-red",
            "index": 5,
            "value": 110
          }
        ],
        "valueMappings": [],
        "valueOptions": {
          "decimals": 0,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "none"
        }
      },
      "pluginVersion": "6.1.6",
      "targets": [
        {
          "expr": "sum(kube_node_status_allocatable_cpu_cores)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Allocatable Cores",
      "type": "gauge"
    },
    {
      "aliasColors": {
        "Requested": "dark-red",
        "Usage": "semi-dark-blue"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 11
      },
      "id": 8,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"default\"}[5m])) \n",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "Usage",
          "refId": "A"
        },
        {
          "expr": "sum(kube_node_status_allocatable_cpu_cores)",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "Requested",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "CPU Total Usage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "schemaVersion": 18,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "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": "CPU overview",
  "uid": "v5QJ76ZWk",
  "version": 2,
  "description": "CPU overview"
}