How to Send Kubernetes Events to Loki using Alloy
Why ship Kubernetes Events to Loki? Kubernetes events provide valuable insights into what’s happening in your cluster—from pod restarts and failed deployments to resource shortages. They’re often the first indicator of issues, but by default, they’re not stored long-term. With Grafana Alloy (the successor to Grafana Agent), you can ship events centrally to Loki, making them searchable, visualizable, and alertable. Alloy configuration: Shipping Kubernetes Events The following Alloy configuration will send all Kubernetes events in JSON format directly to Loki: ...