diff --git a/knowlege-content/grafana-on-oci/Dashboards/APM-Dashboard.json b/knowlege-content/grafana-on-oci/Dashboards/APM-Dashboard.json new file mode 100644 index 0000000..d13b561 --- /dev/null +++ b/knowlege-content/grafana-on-oci/Dashboards/APM-Dashboard.json @@ -0,0 +1,1476 @@ +{ + "__inputs": [ + { + "name": "DS_OCI-METRICS-DATASOURCE", + "label": "oci-metrics-datasource", + "description": "", + "type": "datasource", + "pluginId": "oci-metrics-datasource", + "pluginName": "Oracle Cloud Infrastructure Metrics" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.1.0" + }, + { + "type": "datasource", + "id": "oci-metrics-datasource", + "name": "Oracle Cloud Infrastructure Metrics", + "version": "5.5.1" + }, + { + "type": "panel", + "id": "piechart", + "name": "Pie chart", + "version": "" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "gridPos": { + "h": 15, + "w": 12, + "x": 6, + "y": 0 + }, + "id": 9, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "

Application Performance Monitoring Dashboard Instructions

\n

Click here for APM Documentation

\n
\n

How to use the Application Performance Monitoring Dashboard

\n

This dashboard provides examples that can be edited or duplicated to show APM metrices.

\n
\n\n\n

Step-by-Step Instructions:

\n
    \n
  1. Choose a Region
  2. \n
  3. Choose a Compartment
  4. \n
  5. Enter namespace: oracle_apm_moonitoring
  6. \n
  7. No Resource Group required at present
  8. \n
  9. Experiment with Dimensions, in most cases AppserverName, Hostname, AppserverType should work
  10. \n
\n\n

Important Notes:

\n
    \n
  1. This dashboard is intended for use with the OCI APM services.
  2. \n
  3. Please ensure that you have the necessary permissions and credentials to access the dashboard.
  4. ", + "mode": "html" + }, + "pluginVersion": "11.1.0", + "title": "Instructions", + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 15 + }, + "id": 1, + "options": { + "displayLabels": [ + "percent" + ], + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": " Hostname: {{Hostname}}, Application: {{AppserverType}}", + "metric": "Uptime", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "Uptime[5m]{$dimension}.count()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "count()", + "statisticLabel": "count", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Uptime by HostName ($Dimension)", + "type": "piechart" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 15 + }, + "id": 8, + "options": { + "displayMode": "lcd", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "Thread Count ", + "metric": "ThreadCount", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "ThreadCount[1m]{$dimension}.sum()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "sum()", + "statisticLabel": "sum", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "Thread Waiting Count", + "metric": "ThreadWaitingCount", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "ThreadWaitingCount[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "Thread Deadlock Count", + "metric": "ThreadDeadlockCount", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "ThreadDeadlockCount[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "C", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Thread Waiting, Dead Lock Count ", + "type": "bargauge" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": true, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "always", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "line+area" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 10 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "Hostname: {{HostNames}}, Apllication: {{AppserverType}} ", + "metric": "ProcessCpuLoad", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "ProcessCpuLoad[5m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "CPU process Load {Dimension}", + "type": "timeseries" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 3, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 31 + }, + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "Hostname: {{HostNames}}, Apllication: {{AppserverType}} ", + "metric": "ProcessCpuTime", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "ProcessCpuTime[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "CPU Process Time {Dimension}", + "type": "timeseries" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "This chart shows how much heap memory is committed versus how much is actually used over time. It helps in understanding the efficiency of memory usage and identifying potential memory issues.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 6, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "Heap Committed ", + "metric": "HeapCommitted", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "HeapCommitted[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "Heap Used ", + "metric": "HeapUsed", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "HeapUsed[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Heap Commited and Heap Used for a given Host", + "type": "stat" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "Current committed memory for both old and young generations, which is useful for real-time monitoring.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 38 + }, + "id": 7, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "GC After Old Committed", + "metric": "GcAfterOldCommitted", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "GcAfterOldCommitted[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "GC After Young Committed ", + "metric": "GcAfterYoungCommitted", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "GcAfterYoungCommitted[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Committed GC After Old v After Young for a given Host", + "type": "stat" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "Shows how much memory is being used after each GC event. A gradual increase in memory usage can indicate a memory leak.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 23, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decmbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 46 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "GC After Old Used {{HostNames}}", + "metric": "GcAfterOldUsed", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "GcAfterOldUsed[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "GC After Young Used {{HostNames}}", + "metric": "GcAfterYoungUsed", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "GcAfterYoungUsed[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Used GC After Old v After Young for a given Host", + "type": "timeseries" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "Track how often garbage collection is happening (both young and old generations) Track how much time is being spent on garbage collection (both young and old generations). Long GC times can indicate performance issues.\n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "always", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "dtdurationms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 54 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "GC Young Total - {{HostNames}}", + "metric": "GcYoungTotalTime", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "GcYoungTotalTime[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "GC Old Total - {{HostNames}}", + "metric": "GcOldTotalTime", + "metricNames": [ + "BrowserAgentInjectionCount", + "CircuitBreakerActivations", + "DataQueueUsageMaxPercent", + "DataRejectCount", + "DataUploadTime", + "DataUploaded", + "ErrorCount", + "ExporterQueueUsageMaxPercent", + "SpanFinishCount", + "SpanStartCount", + "SpanTimedOutCount", + "TotalSpanCount", + "TotalSpanSampledCount", + "TotalTraceCount", + "TotalTraceSampledCount", + "UploadCount", + "UploadErrorCount" + ], + "namespace": "$namespace", + "queryText": "GcOldTotalTime[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "NoResourceGroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Total Time GC Young v Old Total for a given Hostname", + "type": "timeseries" + } + ], + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "regions()", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "compartments()", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "compartment", + "options": [], + "query": "compartments()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "namespaces($region,$compartment)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "namespace", + "options": [], + "query": "namespaces($region,$compartment)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "resourcegroups($region, $compartment, $namespace)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "resourcegroup", + "options": [], + "query": "resourcegroups($region, $compartment, $namespace)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "dimensions($region, $compartment, $namespace, $metric, $resourcegroup)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "dimension", + "options": [], + "query": "dimensions($region, $compartment, $namespace, $metric, $resourcegroup)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "metrics($region,$compartment, $namespace, $resourcegroup)", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "metric", + "options": [], + "query": "metrics($region,$compartment, $namespace, $resourcegroup)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "APM Monitoring", + "uid": "fdw7bd7fejvgga", + "version": 27, + "weekStart": "" +} \ No newline at end of file diff --git a/knowlege-content/grafana-on-oci/Dashboards/Database-Management-Dashboard.json b/knowlege-content/grafana-on-oci/Dashboards/Database-Management-Dashboard.json new file mode 100644 index 0000000..4ed5b4f --- /dev/null +++ b/knowlege-content/grafana-on-oci/Dashboards/Database-Management-Dashboard.json @@ -0,0 +1,1036 @@ +{ + "__inputs": [ + { + "name": "DS_OCI-METRICS-DATASOURCE", + "label": "oci-metrics-datasource", + "description": "", + "type": "datasource", + "pluginId": "oci-metrics-datasource", + "pluginName": "Oracle Cloud Infrastructure Metrics" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "panel", + "id": "gauge", + "name": "Gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.1.0" + }, + { + "type": "datasource", + "id": "oci-metrics-datasource", + "name": "Oracle Cloud Infrastructure Metrics", + "version": "5.5.1" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "gridPos": { + "h": 13, + "w": 16, + "x": 5, + "y": 0 + }, + "id": 10, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "

    Database Management Dashboard Instructions

    \n

    Click here for Database Management Documentation

    \n
    \n

    How to use the Database Management Dashboard

    \n

    This dashboard provides examples that can be edited or duplicated to show Database Management metrices.

    \n
    \n\n\n

    Step-by-Step Instructions:

    \n
      \n
    1. Choose a Region
    2. \n
    3. Choose a Compartment
    4. \n
    5. Enter namespace: oracle_oci_database
    6. \n
    7. No Resource Groupis required at the moment
    8. \n
    9. Experiment with Dimensions, in most cases resourceName , hostName, deploymentType should work
    10. \n
    \n\n

    Important Notes:

    \n
      \n
    1. This dashboard is intended for use with the OCI Database Manaement Services.
    2. \n
    3. Please ensure that you have the necessary permissions and credentials to access the dashboard.
    4. \n", + "mode": "html" + }, + "pluginVersion": "11.1.0", + "title": "Instructions", + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "0": { + "color": "red", + "index": 1, + "text": "Down" + }, + "1": { + "color": "green", + "index": 0, + "text": "UP " + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 13 + }, + "id": 6, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceName}}", + "metric": "MonitoringStatus", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "MonitoringStatus[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Status", + "type": "stat" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 13 + }, + "id": 2, + "options": { + "displayMode": "gradient", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{hostName}} ", + "metric": "CpuCount", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "CpuCount[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "CPU Count ", + "type": "bargauge" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 60 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 21 + }, + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": true, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{hostName}} ", + "metric": "CpuUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "CpuUtilization[1m]{$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "CPU Utilisation ", + "type": "stat" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "deckbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 21 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "memoryType=\"PGA\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceName}} {{memoryType}}", + "metric": "MemoryUsage", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "MemoryUsage[1m]{memoryType=\"PGA\",$dimension}.sum()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "sum()", + "statisticLabel": "sum", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "memoryType=\"SGA\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceName}} SGA", + "metric": "MemoryUsage", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "MemoryUsage[1m]{memoryType=\"SGA\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "PGA and SGA Memory Usage ", + "type": "timeseries" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 29 + }, + "id": 8, + "options": { + "displayMode": "lcd", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1d]", + "intervalLabel": "1 day", + "legendFormat": "{{resourceName}}", + "metric": "StorageUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "StorageUtilization[1d]{$dimension}.avg()", + "queryTextRaw": "StorageUtilization[240m].mean()", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Storage Utilisation per day", + "type": "bargauge" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "gauge" + }, + "filterable": false, + "inspect": false + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decgbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 37 + }, + "id": 5, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 1, + "showHeader": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1d]", + "intervalLabel": "1 day", + "legendFormat": "{{resourceName}} ", + "metric": "StorageAllocated", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "StorageAllocated[1d]{$dimension}.sum()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "sum()", + "statisticLabel": "sum", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Storage Allocated per day", + "type": "table" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green" + }, + { + "color": "orange", + "value": 70 + }, + { + "color": "red", + "value": 85 + } + ] + }, + "unit": "decmbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 37 + }, + "id": 9, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1d]", + "intervalLabel": "1 day", + "legendFormat": "{{resourceName}} ", + "metric": "StorageUsed", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "StorageUsed[1d]{$dimension}.sum()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "sum()", + "statisticLabel": "sum", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Storage Used per day", + "type": "gauge" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 800 + }, + { + "color": "red", + "value": 1000 + } + ] + }, + "unit": "decmbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 45 + }, + "id": 7, + "options": { + "cellHeight": "md", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{hostName}}", + "metric": "CpuUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "StorageUsedByTablespace[240m].groupBy(tablespaceName).mean()", + "queryTextRaw": "StorageUsedByTablespace[240m].groupBy(tablespaceName).mean()", + "rawQuery": false, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Storage Used By TableSpace every 5hrs", + "type": "table" + } + ], + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "regions()", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "compartments()", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "compartment", + "options": [], + "query": "compartments()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "namespaces($region,$compartment)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "namespace", + "options": [], + "query": "namespaces($region,$compartment)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "resourcegroups($region, $compartment, $namespace)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "resourcegroup", + "options": [], + "query": "resourcegroups($region, $compartment, $namespace)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "dimensions($region, $compartment, $namespace, $metric, $resourcegroup)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "dimension", + "options": [], + "query": "dimensions($region, $compartment, $namespace, $metric, $resourcegroup)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "metrics($region,$compartment, $namespace, $resourcegroup)", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "metric", + "options": [], + "query": "metrics($region,$compartment, $namespace, $resourcegroup)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Database-Management", + "uid": "bdwrp58zojn5sa", + "version": 36, + "weekStart": "" +} \ No newline at end of file diff --git a/knowlege-content/grafana-on-oci/Dashboards/OPSI-Dashboard.json b/knowlege-content/grafana-on-oci/Dashboards/OPSI-Dashboard.json new file mode 100644 index 0000000..7d7af0c --- /dev/null +++ b/knowlege-content/grafana-on-oci/Dashboards/OPSI-Dashboard.json @@ -0,0 +1,808 @@ +{ + "__inputs": [ + { + "name": "DS_OCI-METRICS-DATASOURCE", + "label": "oci-metrics-datasource", + "description": "", + "type": "datasource", + "pluginId": "oci-metrics-datasource", + "pluginName": "Oracle Cloud Infrastructure Metrics" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.1.0" + }, + { + "type": "datasource", + "id": "oci-metrics-datasource", + "name": "Oracle Cloud Infrastructure Metrics", + "version": "5.5.1" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "state-timeline", + "name": "State timeline", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "gridPos": { + "h": 11, + "w": 13, + "x": 5, + "y": 0 + }, + "id": 4, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "\n\n

      Operational Insights Dashboard Instructions

      \n

      Click here for OPSI Documentation

      \n

      Instructions: How to use the Operational Insights Dashboard

      \n

      This dashboard provides examples that can be edited or duplicated to show High and Low utilization of various components.

      \n\n

      Step-by-Step Instructions:

      \n
        \n
      1. Select Region
      2. \n
      3. Select Compartment
      4. \n
      5. Enter namespace: oci_operational_insights
      6. \n
      \n\n

      Important Notes:

      \n
        \n
      1. This dashboard is intended for use with the OCI Operational Insights service.
      2. \n
      3. Please ensure that you have the necessary permissions and credentials to access the dashboard.
      4. \n
      \n\n\n", + "mode": "html" + }, + "pluginVersion": "11.1.0", + "title": "Instructions ", + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-RdYlGr" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "color": "red", + "index": 0, + "text": "weeks" + }, + "to": 1 + }, + "type": "range" + }, + { + "options": { + "from": 2, + "result": { + "color": "blue", + "index": 1 + }, + "to": 100 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "d" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 11 + }, + "id": 3, + "options": { + "displayMode": "basic", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceDisplayName}}", + "metric": "select metric", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "DaysToReachHighUtilization[1d]{resourceMetric = \"Storage\", resourceType = \"EXTERNAL-HOST\"}.mean() ", + "queryTextRaw": "DaysToReachHighUtilization[1d]{resourceMetric = \"Storage\", resourceType = \"EXTERNAL-HOST\"}.mean() ", + "rawQuery": false, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "select aggregation", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "External Hosts Reaching High Storage Utilisation within days/weeks/months", + "type": "bargauge" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-RdYlGr" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "color": "red", + "index": 0, + "text": "1 or less days" + }, + "to": 1 + }, + "type": "range" + }, + { + "options": { + "from": 2, + "result": { + "color": "blue", + "index": 1 + }, + "to": 100 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "d" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 11 + }, + "id": 5, + "options": { + "displayMode": "basic", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceDisplayName}}", + "metric": "select metric", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "DaysToReachLowUtilization[1d]{resourceMetric = \"Storage\", resourceType = \"EXTERNAL-HOST\"}.mean() ", + "queryTextRaw": "DaysToReachLowUtilization[1d]{resourceMetric = \"Storage\", resourceType = \"EXTERNAL-HOST\"}.mean() ", + "rawQuery": false, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "select aggregation", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "External Hosts Reaching Low Storage Utilisation within days/weeks/months", + "type": "bargauge" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 28 + } + ] + }, + "unit": "d" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 19 + }, + "id": 1, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "mergeValues": false, + "rowHeight": 0.84, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceDisplayName}}", + "metric": "select metric", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "DaysToReachHighUtilization[1d]{resourceMetric = \"CPU\", resourceType = \"EXTERNAL-HOST\"}.mean() ", + "queryTextRaw": "DaysToReachHighUtilization[1d]{resourceMetric = \"CPU\", resourceType = \"EXTERNAL-HOST\"}.mean() ", + "rawQuery": false, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "select aggregation", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "External Hosts Reaching High CPU Utilisation within days/weeks/months", + "type": "state-timeline" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 28 + } + ] + }, + "unit": "d" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 19 + }, + "id": 6, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "mergeValues": false, + "rowHeight": 0.84, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceDisplayName}}", + "metric": "select metric", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "DaysToReachLowUtilization[1d]{resourceMetric = \"CPU\", resourceType = \"EXTERNAL-HOST\"}.mean() ", + "queryTextRaw": "DaysToReachLowUtilization[1d]{resourceMetric = \"CPU\", resourceType = \"EXTERNAL-HOST\"}.mean() ", + "rawQuery": false, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "select aggregation", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "External Hosts Reaching Low CPU Utilisation within days/weeks/months", + "type": "state-timeline" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 0 + }, + { + "color": "green", + "value": 30 + } + ] + }, + "unit": "d" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 27 + }, + "id": 2, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceDisplayName}}", + "metric": "select metric", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "DaysToReachHighUtilization[1d]{resourceMetric = \"CPU\", resourceType = \"EXTERNAL-PDB\"}.mean() ", + "queryTextRaw": "DaysToReachHighUtilization[1d]{resourceMetric = \"CPU\", resourceType = \"EXTERNAL-PDB\"}.mean() ", + "rawQuery": false, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "select aggregation", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "External PDB Reaching High CPU Utilisation within days/weeks/months", + "type": "stat" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 0 + }, + { + "color": "green", + "value": 30 + } + ] + }, + "unit": "d" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 27 + }, + "id": 7, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceDisplayName}}", + "metric": "select metric", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "DaysToReachLowUtilization[1d]{resourceMetric = \"CPU\", resourceType = \"EXTERNAL-PDB\"}.mean() ", + "queryTextRaw": "DaysToReachLowUtilization[1d]{resourceMetric = \"CPU\", resourceType = \"EXTERNAL-PDB\"}.mean() ", + "rawQuery": false, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "select aggregation", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "External PDB Reaching Low CPU Utilisation within days/weeks/months", + "type": "stat" + } + ], + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "regions()", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "compartments()", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "compartment", + "options": [], + "query": "compartments()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "namespaces($region,$compartment)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "namespace", + "options": [], + "query": "namespaces($region,$compartment)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "resourcegroups($region, $compartment, $namespace)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "resourcegroup", + "options": [], + "query": "resourcegroups($region, $compartment, $namespace)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "dimensions($region, $compartment, $namespace, $metric, $resourcegroup)", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "dimension", + "options": [], + "query": "dimensions($region, $compartment, $namespace, $metric, $resourcegroup)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "metrics($region,$compartment, $namespace, $resourcegroup)", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "metric", + "options": [], + "query": "metrics($region,$compartment, $namespace, $resourcegroup)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "OPSI", + "uid": "bdx2eokcgfsw0f", + "version": 31, + "weekStart": "" +} \ No newline at end of file diff --git a/knowlege-content/grafana-on-oci/Dashboards/Stack-Monitoring-Dashboard.json b/knowlege-content/grafana-on-oci/Dashboards/Stack-Monitoring-Dashboard.json new file mode 100644 index 0000000..6278268 --- /dev/null +++ b/knowlege-content/grafana-on-oci/Dashboards/Stack-Monitoring-Dashboard.json @@ -0,0 +1,1099 @@ +{ + "__inputs": [ + { + "name": "DS_OCI-METRICS-DATASOURCE", + "label": "oci-metrics-datasource", + "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": "11.1.0" + }, + { + "type": "datasource", + "id": "oci-metrics-datasource", + "name": "Oracle Cloud Infrastructure Metrics", + "version": "5.5.1" + }, + { + "type": "panel", + "id": "piechart", + "name": "Pie chart", + "version": "" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "description": "namspac - oracle_appmgmt", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "gridPos": { + "h": 13, + "w": 15, + "x": 5, + "y": 0 + }, + "id": 9, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "

      Stack Monitoring Dashboard Instructions

      \n

      Click here for Stack Monitoring Documentation

      \n
      \n

      How to use the Stack Monitoring Dashboard

      \n

      This dashboard provides examples that can be edited or duplicated to show Stack Monitoring metrices.

      \n
      \n\n\n

      Step-by-Step Instructions:

      \n
        \n
      1. Choose a Region
      2. \n
      3. Choose a Compartment
      4. \n
      5. Enter namespace: oracle_appmgmt
      6. \n
      7. Select host for Resource Group
      8. \n
      9. Experiment with Dimensions, in most cases resourceName , hostType, osType should work
      10. \n
      \n\n

      Important Notes:

      \n
        \n
      1. This dashboard is intended for use with the OCI Stack Monitoring services.
      2. \n
      3. Please ensure that you have the necessary permissions and credentials to access the dashboard.
      4. ", + "mode": "html" + }, + "pluginVersion": "11.1.0", + "title": "Instructions", + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [ + { + "options": { + "0": { + "color": "red", + "index": 1, + "text": "Down" + }, + "1": { + "color": "green", + "index": 0, + "text": "UP" + } + }, + "type": "value" + }, + { + "options": { + "from": 2, + "result": { + "color": "super-light-yellow", + "index": 2, + "text": "Unknown" + }, + "to": 10 + }, + "type": "range" + } + ] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 13 + }, + "id": 3, + "options": { + "displayLabels": [ + "value" + ], + "legend": { + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "values": [ + "percent" + ] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "distinctCount" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "{{resourceName}}", + "metric": "MonitoringStatus", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "MonitoringStatus[1m]{$dimension}.count()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "us-ashburn-1", + "resourcegroup": "$resourcegroup", + "statistic": "count()", + "statisticLabel": "count", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Status ", + "type": "piechart" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 70 + }, + { + "color": "red", + "value": 85 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 13 + }, + "id": 7, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": true, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "$dimension", + "fileSystemName=\"/\"" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "root (/) {{resourceName}}", + "metric": "FilesystemUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "FilesystemUtilization[1m]{$dimension,fileSystemName=\"/\"}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Root (/) Filesystem Utilisation", + "type": "gauge" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "Showing User and System CPU Utilisation with a maximum threshold of 80%", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Percent", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line+area" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 6, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"System\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "{{resourceName}} System CPU", + "metric": "CPUUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "CPUUtilization[1m]{Type=\"System\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"User\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "User CPU", + "metric": "CpuUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "CpuUtilization[1m]{Type=\"User\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Host CPU Utilisation - System and User", + "type": "timeseries" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "description": "Showing Idle and Total CPU Utilisation with a maximum threshold of 80%", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Percent", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line+area" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 29 + }, + "id": 1, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"Idle\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "[1m]", + "intervalLabel": "1 minute", + "legendFormat": "{{resourceName}} Idle CPU", + "metric": "CPUUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "CPUUtilization[1m]{Type=\"Idle\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "statisticLabel": "average", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"Total\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "Total CPU", + "metric": "CpuUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "CpuUtilization[1m]{Type=\"Total\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Host CPU Utilisation - Total and Idle", + "type": "timeseries" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 16, + "w": 12, + "x": 0, + "y": 37 + }, + "id": 8, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"Total\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceName}}", + "metric": "NetworkActivitySummary", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "NetworkActivitySummary[1m]{Type=\"Total\",$dimension}.max()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "max()", + "statisticLabel": "maximum", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Total Network Activity Summary", + "type": "timeseries" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "fieldMinMax": true, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 37 + }, + "id": 2, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "inverted", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": true, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"Total\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceName}} - Total Memory", + "metric": "MemoryUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "MemoryUtilization[1m]{Type=\"Total\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"Logical\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceName}} - Logical Memory", + "metric": "MemoryUtilization", + "metricNames": [ + "CpuLoad", + "CpuUsage", + "CpuUtilization", + "DiskActivitySummary", + "FilesystemUsage", + "FilesystemUtilization", + "InodeUsage", + "InodeUtilization", + "MemoryUsed", + "MemoryUtilization", + "MonitoringStatus", + "NetworkActivitySummary", + "PagingActivity", + "SwapUsage", + "SwapUtilization", + "TopProcessesCpuUsage", + "TopProcessesCpuUtilization", + "TopProcessesElapsedTime", + "TopProcessesMemoryUtilization", + "TopProcessesPhysicalMemoryUsage", + "TopProcessesVirtualMemoryUsage" + ], + "namespace": "$namespace", + "queryText": "MemoryUtilization[1m]{Type=\"Logical\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "host", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Total and Logical Host Memory Utilisation ", + "type": "stat" + }, + { + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 45 + }, + "id": 5, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": true, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.0", + "targets": [ + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"Free\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceName}} - Free Memory", + "metric": "SwapUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "SwapUtilization[1m]{Type=\"Free\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "A", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + }, + { + "compartment": "$compartment", + "compartmentName": "$compartment", + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "dimensionValues": [ + "Type=\"Used\"", + "$dimension" + ], + "groupBy": "select option (optional)", + "hide": false, + "interval": "select interval", + "legendFormat": "{{resourceName}} - Used Memory", + "metric": "SwapUtilization", + "metricNames": "$resourcegroup", + "namespace": "$namespace", + "queryText": "SwapUtilization[1m]{Type=\"Used\",$dimension}.avg()", + "queryTextRaw": "", + "rawQuery": true, + "refId": "B", + "region": "$region", + "resourcegroup": "$resourcegroup", + "statistic": "avg()", + "tagsValues": [], + "tenancy": "DEFAULT/", + "tenancyName": "DEFAULT/" + } + ], + "title": "Free and Used Swap Utilisation", + "type": "stat" + } + ], + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "regions()", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "compartments()", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "compartment", + "options": [], + "query": "compartments()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "namespaces($region,$compartment)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "namespace", + "options": [], + "query": "namespaces($region,$compartment)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "resourcegroups($region, $compartment, $namespace)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "resourcegroup", + "options": [], + "query": "resourcegroups($region, $compartment, $namespace)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "dimensions($region, $compartment, $namespace, $metric, $resourcegroup)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "dimension", + "options": [], + "query": "dimensions($region, $compartment, $namespace, $metric, $resourcegroup)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "oci-metrics-datasource", + "uid": "${DS_OCI-METRICS-DATASOURCE}" + }, + "definition": "metrics($region,$compartment, $namespace, $resourcegroup)", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "metric", + "options": [], + "query": "metrics($region,$compartment, $namespace, $resourcegroup)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Stack-Monitoring", + "uid": "ddvazzhe5fwn4a", + "version": 10, + "weekStart": "" +} \ No newline at end of file diff --git a/knowlege-content/grafana-on-oci/README.md b/knowlege-content/grafana-on-oci/README.md index 3416a20..6adc064 100644 --- a/knowlege-content/grafana-on-oci/README.md +++ b/knowlege-content/grafana-on-oci/README.md @@ -84,6 +84,9 @@ Gather the following information before deployment: ### Configuring OCI Monitoring Data Source to add Instance Principle + +Next step is to add the OCI datasource and configure the Instance Principle. + 1. Navigate to the Menu on the left > Connections > Data Sources 2. Click on Add data source ![AddDataSource](Images/GF-AddDataSource.jpg) @@ -95,6 +98,11 @@ Gather the following information before deployment: 6. Click on Save & test and verify Success ![Success](Images/GF-ConnectionSuccess.jpg) + +Once the Success box has appeared this confirms the oci-metrics-datasource and Instance Principle have been configured. + + + ### Adding Custom Dashboards After deployment, you can import custom dashboards in Grafana to visualise your OCI metrics. @@ -109,6 +117,9 @@ All dashboards are located in the Dashboards directory (