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:
{ "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
alloy
package, and run the service:To use this class in a module, add the following line to the module’s
init.pp
file:include 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.