Commit de7d163d by Erik Sundell Committed by GitHub

Cloud Monitoring: Add curated dashboards for the most popular GCP services (#29930)

* Add dashboards that are converted from GCP format

* Changes according to pr feedback

* Remove dashboards that could not be tested using real data
parent b39df225
{
"__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
}
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment