alloy

Purpose

  • Install Grafana Alloy.

  • Configure Alloy to push logs to an upstream Loki endpoint.

  • Configure Alloy to push metrics to an upstream Prometheus endpoint.

Role defaults

  • Loki endpoint to forward metrics to.

hs_alloy_loki_write_url: "http://grafana.{{ hs_public_domain }}:3100"
  • Prometheus endpoint to forward metrics to.

hs_alloy_prometheus_write_url: "http://grafana.{{ hs_public_domain }}:9090"
alloy_version: "1.3.1"
alloy_local_cache_dir: "{{ hs_workspace_root }}"