Skip to content

Commit

Permalink
[Monitoring] Make monitoring reference the secondary project (#4565)
Browse files Browse the repository at this point in the history
Chrome is split in two projects internally, and the current way
terraform is organized will create the dashboard in the wrong project.

This PR makes the dashboard reference the secondary project id, thus
solving the problem.

Part of #4271
  • Loading branch information
vitorguidi committed Dec 27, 2024
1 parent 87fc38d commit a695b2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions infra/terraform/monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

provider "google" {
alias = "monitoring"
project = var.secondary_project_id
region = var.region
}

resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
provider = google.monitoring
dashboard_json = <<JSON
{
"displayName": "Clusterfuzz Relability Metrics",
Expand Down
4 changes: 4 additions & 0 deletions infra/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ variable "project_id" {
description = "The project id"
}

variable "secondary_project_id" {
description = "Alternative project id, to accomodate the old chrome deployment"
}

variable "region" {
description = "The region"
}
Expand Down

0 comments on commit a695b2c

Please sign in to comment.