Grafana Alloy telemetry collector with GeoIP enrichment.
docker pull ghcr.io/rogueoneecho/alloy- Automatic GeoLite2-City download at container startup
- Stops at startup if a required variable is missing or the GeoLite2 download fails
- Pre-configured host metrics, container metrics, and journal log collection
- GeoIP enrichment of SSH and UFW log entries
- Configurable via environment variables
- amd64 and arm64 images available on GHCR
- Signed with Cosign via keyless Sigstore OIDC
- SBOM attestation in CycloneDX format
- Vulnerability scanned with Grype
See docker-compose.yml for an example.
Copy .env.example to .env and set:
INSTANCE— hostname label for metrics and logsMAXMIND_LICENSE_KEY— MaxMind license keyPROMETHEUS_URL— Prometheus remote write endpointLOKI_URL— Loki push endpoint
MAXMIND_LICENSE_KEY can be read from a file by setting MAXMIND_LICENSE_KEY_FILE to its path, e.g. a compose secret:
services:
alloy:
environment:
MAXMIND_LICENSE_KEY_FILE: /run/secrets/maxmind_license_key
secrets:
- maxmind_license_key
secrets:
maxmind_license_key:
environment: MAXMIND_LICENSE_KEY- Setting both
MAXMIND_LICENSE_KEYandMAXMIND_LICENSE_KEY_FILEis an error - Trailing newlines in the file are ignored
Releases and a full changelog are available via GitHub Releases.