Skip to content

Grafana Alloy – Installation

Overview

Grafana Alloy is a telemetry collector that replaces Grafana Promtail and Grafana Agent. It gathers logs, metrics, traces and profiles from systems and forwards them to other tools in the Grafana suite like Loki and Prometheus where they are stored for fast querying and visualisation

We will be installing Grafana Alloy on a Debian/Pi OS system using the APT installer.

Installation

The following steps are needed to ensure that we download from the official Grafana sources by verifying that the packages are in fact signed by Grafana.

  • Add Create keyring directory
  • Download and store Grafana’s GPG key
  • Add Grafana’s APT repository
# Create keyring directory
sudo mkdir -p /etc/apt/keyrings

# Download and store Grafana's GPG key
curl -fsSL https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null

# Add Grafana's APT repository
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list

Update the APT packages and then install “alloy” with the below commands.

Late update: While performing the update, a new version of Grafana appeared so I added the upgrade grafana component as well

sudo apt update

sudo apt upgrade grafana

sudo apt install alloy

These steps conclude the Alloy installation. See blog post about configuring for next steps. Hope that helps.