Falco + Prometheus + Grafana Setup on Minikube
This guide walks through setting up Falco for runtime security monitoring in a Minikube cluster, exporting Falco alerts to Prometheus, and visualizing them in Grafana. It includes steps to verify functionality using Falco’s event generator.Prerequisites
- Minikube cluster up and running
- Helm installed
kubectlconfigured to use Minikube context
1. Install Falco with gRPC and gRPC Output Enabled
2. Install Falco Exporter (anyone)
/run/falco using a hostPath volume.
3. Verify Falco Exporter Metrics
falco_alerts_total{...}.
4. Install Prometheus
5. Configure Prometheus to Scrape Falco Exporter (optional)
Patch the Prometheus config:scrape_configs::
6. Install Grafana
admin / admin
7. Connect Grafana to Prometheus
- Go to Settings → Data Sources → Add data source
- Choose Prometheus
- Set URL:
http://prometheus-server.default.svc.cluster.local - Click Save & Test
8. Import Falco Dashboard
- Go to Dashboards → Import
- Use Dashboard ID:
11914&15310(per-pod-filter) - Select Prometheus as data source
- Click Import
9. Test with Falco Event Generator
Run a test event generator:
[IMP]
If needed more Details of Logs We can add Loki which collect the logs of falco pod or use falco-sidekick (https://github.com/falcosecurity/falcosidekick) for more robust metrics and detailed view in dashboard.
