Skip to content

Commit

Permalink
Adding k8s events to overview dashboard (#1655)
Browse files Browse the repository at this point in the history
* Adding k8s events to overview dashboard
[review]

* Missed region
[review]
  • Loading branch information
ben851 authored Nov 14, 2024
1 parent 70dc37f commit 0e26065
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions aws/eks/dashboards.tf
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,20 @@ resource "aws_cloudwatch_dashboard" "notify_system" {
"title": "Failed Service Callbacks",
"view": "table"
}
},
{
"type": "log",
"x": 12,
"y": 21,
"width": 12,
"height": 5,
"properties": {
"query": "SOURCE '/aws/containerinsights/${aws_eks_cluster.notification-canada-ca-eks-cluster.name}/application' | fields @timestamp, @message, @logStream, @log,log_processed.firstTimestamp as timestamp, log_processed.involvedObject.name as pod, log_processed.involvedObject.namespace as namespace, log_processed.reason as reason, log_processed.type as level\n| filter kubernetes.container_name like /k8s-event-logger/\n| filter log_processed.involvedObject.kind like /Pod/\n| filter log_processed.type not like /Normal/\n| display timestamp, pod, namespace, reason, level\n| sort @timestamp desc\n| limit 100",
"region": "${var.region}",
"stacked": false,
"view": "table",
"title": "Abnormal Kubernetes Events"
}
}
]
}
Expand Down

0 comments on commit 0e26065

Please sign in to comment.