Setting Up Network Flow Logs on an On-Prem Netmaker Installation
Overview
Architecture Summary
Prerequisites
Minimum Infrastructure
Step 1 — Enable the Monitoring Stack
Step 2 — Enable the GRPC Endpoint in Caddy
Edit the Caddyfile
Reload Caddy
Verify gRPC Connectivity
Step 3 — Set Up ClickHouse
Option A — Use the Bundled ClickHouse Container (Recommended for Quick Setup)
Edit Docker Compose Override
Option B — Use an External ClickHouse Instance
Step 4 — Create the ClickHouse Database
Connect to ClickHouse
Create the database
Step 5 — Configure Netmaker Environment Variables
Example (Bundled ClickHouse)
Example (External ClickHouse)
Step 6 — Restart Netmaker Services
Step 7 — Enable Flow Logs in the Netmaker Dashboard
In the UI
What “Force Enable” Does
Step 8 — Optional: Enable Flow Logs Per Device
What You Will See in Flow Logs
Verification Checklist
1) Exporter is running
2) ClickHouse is reachable
3) gRPC endpoint is active
4) Dashboard toggle is visible
Troubleshooting
Issue: Flow Logs toggle not visible
Action:
Issue: Logs are not appearing
Checks:
Issue: gRPC endpoint returns 502
Common causes:
Check:
Issue: ClickHouse is reachable, but no data
Recommended Production Best Practices
Use external ClickHouse when:
Restrict ClickHouse exposure
Log only what you need
Monitor disk usage
Recommended Example Deployment Pattern (On-Prem)
Last updated
Was this helpful?