chainguard-dev / terraform-infra-common

A repository containing a collection of "glue" modules for encapsulating common Cloud Run patterns.
Apache License 2.0
7 stars 22 forks source link

add missing label key for new log based metrics #470

Closed k4leung4 closed 1 month ago

k4leung4 commented 1 month ago
│ Error: Error creating Metric: googleapi: Error 400: Number of label descriptors must match number of label extractors
│ 
│   with module.global-alert.google_logging_metric.cloud-run-scaling-failure,
│   on .terraform/modules/global-alert/modules/alerting/main.tf line 293, in resource "google_logging_metric" "cloud-run-scaling-failure":
│  293: resource "google_logging_metric" "cloud-run-scaling-failure" {
│ 
╵
╷
│ Error: Error creating Metric: googleapi: Error 400: Number of label descriptors must match number of label extractors
│ 
│   with module.global-alert.google_logging_metric.cloud-run-failed-req,
│   on .terraform/modules/global-alert/modules/alerting/main.tf line 350, in resource "google_logging_metric" "cloud-run-failed-req":
│  350: resource "google_logging_metric" "cloud-run-failed-req" {