diff --git a/pkg/cmd/grafana-server/__debug_bin b/pkg/cmd/grafana-server/__debug_bin new file mode 100755 index 00000000000..6c4390e593d Binary files /dev/null and b/pkg/cmd/grafana-server/__debug_bin differ diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/bigQuery.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/bigQuery.json deleted file mode 100644 index 2b460e8fc14..00000000000 --- a/public/app/plugins/datasource/cloud-monitoring/dashboards/bigQuery.json +++ /dev/null @@ -1,1451 +0,0 @@ -{ - "__inputs": [], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "7.3.0-pre" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "stackdriver", - "name": "Google Cloud Monitoring", - "version": "1.0.0" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "links": [], - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "hiddenSeries": false, - "id": 2, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "DELTA", - "metricType": "bigquery.googleapis.com/storage/uploaded_bytes_billed", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Uploaded bytes billed by label.project_id [SUM]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "hiddenSeries": false, - "id": 4, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "DELTA", - "metricType": "bigquery.googleapis.com/query/scanned_bytes", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "DELTA", - "metricType": "bigquery.googleapis.com/query/scanned_bytes_billed", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "DELTA", - "metricType": "bigquery.googleapis.com/storage/uploaded_bytes_billed", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Scanned bytes, billed and uploaded by label.project_id [SUM], ...", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "hiddenSeries": false, - "id": 6, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.dataset_id"], - "metricKind": "GAUGE", - "metricType": "bigquery.googleapis.com/storage/stored_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Stored bytes by label.dataset_id [SUM]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "hiddenSeries": false, - "id": 7, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "DELTA", - "metricType": "bigquery.googleapis.com/storage/uploaded_row_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Uploaded rows by label.project_id [SUM]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "hiddenSeries": false, - "id": 9, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "GAUGE", - "metricType": "bigquery.googleapis.com/storage/table_count", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Table count by label.project_id [SUM]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "hiddenSeries": false, - "id": 10, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "GAUGE", - "metricType": "bigquery.googleapis.com/job/num_in_flight", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Job count by label.project_id [SUM]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "hiddenSeries": false, - "id": 12, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_99", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "GAUGE", - "metricType": "bigquery.googleapis.com/query/execution_times", - "perSeriesAligner": "ALIGN_NEXT_OLDER", - "projectName": "$project", - "unit": "s", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Query execution times by label.project_id [99TH PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "hiddenSeries": false, - "id": 13, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "GAUGE", - "metricType": "bigquery.googleapis.com/query/count", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A", - "scenarioId": "random_walk" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Query count by label.project_id [SUM]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "hiddenSeries": false, - "id": 14, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "bigquery.googleapis.com/slots/allocated", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Slots used by project, reservation, and job type", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "hiddenSeries": false, - "id": 15, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "GAUGE", - "metricType": "bigquery.googleapis.com/slots/allocated", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Slots used by project, reservation, and job type by label.project_id [SUM]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "hiddenSeries": false, - "id": 17, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_99", - "filters": ["resource.label.service", "=", "bigquery.googleapis.com"], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "serviceruntime.googleapis.com/api/request_latencies", - "perSeriesAligner": "ALIGN_SUM", - "projectName": "$project", - "unit": "s", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Consumed API - Request latencies (filtered) (grouped) [99TH PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "hiddenSeries": false, - "id": 18, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "GAUGE", - "metricType": "bigquerybiengine.googleapis.com/reservation/total_bytes", - "perSeriesAligner": "ALIGN_INTERPOLATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.project_id"], - "metricKind": "GAUGE", - "metricType": "bigquerybiengine.googleapis.com/reservation/used_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Reservation total bytes by label.project_id [SUM], ...", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "schemaVersion": 26, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": "cloud-monitoring", - "value": "cloud-monitoring" - }, - "error": null, - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "datasource", - "options": [], - "query": "stackdriver", - "queryValue": "", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "allValue": null, - "current": {}, - "datasource": "$datasource", - "definition": "Google Cloud Monitoring - Projects", - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "project", - "options": [], - "query": { - "labelKey": "", - "loading": false, - "projectName": "$project", - "projects": [ - { - "name": "project-1", - "value": "project-1" - }, - { - "name": "project-2", - "value": "project-2" - } - ], - "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", - "selectedQueryType": "projects", - "selectedSLOService": "", - "selectedService": "actions.googleapis.com", - "sloServices": [] - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "BigQuery Query Monitoring", - "uid": "DjFjtrvMa", - "version": 5 -} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/cloud-storage-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloud-storage-monitoring.json new file mode 100644 index 00000000000..9a1b14ebaf1 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloud-storage-monitoring.json @@ -0,0 +1,593 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has 6 charts for the related [Cloud Storage metrics](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-storage), including `Total object count`, `Total bytes`, `Bucket object count`, `Bucket total bytes`, `Bucket - Received/Sent Bytes`, and `Bucket - Request count`." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "Cloud Storage Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Total object count", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "gcs_bucket"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "storage.googleapis.com/storage/object_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Total bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "gcs_bucket"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "storage.googleapis.com/storage/total_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DOUBLE" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Bucket object count", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "gcs_bucket"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "storage.googleapis.com/storage/object_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Bucket total bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "gcs_bucket"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "storage.googleapis.com/storage/total_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DOUBLE" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Bucket - Received bytes, Sent bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gcs_bucket"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "storage.googleapis.com/network/received_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gcs_bucket"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "storage.googleapis.com/network/sent_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Bucket - Request count", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gcs_bucket"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "storage.googleapis.com/api/request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Storage", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "Cloud Storage Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudfunctions-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudfunctions-monitoring.json new file mode 100644 index 00000000000..51eb04474e5 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudfunctions-monitoring.json @@ -0,0 +1,611 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has 5 charts for the related [Cloud Functions metrics](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-cloudfunctions), including `Active instances`, `Execution count`, `Execution times`, `Network egress`, and `Memory usage`." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "Cloud Functions Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Active instances", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudfunctions.googleapis.com/function/active_instances", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Execution count", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/execution_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Execution times", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_99", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/execution_times", + "projectName": "$project", + "unit": "ns", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/execution_times", + "projectName": "$project", + "unit": "ns", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/execution_times", + "projectName": "$project", + "unit": "ns", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Network egress", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_MAX", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/network_egress", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_MIN", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/network_egress", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_MEAN", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/network_egress", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Memory usage", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_MAX", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/user_memory_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_MIN", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/user_memory_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_MEAN", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "cloud_function"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudfunctions.googleapis.com/function/user_memory_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DISTRIBUTION" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Compute", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "Cloud Functions Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudSQL.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-monitoring.json similarity index 55% rename from public/app/plugins/datasource/cloud-monitoring/dashboards/cloudSQL.json rename to public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-monitoring.json index 53e154deab6..044f42318d6 100644 --- a/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudSQL.json +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-monitoring.json @@ -1,24 +1,9 @@ { "__inputs": [], "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "7.3.0-pre" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "stackdriver", - "name": "Google Cloud Monitoring", - "version": "1.0.0" - } + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } ], "annotations": { "list": [ @@ -45,39 +30,32 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "decimals": 2, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "hiddenSeries": false, - "id": 7, + "id": 1, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": false, "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", + "nullPointMode": "connected", + "options": { "alertThreshold": false }, + "percentage": true, + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -87,21 +65,20 @@ "steppedLine": false, "targets": [ { + "queryType": "metrics", + "refId": "A", "metricQuery": { - "aliasBy": "{{metric.label.state}}", - "alignmentPeriod": "cloud-monitoring-auto", + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", "crossSeriesReducer": "REDUCE_COUNT_TRUE", - "filters": [], + "perSeriesAligner": "ALIGN_NEXT_OLDER", + "filters": ["resource.type", "=", "cloudsql_database"], "groupBys": ["metric.label.state"], "metricKind": "GAUGE", "metricType": "cloudsql.googleapis.com/database/instance_state", - "perSeriesAligner": "ALIGN_NEXT_OLDER", "projectName": "$project", - "unit": "", "valueType": "BOOL" - }, - "queryType": "metrics", - "refId": "A" + } } ], "thresholds": [], @@ -109,41 +86,14 @@ "timeRegions": [], "timeShift": null, "title": "Instance state [COUNT]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "percent", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, @@ -151,39 +101,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "hiddenSeries": false, - "id": 9, + "id": 2, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -191,65 +132,37 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MEAN", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/up", - "perSeriesAligner": "ALIGN_INTERPOLATE", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Server up", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/up", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] }, { "aliasColors": {}, @@ -257,39 +170,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "hiddenSeries": false, - "id": 11, + "id": 3, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -297,65 +201,38 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/cpu/reserved_cores", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Total CPU reserved cores", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/cpu/reserved_cores", + "projectName": "$project", + "unit": "1", + "valueType": "DOUBLE" + } + } + ] }, { "aliasColors": {}, @@ -363,39 +240,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "hiddenSeries": false, - "id": 13, + "id": 4, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -403,99 +271,72 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/cpu/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "10^2.%", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/cpu/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "10^2.%", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/cpu/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "10^2.%", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "C" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "CPU utilization [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/cpu/utilization", + "projectName": "$project", + "unit": "10^2.%", + "valueType": "DOUBLE" + } }, { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/cpu/utilization", + "projectName": "$project", + "unit": "10^2.%", + "valueType": "DOUBLE" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/cpu/utilization", + "projectName": "$project", + "unit": "10^2.%", + "valueType": "DOUBLE" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] }, { "aliasColors": {}, @@ -503,39 +344,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, "hiddenSeries": false, - "id": 15, + "id": 5, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -543,82 +375,55 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/memory/quota", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "{{metric.name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/memory/usage", - "perSeriesAligner": "ALIGN_INTERPOLATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Total Memory quota, Memory usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/memory/quota", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } }, { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/memory/usage", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] }, { "aliasColors": {}, @@ -626,39 +431,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, "hiddenSeries": false, - "id": 16, + "id": 6, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -666,99 +462,72 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/memory/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/memory/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/memory/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Memory utilization [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/memory/utilization", + "projectName": "$project", + "unit": "1", + "valueType": "DOUBLE" + } }, { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/memory/utilization", + "projectName": "$project", + "unit": "1", + "valueType": "DOUBLE" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/memory/utilization", + "projectName": "$project", + "unit": "1", + "valueType": "DOUBLE" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] }, { "aliasColors": {}, @@ -766,39 +535,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, "hiddenSeries": false, - "id": 17, + "id": 7, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -806,82 +566,55 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/disk/quota", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "{{metric.name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/disk/bytes_used", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Total Disk quota, Bytes used", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/disk/quota", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } }, { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/disk/bytes_used", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] }, { "aliasColors": {}, @@ -889,39 +622,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, "hiddenSeries": false, - "id": 18, + "id": 8, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -929,99 +653,72 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/disk/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/disk/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "cloudsql.googleapis.com/database/disk/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Disk utilization [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "percentunit", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/disk/utilization", + "projectName": "$project", + "unit": "1", + "valueType": "DOUBLE" + } }, { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/disk/utilization", + "projectName": "$project", + "unit": "1", + "valueType": "DOUBLE" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/disk/utilization", + "projectName": "$project", + "unit": "1", + "valueType": "DOUBLE" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] }, { "aliasColors": {}, @@ -1029,39 +726,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, "hiddenSeries": false, - "id": 19, + "id": 9, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -1069,99 +757,72 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "cloudsql.googleapis.com/database/disk/read_ops_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "cloudsql.googleapis.com/database/disk/read_ops_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "cloudsql.googleapis.com/database/disk/read_ops_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Disk read IO [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/disk/read_ops_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } }, { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/disk/read_ops_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/disk/read_ops_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] }, { "aliasColors": {}, @@ -1169,39 +830,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 32 }, "hiddenSeries": false, - "id": 20, + "id": 10, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -1209,117 +861,86 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "cloudsql.googleapis.com/database/disk/write_ops_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "cloudsql.googleapis.com/database/disk/write_ops_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "cloudsql.googleapis.com/database/disk/write_ops_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Disk write IO [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/disk/write_ops_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } }, { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/disk/write_ops_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/disk/write_ops_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] } ], - "refresh": false, "schemaVersion": 26, "style": "dark", - "tags": [], + "tags": ["Storage", "Cloud Monitoring", "GCP"], "templating": { "list": [ { - "current": { - "selected": true, - "text": "cloud-monitoring", - "value": "cloud-monitoring" - }, + "current": {}, + "description": null, "error": null, "hide": 0, "includeAll": false, - "label": null, + "label": "Datasource", "multi": false, "name": "datasource", "options": [], @@ -1335,9 +956,11 @@ "current": {}, "datasource": "$datasource", "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, "hide": 0, "includeAll": false, - "label": null, + "label": "Project", "multi": false, "name": "project", "options": [], @@ -1345,23 +968,67 @@ "labelKey": "", "loading": false, "projectName": "$project", - "projects": [ - { - "name": "project-1", - "value": "project-1" - }, - { - "name": "project-2", - "value": "project-2" - } - ], + "projects": [], "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", "selectedQueryType": "projects", "selectedSLOService": "", "selectedService": "actions.googleapis.com", "sloServices": [] }, - "refresh": 2, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, "regex": "", "skipUrlSync": false, "sort": 0, @@ -1373,13 +1040,10 @@ } ] }, - "time": { - "from": "now-1h", - "to": "now" - }, + "time": { "from": "now-24h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Cloud SQL Monitoring", - "uid": "vRBxCcKGa", - "version": 3 + "uid": "", + "version": 5 } diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-mysql-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-mysql-monitoring.json new file mode 100644 index 00000000000..976c738be33 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-mysql-monitoring.json @@ -0,0 +1,607 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Cloud SQL Database - Queries", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/mysql/queries", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "MySQL Connections", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/network/connections", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Network bytes received by MySQL", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/mysql/received_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Network bytes sent by MySQL", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/mysql/sent_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "InnoDB dirty pages, InnoDB free pages, InnoDB total pages", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/mysql/innodb_buffer_pool_pages_dirty", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/mysql/innodb_buffer_pool_pages_free", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/mysql/innodb_buffer_pool_pages_total", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "InnoDB pages read, InnoDB pages written", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/mysql/innodb_pages_read", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/mysql/innodb_pages_written", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Storage", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "Cloud SQL(MySQL) Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-postgre-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-postgre-monitoring.json new file mode 100644 index 00000000000..14ea8d67aae --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudsql-postgre-monitoring.json @@ -0,0 +1,352 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Number of transactions", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudsql.googleapis.com/database/postgresql/transaction_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "PostgreSQL Connections", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/postgresql/num_backends", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Lag bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloudsql_database"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudsql.googleapis.com/database/postgresql/replication/replica_byte_lag", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Storage", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "Cloud SQL(PostgreSQL) Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudtasks-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudtasks-monitoring.json new file mode 100644 index 00000000000..5346fd355a6 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudtasks-monitoring.json @@ -0,0 +1,421 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Cloud Tasks Queue - API requests", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloud_tasks_queue"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudtasks.googleapis.com/api/request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Queue depth", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "cloud_tasks_queue"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "cloudtasks.googleapis.com/queue/depth", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Task attempt count", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "cloud_tasks_queue"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudtasks.googleapis.com/queue/task_attempt_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Task attempt delays", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "cloud_tasks_queue"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "cloudtasks.googleapis.com/queue/task_attempt_delays", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Tools", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "Cloud Tasks Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/dataprocessing-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/dataprocessing-monitoring.json new file mode 100644 index 00000000000..ff3ec4dcf5a --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/dataprocessing-monitoring.json @@ -0,0 +1,626 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard demonstrates 6 different charts in a single dashboard that provides a single view for the data processing pipeline [metrics](https://cloud.google.com/monitoring/api/metrics_gcp). Read the blog post [Use SRE principles to monitor pipelines with Cloud Monitoring dashboards](https://cloud.google.com/blog/products/management-tools/the-right-metrics-to-monitor-cloud-data-pipelines) for additional details." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "Data Processing Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Dataflow (traffic)", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "dataflow_job"], + "groupBys": ["resource.label.job_name"], + "metricKind": "DELTA", + "metricType": "dataflow.googleapis.com/job/elements_produced_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Pubsub (traffic)", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "pubsub_topic"], + "groupBys": ["metric.label.response_code"], + "metricKind": "DELTA", + "metricType": "pubsub.googleapis.com/topic/send_request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "BigQuery (traffic)", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "bigquery_dataset"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "bigquery.googleapis.com/storage/uploaded_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "System lag (latency)", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "dataflow_job"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "dataflow.googleapis.com/job/system_lag", + "projectName": "$project", + "unit": "s", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "dataflow_job"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "dataflow.googleapis.com/job/data_watermark_age", + "projectName": "$project", + "unit": "s", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Dataflow processing volume (throughput)", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "dataflow_job"], + "groupBys": ["resource.label.job_name"], + "metricKind": "GAUGE", + "metricType": "dataflow.googleapis.com/job/element_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Pipeline logging (errors)", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "bigquery_dataset", "AND", "metric.label.severity", "=", "ERROR"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "logging.googleapis.com/log_entry_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "pubsub_topic", "AND", "metric.label.severity", "=", "ERROR"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "logging.googleapis.com/log_entry_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "dataflow_job", "AND", "metric.label.severity", "=", "ERROR"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "logging.googleapis.com/log_entry_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Bigdata", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "Data Processing Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/firewall-insight-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/firewall-insight-monitoring.json new file mode 100644 index 00000000000..432a84a4f89 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/firewall-insight-monitoring.json @@ -0,0 +1,299 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has 2 charts for the [Firewall insights metrics](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-firewallinsights). Those two metrics are `Subnet Firewall Hit Counts` and `VM Firewall Hit Counts`." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "Firewall Insights Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Subnet Firewall Hit Counts", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_subnetwork"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "firewallinsights.googleapis.com/subnet/firewall_hit_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "VM Firewall Hit Counts", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "firewallinsights.googleapis.com/vm/firewall_hit_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Networking", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "Firewall Insights Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/gce-network-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/gce-network-monitoring.json new file mode 100644 index 00000000000..0e22135adc9 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/gce-network-monitoring.json @@ -0,0 +1,475 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has 4 charts for the related [GCE VM networking metrics](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-networking), including `GCE VM Instance - Egress bytes`, `GCE VM Instance - Ingress bytes`, `Number of probes`, and `GCE VM Instance - RTT latencies`." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "GCE Network Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - Egress bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "networking.googleapis.com/vm_flow/egress_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - Ingress bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "networking.googleapis.com/vm_flow/ingress_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Number of probes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_COUNT", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_zone_network_health"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "networking.googleapis.com/cloud_netslo/active_probing/probe_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - RTT latencies", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "networking.googleapis.com/vm_flow/rtt", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "networking.googleapis.com/vm_flow/rtt", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "networking.googleapis.com/vm_flow/rtt", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Networking", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "GCE Network Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/gce-vm-instance-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/gce-vm-instance-monitoring.json new file mode 100644 index 00000000000..d0c37b18c66 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/gce-vm-instance-monitoring.json @@ -0,0 +1,851 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has 10 charts for the related [GCE VM metrics](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute), including metrics for CPU, disk read/write, and network." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "GCE VM Instance Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - CPU Utilization", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "{{metric.label.instance_name}}", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "GAUGE", + "metricType": "compute.googleapis.com/instance/cpu/utilization", + "projectName": "$project", + "unit": "10^2.%", + "valueType": "DOUBLE" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - Uptime", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/instance/uptime", + "projectName": "$project", + "unit": "s{uptime}", + "valueType": "DOUBLE" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disk read operations", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/instance/disk/read_ops_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disk write operations", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/instance/disk/write_ops_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disk read bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/instance/disk/read_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disk write bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/instance/disk/write_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, + "hiddenSeries": false, + "id": 7, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - Received packets", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/instance/network/received_packets_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, + "hiddenSeries": false, + "id": 8, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - Sent packets count", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/nat/sent_packets_count", + "projectName": "$project", + "unit": "{packet}", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, + "hiddenSeries": false, + "id": 9, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - Received bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/instance/network/received_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 32 }, + "hiddenSeries": false, + "id": 10, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GCE VM Instance - Sent bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "gce_instance"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "compute.googleapis.com/instance/network/sent_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Compute", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "GCE VM Instance Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/gce.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/gce.json deleted file mode 100644 index 5bec75785ae..00000000000 --- a/public/app/plugins/datasource/cloud-monitoring/dashboards/gce.json +++ /dev/null @@ -1,1209 +0,0 @@ -{ - "__inputs": [], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "7.3.0-pre" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "stackdriver", - "name": "Google Cloud Monitoring", - "version": "1.0.0" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "links": [], - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "hiddenSeries": false, - "id": 2, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "compute.googleapis.com/instance/cpu/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "10^2.%", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "GCE VM Instance - CPU Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:106", - "format": "percent", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:107", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "hiddenSeries": false, - "id": 4, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/instance/uptime", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "s{uptime}", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "GCE VM Instance - Uptime", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:247", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:248", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "hiddenSeries": false, - "id": 6, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/instance/disk/read_ops_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk read operations", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:505", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:506", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "hiddenSeries": false, - "id": 7, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/instance/disk/write_ops_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk write operations", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:505", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:506", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "hiddenSeries": false, - "id": 8, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/instance/disk/read_bytes_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk read bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:505", - "format": "bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:506", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "hiddenSeries": false, - "id": 9, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/instance/disk/write_bytes_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disk write bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:505", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:506", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "hiddenSeries": false, - "id": 10, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/instance/network/received_packets_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "GCE VM Instance - Received packets count", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:505", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:506", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "hiddenSeries": false, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/nat/sent_packets_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "{packet}", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "GCE VM Instance - Sent packets count", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:505", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:506", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "hiddenSeries": false, - "id": 12, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/instance/network/received_bytes_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "GCE VM Instance - Received bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:505", - "format": "bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:506", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "hiddenSeries": false, - "id": 13, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{metric.label.instance_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_NONE", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "compute.googleapis.com/instance/network/sent_bytes_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "GCE VM Instance - Sent bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:505", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:506", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "schemaVersion": 26, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": "cloud-monitoring", - "value": "cloud-monitoring" - }, - "error": null, - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "datasource", - "options": [], - "query": "stackdriver", - "queryValue": "", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "allValue": null, - "current": {}, - "datasource": "$datasource", - "definition": "Google Cloud Monitoring - Projects", - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "project", - "options": [], - "query": { - "labelKey": "", - "loading": false, - "projectName": "$project", - "projects": [ - { - "name": "project-1", - "value": "project-1" - }, - { - "name": "project-2", - "value": "project-2" - } - ], - "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", - "selectedQueryType": "projects", - "selectedSLOService": "", - "selectedService": "actions.googleapis.com", - "sloServices": [] - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "GCE VM Instance Monitoring", - "uid": "4ZIrp9DMa", - "version": 1 -} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/gke-prometheus-pod-node-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/gke-prometheus-pod-node-monitoring.json new file mode 100644 index 00000000000..4620817baf8 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/gke-prometheus-pod-node-monitoring.json @@ -0,0 +1,591 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has example charts for metrics exported by Prometheus, for example metrics from [Kubernetes pod metrics](https://github.com/kubernetes/kube-state-metrics/blob/master/docs/pod-metrics.md)" + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "GKE Prometheus Pod/Node Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 2, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "connected", + "options": { "alertThreshold": false }, + "percentage": true, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": ["metric.label.phase"], + "metricKind": "", + "metricType": "external.googleapis.com/prometheus/kube_pod_status_phase", + "projectName": "$project", + "unit": "", + "valueType": "" + } + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "kube_pod_status_phase [SUM]", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "percent", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 2, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "connected", + "options": { "alertThreshold": false }, + "percentage": true, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": ["metric.label.namespace"], + "metricKind": "", + "metricType": "external.googleapis.com/prometheus/kube_pod_status_ready", + "projectName": "$project", + "unit": "", + "valueType": "" + } + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "kube_pod_status_ready [SUM]", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "percent", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 2, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "connected", + "options": { "alertThreshold": false }, + "percentage": true, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": ["metric.label.namespace"], + "metricKind": "", + "metricType": "external.googleapis.com/prometheus/kube_pod_container_status_running", + "projectName": "$project", + "unit": "", + "valueType": "" + } + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "kube_pod_container_status_running [SUM]", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "percent", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 2, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "connected", + "options": { "alertThreshold": false }, + "percentage": true, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": ["metric.label.condition"], + "metricKind": "", + "metricType": "external.googleapis.com/prometheus/kube_node_status_condition", + "projectName": "$project", + "unit": "", + "valueType": "" + } + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "kube_node_status_condition [SUM]", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "percent", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 2, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "connected", + "options": { "alertThreshold": false }, + "percentage": true, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": [], + "metricKind": "", + "metricType": "external.googleapis.com/prometheus/kube_node_status_capacity_pods", + "projectName": "$project", + "unit": "", + "valueType": "" + } + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "kube_node_status_capacity_pods", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "percent", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 2, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "connected", + "options": { "alertThreshold": false }, + "percentage": true, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_MEAN", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": [], + "metricKind": "", + "metricType": "external.googleapis.com/prometheus/kube_node_status_allocatable_pods", + "projectName": "$project", + "unit": "", + "valueType": "" + } + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "kube_node_status_allocatable_pods", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "percent", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null } + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Compute", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "GKE Prometheus Pod/Node Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/gke.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/gke.json deleted file mode 100644 index 0e0e7ee76c0..00000000000 --- a/public/app/plugins/datasource/cloud-monitoring/dashboards/gke.json +++ /dev/null @@ -1,2548 +0,0 @@ -{ - "__inputs": [], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "7.3.0-pre" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "stackdriver", - "name": "Google Cloud Monitoring", - "version": "1.0.0" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "links": [], - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "hiddenSeries": false, - "id": 7, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/request_cores", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "{cpu}", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/node/cpu/allocatable_cores", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "{cpu}", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/node/cpu/total_cores", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "{cpu}", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Node - Total, Request, Allocatable CPU cores", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "hiddenSeries": false, - "id": 8, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/node/memory/total_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/used_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/node/memory/allocatable_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Node - Total memory, Memory usage, Allocatable memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "hiddenSeries": false, - "id": 9, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MEAN", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/node/network/received_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MAX", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/node/network/received_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Node - Bytes received [MEAN], Bytes received [MAX]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "hiddenSeries": false, - "id": 10, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MEAN", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/node/network/sent_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MAX", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/node/network/sent_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Node - Bytes transmitted [MEAN], Bytes transmitted [MAX]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "hiddenSeries": false, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/node/ephemeral_storage/total_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/node/ephemeral_storage/allocatable_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/ephemeral_storage/used_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Node - Total ephemeral storage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "hiddenSeries": false, - "id": 12, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/node/ephemeral_storage/inodes_total", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/node/ephemeral_storage/inodes_free", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/ephemeral_storage/used_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Node - Total inodes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "hiddenSeries": false, - "id": 13, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/limit_cores", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "{cpu}", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/request_cores", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "{cpu}", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Container - Total CPU Cores limit, Cores request", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "hiddenSeries": false, - "id": 14, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/limit_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/request_cores", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "{cpu}", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/request_cores", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "{cpu}", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Container - CPU cores limit utilization[95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "hiddenSeries": false, - "id": 15, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/request_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/request_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/cpu/request_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Container - CPU request utilization [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "hiddenSeries": false, - "id": 16, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/limit_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/request_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Container - Memory limit, Memory request", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "hiddenSeries": false, - "id": 17, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/limit_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/limit_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/limit_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Container - Memory limit utilization[90/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "hiddenSeries": false, - "id": 18, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/request_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "1", - "valueType": "DOUBLE" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/request_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/container/memory/request_utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Container - Memory request utilization [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "hiddenSeries": false, - "id": 19, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/container/restart_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Container - Restart count [SUM]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "hiddenSeries": false, - "id": 20, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/pod/network/received_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/pod/network/received_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/pod/network/received_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Pod - Bytes received [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "hiddenSeries": false, - "id": 21, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/pod/network/sent_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/pod/network/sent_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "CUMULATIVE", - "metricType": "kubernetes.io/pod/network/sent_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Pod - Bytes transmitted [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "hiddenSeries": false, - "id": 22, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_MIN", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MIN", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/total_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_MAX", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MAX", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/total_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_MEAN", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MEAN", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/total_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Pod - Volume capacity", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "hiddenSeries": false, - "id": 23, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_MIN", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MIN", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/used_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_MAX", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MAX", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/used_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_MEAN", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_MEAN", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/used_bytes", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Pod - Volume capacity", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 64 - }, - "hiddenSeries": false, - "id": 24, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.0-pre", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "GAUGE", - "metricType": "kubernetes.io/pod/volume/utilization", - "perSeriesAligner": "ALIGN_MEAN", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Pod - Volume utilization [95/50/5 PERCENTILE]", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "schemaVersion": 26, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": "cloud-monitoring", - "value": "cloud-monitoring" - }, - "error": null, - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "datasource", - "options": [], - "query": "stackdriver", - "queryValue": "", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "allValue": null, - "current": {}, - "datasource": "$datasource", - "definition": "Google Cloud Monitoring - Projects", - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "project", - "options": [], - "query": { - "labelKey": "", - "loading": false, - "projectName": "$project", - "projects": [ - { - "name": "project-1", - "value": "project-1" - }, - { - "name": "project-2", - "value": "project-2" - } - ], - "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", - "selectedQueryType": "projects", - "selectedSLOService": "", - "selectedService": "actions.googleapis.com", - "sloServices": [] - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "GKE Cluster Monitoring", - "uid": "Z1HlU5FMa", - "version": 4 -} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/https-lb-backend-services-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/https-lb-backend-services-monitoring.json new file mode 100644 index 00000000000..4ba3cd0adeb --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/https-lb-backend-services-monitoring.json @@ -0,0 +1,885 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Backend Request Count by Code Class", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [ + "resource.label.url_map_name", + "resource.label.backend_target_name", + "metric.label.response_code_class" + ], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Backend Request Count by Path", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [ + "resource.label.url_map_name", + "resource.label.backend_target_name", + "resource.label.matched_url_path_rule" + ], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Error Rate", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "mqlQuery": { + "projectName": "$project", + "query": "fetch https_lb_rule::loadbalancing.googleapis.com/https/backend_request_count\n| { t_0:\n filter metric.response_code_class = 500\n | align delta()\n | group_by [resource.backend_target_name],\n [value_backend_request_count_aggregate:\n aggregate(value.backend_request_count)]\n ; t_1:\n ident\n | align delta()\n | group_by [resource.backend_target_name],\n [value_backend_request_count_aggregate:\n aggregate(value.backend_request_count)] }\n| outer_join [0]\n| value\n [t_0_value_backend_request_count_aggregate_div:\n div(t_0.value_backend_request_count_aggregate,\n t_1.value_backend_request_count_aggregate)]", + "expression": "fetch https_lb_rule::loadbalancing.googleapis.com/https/backend_request_count\n| { t_0:\n filter metric.response_code_class = 500\n | align delta()\n | group_by [resource.backend_target_name],\n [value_backend_request_count_aggregate:\n aggregate(value.backend_request_count)]\n ; t_1:\n ident\n | align delta()\n | group_by [resource.backend_target_name],\n [value_backend_request_count_aggregate:\n aggregate(value.backend_request_count)] }\n| outer_join [0]\n| value\n [t_0_value_backend_request_count_aggregate_div:\n div(t_0.value_backend_request_count_aggregate,\n t_1.value_backend_request_count_aggregate)]", + "aliasBy": "" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Error Count by Path and Code", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "mqlQuery": { + "projectName": "$project", + "query": "fetch https_lb_rule::loadbalancing.googleapis.com/https/backend_request_count\n| filter metric.response_code_class = 500\n| align delta()\n| group_by\n [resource.matched_url_path_rule, resource.backend_target_name,\n metric.response_code],\n [value_backend_request_count_aggregate:\n aggregate(value.backend_request_count)]", + "expression": "fetch https_lb_rule::loadbalancing.googleapis.com/https/backend_request_count\n| filter metric.response_code_class = 500\n| align delta()\n| group_by\n [resource.matched_url_path_rule, resource.backend_target_name,\n metric.response_code],\n [value_backend_request_count_aggregate:\n aggregate(value.backend_request_count)]", + "aliasBy": "" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Backend Latency", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name", "resource.label.backend_target_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Backend P50 Latency by Path", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [ + "resource.label.url_map_name", + "resource.label.backend_target_name", + "resource.label.matched_url_path_rule" + ], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, + "hiddenSeries": false, + "id": 7, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Backend Request Bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name", "resource.label.backend_target_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_request_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, + "hiddenSeries": false, + "id": 8, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Backend Request Bytes by Path", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [ + "resource.label.url_map_name", + "resource.label.backend_target_name", + "resource.label.matched_url_path_rule" + ], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_request_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, + "hiddenSeries": false, + "id": 9, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Backend Response Bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name", "resource.label.backend_target_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_response_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 32 }, + "hiddenSeries": false, + "id": 10, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Backend Response Bytes by Path", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [ + "resource.label.url_map_name", + "resource.label.backend_target_name", + "resource.label.matched_url_path_rule" + ], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_response_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Networking", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "HTTP/S LB Backend Services", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/loadBalancer.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/https-loadbalancer-monitoring.json similarity index 54% rename from public/app/plugins/datasource/cloud-monitoring/dashboards/loadBalancer.json rename to public/app/plugins/datasource/cloud-monitoring/dashboards/https-loadbalancer-monitoring.json index 2eaf3ed3313..efb96309f22 100644 --- a/public/app/plugins/datasource/cloud-monitoring/dashboards/loadBalancer.json +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/https-loadbalancer-monitoring.json @@ -1,24 +1,9 @@ { "__inputs": [], "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "7.3.0-pre" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "stackdriver", - "name": "Google Cloud Monitoring", - "version": "1.0.0" - } + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } ], "annotations": { "list": [ @@ -39,45 +24,52 @@ "id": null, "links": [], "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has 9 charts for the related [HTTP/s load balancer metrics](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-loadbalancing), including `Request Count`, `Total Latency`, `Request Bytes`, `Response Bytes`, `Frontend RTT`, `Backend Request Count`, `Backend Request Bytes`, and `Backend Response Bytes`." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "HTTP/S Load Balancer Monitoring", + "type": "text" + }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "hiddenSeries": false, - "id": 7, + "id": 1, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -85,65 +77,38 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/request_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Request Count", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] }, { "aliasColors": {}, @@ -151,40 +116,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "description": "", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "hiddenSeries": false, - "id": 8, + "id": 2, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -192,65 +147,38 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/total_latencies", - "perSeriesAligner": "ALIGN_PERCENTILE_99", - "projectName": "$project", - "unit": "ms", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Total Latency", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/total_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + } + ] }, { "aliasColors": {}, @@ -258,39 +186,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "hiddenSeries": false, - "id": 9, + "id": 3, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -298,65 +217,38 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/request_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Request Bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/request_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] }, { "aliasColors": {}, @@ -364,39 +256,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "hiddenSeries": false, - "id": 10, + "id": 4, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -404,65 +287,38 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/response_bytes_count", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Response Bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/response_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] }, { "aliasColors": {}, @@ -470,39 +326,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, "hiddenSeries": false, - "id": 12, + "id": 5, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -510,99 +357,72 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "ALIGN_DELTA REDUCE_PERCENTILE_95 {{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/frontend_tcp_rtt", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "ms", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "ALIGN_PERCENTILE_99 REDUCE_PERCENTILE_05 {{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/frontend_tcp_rtt", - "perSeriesAligner": "ALIGN_PERCENTILE_99", - "projectName": "$project", - "unit": "ms", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "ALIGN_DELTA REDUCE_PERCENTILE_50 {{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/frontend_tcp_rtt", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "ms", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "C" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Frontend RTT [95/50/5 PERCENTILE].", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/frontend_tcp_rtt", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } }, { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/frontend_tcp_rtt", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/frontend_tcp_rtt", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] }, { "aliasColors": {}, @@ -610,39 +430,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, "hiddenSeries": false, - "id": 14, + "id": 6, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -650,65 +461,38 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/backend_request_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "1", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Backend Request Count", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] }, { "aliasColors": {}, @@ -716,39 +500,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, "hiddenSeries": false, - "id": 15, + "id": 7, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -756,65 +531,38 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/backend_request_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Backend Request Bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_request_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] }, { "aliasColors": {}, @@ -822,39 +570,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, "hiddenSeries": false, - "id": 16, + "id": 8, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -862,65 +601,38 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "{{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_SUM", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/backend_response_bytes_count", - "perSeriesAligner": "ALIGN_RATE", - "projectName": "$project", - "unit": "By", - "valueType": "INT64" - }, - "queryType": "metrics", - "refId": "A" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Backend Response Bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ - { - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_response_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] }, { "aliasColors": {}, @@ -928,39 +640,30 @@ "dashLength": 10, "dashes": false, "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, "hiddenSeries": false, - "id": 17, + "id": 9, "legend": { + "alignAsTable": false, "avg": false, "current": false, "max": false, "min": false, + "rightSide": false, "show": true, "total": false, - "values": false + "values": false, + "sideWidth": 220 }, "lines": true, "linewidth": 1, "nullPointMode": "null", - "options": { - "alertThreshold": true - }, + "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.0-pre", + "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", @@ -968,116 +671,86 @@ "spaceLength": 10, "stack": false, "steppedLine": false, - "targets": [ - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_95 {{resource.label.url_map_name}}", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_95", - "filters": [], - "groupBys": ["resource.label.url_map_name"], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/backend_latencies", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "ms", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "A" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_05", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_05", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/backend_latencies", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "ms", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "B" - }, - { - "metricQuery": { - "aliasBy": "REDUCE_PERCENTILE_50", - "alignmentPeriod": "cloud-monitoring-auto", - "crossSeriesReducer": "REDUCE_PERCENTILE_50", - "filters": [], - "groupBys": [], - "metricKind": "DELTA", - "metricType": "loadbalancing.googleapis.com/https/backend_latencies", - "perSeriesAligner": "ALIGN_DELTA", - "projectName": "$project", - "unit": "ms", - "valueType": "DISTRIBUTION" - }, - "queryType": "metrics", - "refId": "C" - } - ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Backend Latency", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ { - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": ["resource.label.url_map_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } }, { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "https_lb_rule"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/https/backend_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + ] } ], "schemaVersion": 26, "style": "dark", - "tags": [], + "tags": ["Networking", "Cloud Monitoring", "GCP"], "templating": { "list": [ { - "current": { - "selected": true, - "text": "cloud-monitoring", - "value": "cloud-monitoring" - }, + "current": {}, + "description": null, "error": null, "hide": 0, "includeAll": false, - "label": null, + "label": "Datasource", "multi": false, "name": "datasource", "options": [], @@ -1093,9 +766,11 @@ "current": {}, "datasource": "$datasource", "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, "hide": 0, "includeAll": false, - "label": null, + "label": "Project", "multi": false, "name": "project", "options": [], @@ -1103,23 +778,67 @@ "labelKey": "", "loading": false, "projectName": "$project", - "projects": [ - { - "name": "project-1", - "value": "project-1" - }, - { - "name": "project-2", - "value": "project-2" - } - ], + "projects": [], "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", "selectedQueryType": "projects", "selectedSLOService": "", "selectedService": "actions.googleapis.com", "sloServices": [] }, - "refresh": 2, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, "regex": "", "skipUrlSync": false, "sort": 0, @@ -1131,13 +850,10 @@ } ] }, - "time": { - "from": "now-3h", - "to": "now" - }, + "time": { "from": "now-24h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "HTTP/S GCP Load Balancer Monitoring", - "uid": "WO1Za5FMl", - "version": 3 + "uid": "", + "version": 5 } diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/micro-service-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/micro-service-monitoring.json new file mode 100644 index 00000000000..848280f7155 --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/micro-service-monitoring.json @@ -0,0 +1,713 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has 8 charts to display the metrics for the microservices in our [demo application](https://github.com/GoogleCloudPlatform/microservices-demo). The metrics include request count, response latencies, and request/response bytes." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "MicroService Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Server Request Count", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "istio.io/service/server/request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Server Response Latencies", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "istio.io/service/server/response_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Server Response Bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "istio.io/service/server/response_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Server Request Bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "k8s_container"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "istio.io/service/server/request_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Client Roundtrip Latencies", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "k8s_pod"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "istio.io/service/client/roundtrip_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Client Request Count", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "k8s_pod"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "istio.io/service/client/request_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, + "hiddenSeries": false, + "id": 7, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Client Response Bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "k8s_pod"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "istio.io/service/client/response_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, + "hiddenSeries": false, + "id": 8, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Client Request Bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "perSeriesAligner": "ALIGN_PERCENTILE_99", + "filters": ["resource.type", "=", "k8s_pod"], + "groupBys": [], + "metricKind": "DELTA", + "metricType": "istio.io/service/client/request_bytes", + "projectName": "$project", + "unit": "By", + "valueType": "DISTRIBUTION" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Microservices", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "MicroService Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/dashboards/network-tcp-loadbalancer-monitoring.json b/public/app/plugins/datasource/cloud-monitoring/dashboards/network-tcp-loadbalancer-monitoring.json new file mode 100644 index 00000000000..e37decc8cda --- /dev/null +++ b/public/app/plugins/datasource/cloud-monitoring/dashboards/network-tcp-loadbalancer-monitoring.json @@ -0,0 +1,545 @@ +{ + "__inputs": [], + "__requires": [ + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" }, + { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, + { "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 0 }, + "id": 0, + "options": { + "mode": "markdown", + "content": "This dashboard has 5 charts for the related [network TCP load balancer metrics](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-loadbalancing), including `RTT latencies`, `Ingress TCP packets`, `Ingress TCP bytes`, `Egress TCP packets`, and `Egress TCP bytes`." + }, + "pluginVersion": "7.4.0-pre", + "timeFrom": null, + "timeShift": null, + "title": "Network TCP Load Balancer Monitoring", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "RTT latencies [95/50/5 PERCENTILE]", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_95", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "tcp_lb_rule"], + "groupBys": ["resource.label.load_balancer_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/l3/external/rtt_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "B", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_05", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "tcp_lb_rule"], + "groupBys": ["resource.label.load_balancer_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/l3/external/rtt_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + }, + { + "queryType": "metrics", + "refId": "C", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_PERCENTILE_50", + "perSeriesAligner": "ALIGN_DELTA", + "filters": ["resource.type", "=", "tcp_lb_rule"], + "groupBys": ["resource.label.load_balancer_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/l3/external/rtt_latencies", + "projectName": "$project", + "unit": "ms", + "valueType": "DISTRIBUTION" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Ingress TCP packets", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "tcp_lb_rule"], + "groupBys": ["resource.label.load_balancer_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/l3/external/ingress_packets_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Ingress TCP bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "tcp_lb_rule"], + "groupBys": ["resource.label.load_balancer_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/l3/external/ingress_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Egress TCP packets", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "tcp_lb_rule"], + "groupBys": ["resource.label.load_balancer_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/l3/external/egress_packets_count", + "projectName": "$project", + "unit": "1", + "valueType": "INT64" + } + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, + "fill": 1, + "fillGradient": 0, + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false, + "sideWidth": 220 + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { "alertThreshold": true }, + "percentage": false, + "pluginVersion": "7.4.0-pre", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Egress TCP bytes", + "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, + "type": "graph", + "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, + "yaxes": [ + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, + { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } + ], + "yaxis": { "align": false, "alignLevel": null }, + "targets": [ + { + "queryType": "metrics", + "refId": "A", + "metricQuery": { + "aliasBy": "", + "alignmentPeriod": "$alignmentPeriod", + "crossSeriesReducer": "REDUCE_SUM", + "perSeriesAligner": "ALIGN_RATE", + "filters": ["resource.type", "=", "tcp_lb_rule"], + "groupBys": ["resource.label.load_balancer_name"], + "metricKind": "DELTA", + "metricType": "loadbalancing.googleapis.com/l3/external/egress_bytes_count", + "projectName": "$project", + "unit": "By", + "valueType": "INT64" + } + } + ] + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": ["Networking", "Cloud Monitoring", "GCP"], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "stackdriver", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "Google Cloud Monitoring - Projects", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Project", + "multi": false, + "name": "project", + "options": [], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [], + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "projects", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": { "selected": false, "text": "grafana auto", "value": "grafana-auto" }, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Alignment Period", + "multi": false, + "name": "alignmentPeriod", + "options": [ + { "selected": true, "text": "grafana auto", "value": "grafana-auto" }, + { "selected": false, "text": "stackdriver auto", "value": "stackdriver-auto" }, + { "selected": false, "text": "cloud monitoring auto", "value": "cloud-monitoring-auto" }, + { "selected": false, "text": "1m", "value": "+60s" }, + { "selected": false, "text": "2m", "value": "+120s" }, + { "selected": false, "text": "5m", "value": "+300s" }, + { "selected": false, "text": "10m", "value": "+600s" }, + { "selected": false, "text": "30m", "value": "+1800s" }, + { "selected": false, "text": "1h", "value": "+3600s" }, + { "selected": false, "text": "3h", "value": "+7200s" }, + { "selected": false, "text": "6h", "value": "+21600s" }, + { "selected": false, "text": "1d", "value": "+86400s" }, + { "selected": false, "text": "3d", "value": "+259200s" }, + { "selected": false, "text": "1w", "value": "+604800s" } + ], + "query": { + "labelKey": "", + "loading": false, + "projectName": "$project", + "projects": [ + { "name": "project-1", "value": "project-1" }, + { "name": "project-2", "value": "project-2" } + ], + "refId": "CloudMonitoringVariableQueryEditor-VariableQuery", + "selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users", + "selectedQueryType": "alignmentPeriods", + "selectedSLOService": "", + "selectedService": "actions.googleapis.com", + "sloServices": [] + }, + "refresh": 0, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { "from": "now-24h", "to": "now" }, + "timepicker": {}, + "timezone": "", + "title": "Network TCP Load Balancer Monitoring", + "uid": "", + "version": 5 +} diff --git a/public/app/plugins/datasource/cloud-monitoring/plugin.json b/public/app/plugins/datasource/cloud-monitoring/plugin.json index fb465b0e7c5..cf43e37106a 100644 --- a/public/app/plugins/datasource/cloud-monitoring/plugin.json +++ b/public/app/plugins/datasource/cloud-monitoring/plugin.json @@ -8,11 +8,71 @@ "alerting": true, "annotations": true, "includes": [ - { "type": "dashboard", "name": "BigQuery Query Monitoring", "path": "dashboards/bigQuery.json" }, - { "type": "dashboard", "name": "Cloud SQL Monitoring", "path": "dashboards/cloudSQL.json" }, - { "type": "dashboard", "name": "GCE VM Instance Monitoring", "path": "dashboards/gce.json" }, - { "type": "dashboard", "name": "GKE Cluster Monitoring", "path": "dashboards/gke.json" }, - { "type": "dashboard", "name": "HTTP_S Load Balancer Monitoring", "path": "dashboards/loadBalancer.json" } + { + "type": "dashboard", + "name": "Data Processing Monitoring", + "path": "dashboards/dataprocessing-monitoring.json" + }, + { + "type": "dashboard", + "name": "Cloud Functions Monitoring", + "path": "dashboards/cloudfunctions-monitoring.json" + }, + { + "type": "dashboard", + "name": "GCE VM Instance Monitoring", + "path": "dashboards/gce-vm-instance-monitoring.json" + }, + { + "type": "dashboard", + "name": "GKE Prometheus Pod/Node Monitoring", + "path": "dashboards/gke-prometheus-pod-node-monitoring.json" + }, + { + "type": "dashboard", + "name": "Firewall Insights Monitoring", + "path": "dashboards/firewall-insight-monitoring.json" + }, + { + "type": "dashboard", + "name": "GCE Network Monitoring", + "path": "dashboards/gce-network-monitoring.json" + }, + { + "type": "dashboard", + "name": "HTTP/S LB Backend Services", + "path": "dashboards/https-lb-backend-services-monitoring.json" + }, + { + "type": "dashboard", + "name": "HTTP/S Load Balancer Monitoring", + "path": "dashboards/https-loadbalancer-monitoring.json" + }, + { + "type": "dashboard", + "name": "Network TCP Load Balancer Monitoring", + "path": "dashboards/network-tcp-loadbalancer-monitoring.json" + }, + { + "type": "dashboard", + "name": "MicroService Monitoring", + "path": "dashboards/micro-service-monitoring.json" + }, + { + "type": "dashboard", + "name": "Cloud Storage Monitoring", + "path": "dashboards/cloud-storage-monitoring.json" + }, + { + "type": "dashboard", + "name": "Cloud SQL Monitoring", + "path": "dashboards/cloudsql-monitoring.json" + }, + { + "type": "dashboard", + "name": "Cloud SQL(MySQL) Monitoring", + "path": "dashboards/cloudsql-mysql-monitoring.json" + } ], "queryOptions": { "maxDataPoints": true,