Skip to content

Commit 0f5248e

Browse files
authored
[Monitoring] Make monitoring reference the secondary project (#4565)
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
1 parent dae9292 commit 0f5248e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

infra/terraform/monitoring.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
provider "google" {
16+
alias = "monitoring"
17+
project = var.secondary_project_id
18+
region = var.region
19+
}
20+
1521
resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
22+
provider = google.monitoring
1623
dashboard_json = <<JSON
1724
{
1825
"displayName": "Clusterfuzz Relability Metrics",

infra/terraform/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ variable "project_id" {
1515
description = "The project id"
1616
}
1717

18+
variable "secondary_project_id" {
19+
description = "Alternative project id, to accomodate the old chrome deployment"
20+
}
21+
1822
variable "region" {
1923
description = "The region"
2024
}

0 commit comments

Comments
 (0)