| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- ---
- kind: compose
- metadata:
- name: Grafana Alloy
- description: |-
- Grafana Alloy is an open telemetry collector that collects, processes, and exports metrics to various backends.
- ## Prerequisites
- - :warning: When alloy runs in a container, you should set the `container_hostname` to a unique value to identify
- the instance in your monitoring backend. Otherwise it defaults to the container ID.
- ## Resources
- - **Project**: https://grafana.com/oss/alloy/
- - **Documentation**: https://grafana.com/docs/alloy/latest/
- - **GitHub**: https://github.com/grafana/alloy
- version: v1.13.1
- author: Christian Lempa
- date: '2026-02-16'
- tags:
- - traefik
- icon:
- provider: selfh
- id: grafana
- next_steps:
- schema: "1.2"
- spec:
- general:
- vars:
- service_name:
- default: alloy
- container_hostname:
- description: Container internal hostname
- type: str
- restart_policy:
- description: Container restart policy
- type: enum
- options:
- - unless-stopped
- - always
- - on-failure
- - 'no'
- default: unless-stopped
- required: true
- logs:
- title: Log Collection
- toggle: logs_enabled
- vars:
- logs_docker:
- description: Enable Docker container log collection
- type: bool
- default: true
- logs_enabled:
- description: Enable log collection
- type: bool
- default: false
- logs_loki_url:
- description: Loki endpoint URL for sending logs
- type: url
- default: http://loki:3100/loki/api/v1/push
- required: true
- logs_system:
- description: Enable system and journalctl log collection
- type: bool
- default: true
- metrics:
- title: Metrics Collection
- toggle: metrics_enabled
- vars:
- metrics_docker:
- description: Enable Docker container metrics collection (cAdvisor)
- type: bool
- default: true
- metrics_enabled:
- description: Enable metrics collection
- type: bool
- default: false
- metrics_prometheus_url:
- description: Prometheus remote write endpoint
- type: url
- default: http://prometheus:9090/api/v1/write
- required: true
- metrics_system:
- description: Enable system (node) metrics collection
- type: bool
- default: true
- ports:
- title: Ports
- vars:
- ports_webui:
- description: Port for Alloy web UI
- type: int
- default: 12345
- traefik:
- title: Traefik
- toggle: traefik_enabled
- vars:
- traefik_enabled:
- description: Enable Traefik reverse proxy integration
- type: bool
- default: false
- traefik_network:
- description: Traefik network name
- type: str
- default: traefik
- required: true
- traefik_host:
- default: alloy
- traefik_domain:
- description: Base domain (e.g., example.com)
- type: str
- default: home.arpa
- required: true
- traefik_tls:
- title: Traefik TLS/SSL
- toggle: traefik_tls_enabled
- vars:
- traefik_tls_enabled:
- description: Enable HTTPS/TLS
- type: bool
- default: true
- traefik_tls_certresolver:
- description: Traefik certificate resolver name
- type: str
- default: cloudflare
- required: true
|