Skip to content

Commit

Permalink
Add Ansible, Puppet, and Chef to Alloy install documentation (#1325)
Browse files Browse the repository at this point in the history
  • Loading branch information
clayton-cornell authored Aug 22, 2024
1 parent db4712f commit b47bc74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
12 changes: 5 additions & 7 deletions docs/sources/set-up/install/ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ description: Learn how to install Grafana Alloy with Ansible
menuTitle: Ansible
title: Install Grafana Alloy with Ansible
weight: 550
_build:
list: false
noindex: true
---

# Install or uninstall {{% param "FULL_PRODUCT_NAME" %}} using Ansible

You can use [Grafana Ansible Collection](https://github.com/grafana/grafana-ansible-collection) to install and manage {{< param "PRODUCT_NAME" >}} on Linux hosts.
You can use the [Grafana Ansible Collection](https://github.com/grafana/grafana-ansible-collection) to install and manage {{< param "PRODUCT_NAME" >}} on Linux hosts.

## Before you begin

Expand Down Expand Up @@ -43,15 +40,15 @@ To add {{% param "PRODUCT_NAME" %}} to a host:
}
prometheus.remote_write "prom" {
endpoint {
url = "YOUR_PROMETHEUS_PUSH_ENDPOINT"
url = "<YOUR_PROMETHEUS_PUSH_ENDPOINT>"
}
}
```
The above snippet has a sample configuration to collect and send Alloy metrics to Prometheus
This snippet has a sample configuration to collect and send {{% param "PRODUCT_NAME" %}} metrics to Prometheus
Replace the following:
- _`YOUR_PROMETHEUS_PUSH_ENDPOINT`_: With the Remote write endpoint of your Prometheus Instance.
- _`<YOUR_PROMETHEUS_PUSH_ENDPOINT>`_: The Remote write endpoint of your Prometheus Instance.

1. Run the Ansible playbook. Open a terminal window and run the following command from the Ansible playbook directory.

Expand Down Expand Up @@ -86,4 +83,5 @@ Main PID: 3176 (alloy-linux-amd)
- [Configure {{< param "PRODUCT_NAME" >}}][Configure]

[Grafana Ansible Collection]: https://github.com/grafana/grafana-ansible-collection
[Ansible]: https://www.ansible.com/
[Configure]: ../../../configure/linux/
3 changes: 0 additions & 3 deletions docs/sources/set-up/install/chef.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ description: Learn how to install Grafana Alloy with Chef
menuTitle: Chef
title: Install Grafana Alloy with Chef
weight: 550
_build:
list: false
noindex: true
---

# Install {{% param "FULL_PRODUCT_NAME" %}} with Chef
Expand Down
7 changes: 2 additions & 5 deletions docs/sources/set-up/install/puppet.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ description: Learn how to install Grafana Alloy with Puppet
menuTitle: Puppet
title: Install Grafana Alloy with Puppet
weight: 560
_build:
list: false
noindex: true
---

# Install {{% param "FULL_PRODUCT_NAME" %}} with Puppet
Expand All @@ -27,7 +24,7 @@ You can use Puppet to install and manage {{< param "PRODUCT_NAME" >}}.

To add {{< param "PRODUCT_NAME" >}} to a host:

1. Ensure that the following module dependencies are declared and installed:
1. Make sure that the following module dependencies are declared and installed:

```json
{
Expand All @@ -43,7 +40,7 @@ To add {{< param "PRODUCT_NAME" >}} to a host:
1. Create a new [Puppet][] manifest with the following class to add the Grafana package repositories, install the `alloy` package, and run the service:

```ruby
class grafana_agent::grafana_agent_flow () {
class grafana_alloy::grafana_alloy () {
case $::os['family'] {
'debian': {
apt::source { 'grafana':
Expand Down

0 comments on commit b47bc74

Please sign in to comment.