GilbN/geometrikks
About
GeoMetrikks is a real-time nginx/traefik/caddy/pangolin/loki access log ingestion and geo-location tracking service built with Litestar. It parses access logs, performs GeoIP lookups, and stores geo-events and access logs in PostgreSQL with TimeScaleDB/PostGIS extensions. It can also integrate with CrowdSec.
Systems & InfrastructureMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +6
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalGeoMetrikks tails your reverse-proxy access logs (nginx, Nginx Proxy Manager, Traefik and Caddy) or reads them from Grafana Loki, geolocates every request with MaxMind GeoLite2, and shows the result on a real-time map and a traffic analytics dashboard. It runs on your own hardware from one Docker image.
Quickstart
You need Docker. The image is published to GHCR for amd64 and arm64.
mkdir geometrikks && cd geometrikks
curl -LO https://raw.githubusercontent.com/GilbN/geometrikks/main/docker-compose.yml
curl -Lo .env https://raw.githubusercontent.com/GilbN/geometrikks/main/.env.example
$EDITOR .env # set APP_ADMIN_PASSWORD, MaxMind key, CARTO key, log path
docker compose up -d
Open http://localhost:8000 and log in with APP_ADMIN_USER / APP_ADMIN_PASSWORD.
The Quickstart covers the GeoLite2 keys, log paths and image tags.
Integrations
- Reverse proxies. Tails the access logs of nginx, Nginx Proxy Manager, Traefik (Pangolin included) and Caddy.
- Grafana Loki. Reads proxy logs your Loki already collects, instead of or next to log files.
- CrowdSec. Shows decisions and alerts from your Local API next to the traffic behind them, and bans or unbans an IP from the map, the tables or the IP inspector.
- Spamhaus DROP. Marks traffic from networks on the DROP and ASN-DROP lists, ready to ban through CrowdSec.
- AbuseIPDB. Shows an IP's abuse score in the IP inspector, marks IPs on AbuseIPDB's blacklist, and reports an IP to AbuseIPDB from its actions menu.
- MaxMind GeoLite2. Places requests on the map and names the network each came from. With a free MaxMind key, the databases download and refresh on their own.
- OpenID Connect. Single sign-on through Authelia, Authentik, Keycloak, Pocket ID, Google or another provider.
- API keys. Read or read/write keys for scripts and dashboard widgets that call the REST API.
- Abuse reports. Builds a report for a network's abuse desk and looks up the contact address over RDAP.
Documentation
The docs live at geometrikks.dev/docs. The configuration reference lists every setting with its default.
Project
Explore related projects
Loading…