Streaming Cloudflare Edge Logs from Optimizely DXP to a self-hosted Grafana + Loki instance.
- Clone this repo
- Create an
/.env
file based on the example from example.env, replace with your values where needed. Consider changing the default Grafana username and password while you are at it. - Open a terminal in this directory and start the docker stack
docker compose up --build
- Grafana should now be running at http://localhost:3000
- Login as user / pass configured, or default admin/admin
- Shutdown with
docker compose down
You can import the JSON dashboard from my example with example-dashboard.json using the Grafana UI. Give it a couple of minutes on initial startup to get enough data to fill all the panels.
This project doesn't export or share your edge logs or DXP API keys or anything like that with me or anyone else. Feel free to inspect /log-ingestor/index.js or any of the other files to confirm that yourself.