From 9a0f0a664f4d8c2a0c0c09ce9930de58d1ba9649 Mon Sep 17 00:00:00 2001 From: Vitor Guidi Date: Thu, 26 Dec 2024 17:43:02 -0300 Subject: [PATCH] [Monitoring] Restore dashboard terraform definition (#4561) This brings back #4497 . The issue was that, in promql definitions, the '{}' characters were lacking a double escape (\\\\{ and \\\\}). Also, the only parameter to the terraform object should be dashboard_json. Testing: terraform validate ![image](https://github.com/user-attachments/assets/f67434d0-c8e4-4bc0-be38-27188c98ea49) Part of #4271 --- infra/terraform/monitoring.tf | 1622 +++++++++++++++++++++++++++++++++ 1 file changed, 1622 insertions(+) create mode 100644 infra/terraform/monitoring.tf diff --git a/infra/terraform/monitoring.tf b/infra/terraform/monitoring.tf new file mode 100644 index 0000000000..7d9a540d76 --- /dev/null +++ b/infra/terraform/monitoring.tf @@ -0,0 +1,1622 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" { + dashboard_json = <