- Access to the Cloudflare Analytics Engine (closed beta currently)
- Docker installed and daemon running
- Cloudflare API token with "Account | Account Analytics | Read" level permission
cd
intoworker
directory- Run
wrangler login
if you are not logged in already - Deploy the Cloudflare worker using
wrangler publish
cd
intografana
directory- Create a
.env
file with your favorite text editor (it should be in the same directory as thedocker-compose.yml
) - Add the following lines to the
.env
file and replace the placeholders with your Account ID and API Key
CF_API_ENDPOINT=https://api.cloudflare.com/client/v4/accounts/[ACCOUNT_ID HERE]/analytics_engine/sql
AUTH=Bearer [API-KEY HERE]
- Open the URL of the deployed worker in multiple browsers/curl
cd
intografana
directory- Run
docker-compose up -d
- Open
localhost:3000
in your browser - Log in with user
admin
and pwadmin
- Go to dashboards
- Open pre-configured dashboard and select relevant timeframe (e.g. last 15 minutes)