How to capture k8s events

i want to capture k8s events and create dashboard.
how I can capture evnets.

If you’re using Grafana Alloy, you can use loki source for that.

i am using grafana and prometheus.

So Prometheus is only for metrics. K8S events are more of a logs than metrics, so you need different storage for that (e.g. Grafana Loki) and something that would scrape / receive K8S events (e.g. Grafana Alloy or Otel Collector)