Self-hosting. Alloy

ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ° ΠΈΠ· стСка Grafana ΠΏΡ€Π΅Π΄Π½Π°Π·Π½Π°Ρ‡Π΅Π½Π° для сбора ΠΈ ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ Π»ΠΎΠ³ΠΎΠ² с Ρ€Π°Π·Π½Ρ‹Ρ… источников ΠΈ ΠΏΠ΅Ρ€Π΅Π΄Π°Ρ‡ΠΈ ΠΈΡ… Π² Loki.

Π Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΡ€ΠΈΠΉ: https://github.com/grafana/alloy

ΠŸΡ€ΠΈΠΌΠ΅Ρ€ docker compose Ρ„Π°ΠΉΠ»Π°:

services:
  alloy:
    image: grafana/alloy:latest
    container_name: alloy
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./config.alloy:/etc/alloy/config.alloy
    ports:
      - 12345:12345
      - 1514:1514/tcp
      - 1514:1514/udp
    command: run --server.http.listen-addr=0.0.0.0:12345
      --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy
    networks:
      - monitoring
    labels:
      org.label-schema.group: monitoring
    restart: unless-stopped

networks:
  monitoring:
    name: monitoring
    external: true

Настройка: