Skip to content
RogueOneEchoPublic

About

Grafana Alloy telemetry collector

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

alloy

CI status Latest release License

Grafana Alloy telemetry collector with GeoIP enrichment.

docker pull ghcr.io/rogueoneecho/alloy

Features

  • 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

Build

  • amd64 and arm64 images available on GHCR
  • Signed with Cosign via keyless Sigstore OIDC
  • SBOM attestation in CycloneDX format
  • Vulnerability scanned with Grype

Usage

See docker-compose.yml for an example.

Copy .env.example to .env and set:

  • INSTANCE — hostname label for metrics and logs
  • MAXMIND_LICENSE_KEY — MaxMind license key
  • PROMETHEUS_URL — Prometheus remote write endpoint
  • LOKI_URL — Loki push endpoint

Secrets

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_KEY and MAXMIND_LICENSE_KEY_FILE is an error
  • Trailing newlines in the file are ignored

Releases and Changes

Releases and a full changelog are available via GitHub Releases.

About

Grafana Alloy telemetry collector

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages