Grafana dashboard: OCI Compute Instance Monitoring
Description: OCI Instance Metrics Monitoring Dashboard For Grafana 8.3.X Created by Ram N Sangwan

Learn to create a Grafana Dashboard from scratch. The demo uses a data source plugin for Oracle Cloud Infrastructure. The dashboard created use the metrics fetched by data source plugin and use it for Monitoring Instances, Block Volumes and Virtual Cloud Networks.  The Dashboard created will be uploaded on Grafana website  to be used by community.  
To watch a demo on how this dashboard was created, visit https://www.youtube.com/watch?v=RUJqjTkNQgg

{
  "__inputs": [
    {
      "name": "DS_ORACLE_CLOUD INFRASTRUCTURE METRICS",
      "label": "Oracle Cloud Infrastructure Metrics",
      "description": "",
      "type": "datasource",
      "pluginId": "oci-metrics-datasource",
      "pluginName": "Oracle Cloud Infrastructure Metrics"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.3.0"
    },
    {
      "type": "datasource",
      "id": "oci-metrics-datasource",
      "name": "Oracle Cloud Infrastructure Metrics",
      "version": "3.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "OCI Instance Metrics Monitoring Dashboard For Grafana 8.3.X Created by Ram N Sangwan",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 14010,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1638513641292,
  "links": [
    {
      "asDropdown": false,
      "icon": "external link",
      "includeVars": false,
      "keepTime": false,
      "tags": [],
      "targetBlank": true,
      "title": "The SkillPedia",
      "tooltip": "Create By",
      "type": "link",
      "url": "https://www.theskillpedia.com/"
    }
  ],
  "liveNow": false,
  "panels": [
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 14,
      "panels": [],
      "title": "Maintenance Status of the Instance",
      "type": "row"
    },
    {
      "datasource": {
        "type": "oci-metrics-datasource",
        "uid": "${DS_ORACLE_CLOUD INFRASTRUCTURE METRICS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "text": "OK"
                },
                "1": {
                  "text": "MR"
                }
              },
              "type": "value"
            }
          ],
          "noValue": "OK",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 16,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.0",
      "targets": [
        {
          "aggregation": "mean()",
          "compartment": "$compartment",
          "dimensions": [],
          "metric": "maintenance_status",
          "namespace": "oci_compute_infrastructure_health",
          "refId": "A",
          "region": "$region",
          "resolution": "auto",
          "resourcegroup": "select resource group",
          "window": "auto"
        }
      ],
      "title": "Panel Title",
      "type": "stat"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 5
      },
      "id": 12,
      "panels": [],
      "title": "Compute Instance Activities",
      "type": "row"
    },
    {
      "datasource": {
        "type": "oci-metrics-datasource",
        "uid": "${DS_ORACLE_CLOUD INFRASTRUCTURE METRICS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 6
      },
      "id": 8,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.0",
      "targets": [
        {
          "aggregation": "mean()",
          "compartment": "$compartment",
          "dimensions": [],
          "metric": "VolumeReadOps",
          "namespace": "oci_blockstore",
          "refId": "A",
          "region": "$region",
          "resolution": "auto",
          "resourcegroup": "select resource group",
          "window": "auto"
        },
        {
          "aggregation": "mean()",
          "compartment": "$compartment",
          "dimensions": [],
          "hide": false,
          "metric": "VolumeWriteOps",
          "namespace": "oci_blockstore",
          "refId": "B",
          "region": "$region",
          "resolution": "auto",
          "resourcegroup": "select resource group",
          "window": "auto"
        }
      ],
      "title": "Block Volume Read/Write Ops",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "oci-metrics-datasource",
        "uid": "${DS_ORACLE_CLOUD INFRASTRUCTURE METRICS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": []
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 6
      },
      "id": 10,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.0",
      "targets": [
        {
          "aggregation": "mean()",
          "compartment": "$compartment",
          "dimensions": [],
          "metric": "DiskIopsRead",
          "namespace": "oci_computeagent",
          "refId": "A",
          "region": "$region",
          "resolution": "auto",
          "resourcegroup": "select resource group",
          "window": "auto"
        },
        {
          "aggregation": "mean()",
          "compartment": "$compartment",
          "dimensions": [],
          "hide": false,
          "metric": "DiskIopsWritten",
          "namespace": "oci_computeagent",
          "refId": "B",
          "region": "$region",
          "resolution": "auto",
          "resourcegroup": "select resource group",
          "window": "auto"
        }
      ],
      "title": "Compute Volume and Disk Ops",
      "type": "stat"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 14
      },
      "id": 6,
      "panels": [],
      "title": "Overview of CPU and Memory",
      "type": "row"
    },
    {
      "datasource": {
        "type": "oci-metrics-datasource",
        "uid": "${DS_ORACLE_CLOUD INFRASTRUCTURE METRICS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "purple",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 6,
        "x": 0,
        "y": 15
      },
      "id": 4,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.3.0",
      "targets": [
        {
          "aggregation": "mean()",
          "compartment": "$compartment",
          "dimensions": [],
          "metric": "MemoryUtilization",
          "namespace": "oci_computeagent",
          "refId": "A",
          "region": "$region",
          "resolution": "auto",
          "resourcegroup": "select resource group",
          "window": "auto"
        }
      ],
      "title": "Memory Utilization",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "oci-metrics-datasource",
        "uid": "${DS_ORACLE_CLOUD INFRASTRUCTURE METRICS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "blue",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 6,
        "x": 15,
        "y": 15
      },
      "id": 2,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.3.0",
      "targets": [
        {
          "aggregation": "mean()",
          "compartment": "$compartment",
          "dimensions": [],
          "metric": "CpuUtilization",
          "namespace": "oci_computeagent",
          "refId": "A",
          "region": "$region",
          "resolution": "auto",
          "resourcegroup": "select resource group",
          "window": "auto"
        }
      ],
      "title": "CPU Utilization",
      "type": "gauge"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 33,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": {
          "type": "oci-metrics-datasource",
          "uid": "${DS_ORACLE_CLOUD INFRASTRUCTURE METRICS}"
        },
        "definition": "compartments()",
        "description": "Compartment for your Resources",
        "hide": 0,
        "includeAll": false,
        "label": "Compartment",
        "multi": false,
        "name": "compartment",
        "options": [],
        "query": "compartments()",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {},
        "datasource": {
          "type": "oci-metrics-datasource",
          "uid": "${DS_ORACLE_CLOUD INFRASTRUCTURE METRICS}"
        },
        "definition": "regions()",
        "description": "Select Region where your resources are located for Monitoring",
        "hide": 0,
        "includeAll": false,
        "label": "Region",
        "multi": false,
        "name": "region",
        "options": [],
        "query": "regions()",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "OCI Compute Instance Monitoring",
  "uid": "Z2hXqiUGz",
  "version": 6,
  "weekStart": ""
}