grafana/public/app/plugins/datasource/cloud-monitoring/dashboards/cloudfunctions-monitoring.json
Erik Sundell de7d163d24
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
2021-01-20 08:42:00 +01:00

612 lines
20 KiB
JSON

{
"__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
}