FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Fix multiple longstanding issues

Merged Ryan Kowalewski requested to merge multiple-issues into master
1 unresolved thread
1 file
+ 6
9
Compare changes
  • Side-by-side
  • Inline
+ 6
9
@@ -5,18 +5,15 @@
# - Request latencies for 50th, 95th and 99th percentile.
# - Container CPU and memory utilisations for 50th, 95th and 99th percentile.
# - Container instance count and billable instance time.
data "template_file" "dashboard_json" {
count = var.create_monitoring_dashboard ? 1 : 0
template = file("${path.module}/dashboard.json")
vars = {
locals {
dashboard_template = templatefile("${path.module}/dashboard.json", {
service_name = var.name
region = var.cloud_run_region
}
})
}
resource "google_monitoring_dashboard" "dashboard" {
for_each = toset([for template in data.template_file.dashboard_json : template.rendered])
dashboard_json = each.key
count = var.create_monitoring_dashboard ? 1 : 0
dashboard_json = local.dashboard_template
}
Loading