{ "displayName": "Cloud Run service: ${service_name}", "mosaicLayout": { "columns": 12, "tiles": [ { "width": 6, "height": 4, "widget": { "title": "Request Counts", "xyChart": { "dataSets": [ { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/request_count\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" metric.label.\"response_code\"!=\"404\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_RATE", "crossSeriesReducer": "REDUCE_SUM", "groupByFields": [ "metric.label.\"response_code_class\"" ] } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" } ], "timeshiftDuration": "0s", "yAxis": { "label": "y1Axis", "scale": "LINEAR" }, "chartOptions": { "mode": "COLOR" } } } }, { "xPos": 6, "width": 6, "height": 4, "widget": { "title": "Request Latencies", "xyChart": { "dataSets": [ { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/request_latencies\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_DELTA", "crossSeriesReducer": "REDUCE_PERCENTILE_99", "groupByFields": [ "resource.label.\"service_name\"" ] } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" }, { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/request_latencies\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_DELTA", "crossSeriesReducer": "REDUCE_PERCENTILE_95", "groupByFields": [ "resource.label.\"service_name\"" ] } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" }, { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/request_latencies\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_DELTA", "crossSeriesReducer": "REDUCE_PERCENTILE_50", "groupByFields": [ "resource.label.\"service_name\"" ] } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" } ], "timeshiftDuration": "0s", "yAxis": { "label": "y1Axis", "scale": "LINEAR" }, "chartOptions": { "mode": "COLOR" } } } }, { "yPos": 4, "width": 6, "height": 3, "widget": { "title": "Container CPU Utilisation", "xyChart": { "dataSets": [ { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/container/cpu/utilizations\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_SUM", "crossSeriesReducer": "REDUCE_PERCENTILE_99" } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" }, { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/container/cpu/utilizations\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_SUM", "crossSeriesReducer": "REDUCE_PERCENTILE_95" } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" }, { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/container/cpu/utilizations\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_SUM", "crossSeriesReducer": "REDUCE_PERCENTILE_50" } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" } ], "timeshiftDuration": "0s", "yAxis": { "label": "y1Axis", "scale": "LINEAR" }, "chartOptions": { "mode": "COLOR" } } } }, { "xPos": 6, "yPos": 4, "width": 6, "height": 3, "widget": { "title": "Container Memory Utiliation", "xyChart": { "dataSets": [ { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/container/memory/utilizations\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_SUM", "crossSeriesReducer": "REDUCE_PERCENTILE_99", "groupByFields": [ "resource.label.\"service_name\"" ] } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" }, { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/container/memory/utilizations\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_SUM", "crossSeriesReducer": "REDUCE_PERCENTILE_95", "groupByFields": [ "resource.label.\"service_name\"" ] } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" }, { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/container/memory/utilizations\" resource.type=\"cloud_run_revision\" resource.label.\"service_name\"=\"${service_name}\" resource.label.\"location\"=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_SUM", "crossSeriesReducer": "REDUCE_PERCENTILE_50", "groupByFields": [ "resource.label.\"service_name\"" ] } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" } ], "timeshiftDuration": "0s", "yAxis": { "label": "y1Axis", "scale": "LINEAR" }, "chartOptions": { "mode": "COLOR" } } } }, { "yPos": 7, "width": 6, "height": 3, "widget": { "title": "Instance Count", "xyChart": { "dataSets": [ { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/container/instance_count\" resource.type=\"cloud_run_revision\" resource.labels.service_name=\"${service_name}\" resource.labels.location=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_MAX", "crossSeriesReducer": "REDUCE_SUM", "groupByFields": [ "resource.label.service_name", "metric.label.state" ] } }, "unitOverride": "count" }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" } ], "xAxis": { "scale": "LINEAR" }, "chartOptions": { "mode": "COLOR" } } } }, { "xPos": 6, "yPos": 7, "width": 6, "height": 3, "widget": { "title": "Billable instance time", "xyChart": { "dataSets": [ { "timeSeriesQuery": { "timeSeriesFilter": { "filter": "metric.type=\"run.googleapis.com/container/billable_instance_time\" resource.type=\"cloud_run_revision\" resource.labels.service_name=\"${service_name}\" resource.labels.location=\"${region}\"", "aggregation": { "alignmentPeriod": "60s", "perSeriesAligner": "ALIGN_RATE", "crossSeriesReducer": "REDUCE_SUM", "groupByFields": [ "resource.label.service_name" ] } } }, "plotType": "LINE", "minAlignmentPeriod": "60s", "targetAxis": "Y1" } ], "xAxis": { "scale": "LINEAR" }, "chartOptions": { "mode": "COLOR" } } } } ] } }