I'm looking for the best method to retain Kubernetes events within my stack, which includes Prometheus, Grafana, Loki, and Promtail. I've come across a couple of options, like the Kubernetes event logger from Delivery Hero and the Kubernetes Event Exporter, but I'm unsure about their maintenance status and effectiveness. Does anyone have recommendations or insights on these options or perhaps a better solution?
2 Answers
I've tried the Kubernetes Event Exporter in the past, but it generated way too many logs, so I ended up ditching it. It seems like not many people retain events for long-term, but if you have specific reasons like debugging evictions or out-of-memory kills, it could be worth a shot!
I need to debug events like eviction and OOM kills, so I might give it a try anyway.
If you're aiming to keep your setup within Grafana's ecosystem, you might want to check out the OpenTelemetry Collector or Grafana Alloy. Both can integrate well with your existing tools and should help you manage your Kubernetes events efficiently.
I might try Alloy, thanks!

I second the Events Exporter, I found it really useful.