Do not raise alerts on errors from auditlog

This commit is contained in:
Andrew Dryga
2024-04-11 23:33:46 -06:00
parent 31eec1aac7
commit 8f1785f7c7
2 changed files with 4 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ resource "google_compute_firewall" "relays-ssh-ipv4" {
}
# Trigger an alert when more than 20% of relays are down
resource "google_monitoring_alert_policy" "instances_high_cpu_policy" {
resource "google_monitoring_alert_policy" "connected_relays_count" {
project = module.google-cloud-project.project.project_id
display_name = "Relays are down"
@@ -172,8 +172,8 @@ resource "google_monitoring_alert_policy" "instances_high_cpu_policy" {
comparison = "COMPARISON_GT"
# at least one relay per region must be always online
threshold_value = module.relays[0].instances
duration = "5s"
threshold_value = length(module.relays[0].instances)
duration = "0s"
trigger {
count = 1

View File

@@ -318,6 +318,7 @@ resource "google_monitoring_alert_policy" "genservers_crash_policy" {
resource.type="gce_instance"
severity>=ERROR
-"invalid ssh key entry - expired key"
-protoPayload.@type="type.googleapis.com/google.cloud.audit.AuditLog"
EOT
}
}