Skip to content

Commit

Permalink
feat: add query for seeing issues while configuring a callback
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith committed Dec 20, 2024
1 parent c76f8f6 commit c865fc5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions aws/eks/cloudwatch_queries.tf
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,19 @@ fields @timestamp, @notification_id, @url, @error
QUERY
}

resource "aws_cloudwatch_query_definition" "callback-config-failure" {
count = var.cloudwatch_enabled ? 1 : 0
name = "Callbacks / Error configuring a callback"

log_group_names = [
local.eks_application_log_group
]

query_string = <<QUERY
fields @timestamp, log, kubernetes.container_name as app, kubernetes.pod_name as pod_name, @logStream
| filter kubernetes.container_name like /${local.admin_name}/
| filter @message like /Unable to create callback/
| sort @timestamp desc
| limit 20
QUERY
}

0 comments on commit c865fc5

Please sign in to comment.