Skip to content

Commit

Permalink
fix pin alert filter (#713)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Leung <[email protected]>
  • Loading branch information
k4leung4 authored Feb 5, 2025
1 parent 9c1a73f commit 045407d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/alerting/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ locals {

locals {
squad_log_filter = var.squad == "" ? "" : "labels.squad=\"${var.squad}\""
squad_proto_log_filter = var.squad == "" ? "" : "protoPayload.response.metadata.labels.squad=\"${var.squad}\""
name = var.squad == "" ? "global" : var.squad
squad_metric_filter = var.squad == "" ? "" : "metric.labels.team=\"${var.squad}\""
squad_metric_user_label_filter = var.squad == "" ? "" : "metadata.user_labels.\"team\"=\"${var.squad}\""
Expand Down Expand Up @@ -903,7 +904,7 @@ protoPayload.methodName="/Services.UpdateService"
protoPayload.resourceName:"namespaces/${var.project_id}/services/"
-protoPayload.response.spec.traffic.latestRevision="true"
-protoPayload.response.status.traffic.latestRevision="true"
${local.squad_log_filter}
${local.squad_proto_log_filter}
EOF
}

Expand Down

0 comments on commit 045407d

Please sign in to comment.