Menu
Choose a product
Scroll for more
Grafana Cloud
Install Grafana Alloy with Puppet
You can use Puppet to install and manage Alloy.
Before you begin
- These steps assume you already have a working Puppet setup.
- You can add the following manifest to any module.
- The manifest installs Alloy from the package repositories. It targets Linux systems from the following families:
- Debian, including Ubuntu
- RedHat Enterprise Linux, including Fedora
Steps
To add Alloy to a host:
Make sure that the following module dependencies are declared and installed:
JSON{ "name": "puppetlabs/apt", "version_requirement": ">= 4.1.0 <= 7.0.0" }, { "name": "puppetlabs/yumrepo_core", "version_requirement": "<= 2.0.0" }Create a Puppet manifest with the following class to add the Grafana package repositories, install the
alloypackage, and run the service:rubyclass grafana_alloy::grafana_alloy () { case $::os['family'] { 'debian': { apt::source { 'grafana': location => 'https://apt.grafana.com/', release => '', repos => 'stable main', key => { id => 'B53AE77BADB630A683046005963FA27710458545', source => 'https://apt.grafana.com/gpg.key', }, } -> package { 'alloy': require => Exec['apt_update'], } -> service { 'alloy': ensure => running, name => 'alloy', enable => true, subscribe => Package['alloy'], } } 'redhat': { yumrepo { 'grafana': ensure => 'present', name => 'grafana', descr => 'grafana', baseurl => 'https://rpm.grafana.com', gpgkey => 'https://rpm.grafana.com/gpg.key', enabled => '1', gpgcheck => '1', target => '/etc/yum.repos.d/grafana.repo', } -> package { 'alloy': } -> service { 'alloy': ensure => running, name => 'alloy', enable => true, subscribe => Package['alloy'], } } default: { fail("Unsupported OS family: (${$::os['family']})") } } }To use this class in a module, add the following line to the module’s
init.ppfile:rubyinclude grafana_alloy::grafana_alloy
Configuration
The alloy package installs a default configuration file that doesn’t send telemetry anywhere.
The default configuration file location is /etc/alloy/config.alloy.
You can replace this file with your own configuration, or create a configuration file for the service to use.
Next steps
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video

Getting started with managing your metrics, logs, and traces using Grafana
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video

Intro to Kubernetes monitoring in Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.
Video

Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.