monitoring
Install and configure the Grafana Alloy monitoring agent.
Usage
- hosts: all roles: - role: giftpilz0.general.monitoringVariables
alloy agent architecture (e.g. amd64, arm64).
Defaultamd64alloy release version tag.
Default1.21.1desired state of the alloy package.
ChoicespresentabsentlatestskipDefaultpresent- monitoring_agent_packagelist[str]
list of packages to install.
Default- https://github.com/grafana/alloy/releases/download/v{{ monitoring_agent_tag }}/alloy-{{ monitoring_agent_tag }}-1.{{ monitoring_agent_arch }}.rpm name of the installed alloy package, used for removal.
Defaultalloyalloy data directory, removed with the package.
Default/var/lib/alloypath to the alloy configuration file.
Default/etc/alloy/config.alloysystemd service unit name.
Defaultalloy.servicedesired state of the alloy service.
ChoicesreloadedrestartedstartedstoppedDefaultstartedwhether the alloy service is enabled at boot.
DefaulttrueLoki remote write endpoint URL.
Default""Prometheus remote write endpoint URL.
Default""basic auth username for Loki.
Defaultalloybasic auth password for Loki.
Default""basic auth username for Mimir/Prometheus.
Defaultalloybasic auth password for Mimir/Prometheus.
Default""external labels added to all metrics and logs.
Defaulthost: '{{ inventory_hostname }}'whether to add alloy user to extra groups for journal access.
Defaulttrue- monitoring_alloy_extra_groupslist[str]
additional system groups for the alloy user.
Default- adm - systemd-journal
scrape interval for node exporter metrics.
Default60smaximum age of journal entries sent to Loki.
Default24hwhether to scrape Traefik metrics.
DefaultfalseTraefik metrics endpoint address.
Default127.0.0.1:8082scrape interval for Traefik metrics.
Default30sextra Alloy configuration appended to the main config.
Default""
No variables match.