Install Grafana Alloy
To install Alloy into your local machine:
Sign in to your Grafana environment (for example,
mystack.grafana.net
).From the navigation menu on the left, click Connections > Collector.
Click the Install Grafana Alloy button.
Use the following table to select the operating system.
If you are running Select Debian Debian Ubuntu Debian Red Hat Enterprise Linux (RHEL) RedHat Fedora RedHat CentOS RedHat Windows Windows MacOS MacOS If you are on MacOS, select the installation method.
Perform one of the following:
If you want to Then Create a new token - Click Create new token.
Enter a token name.
Make sure the token name is meaningful to you and something you’ll remember. For example,
prodUS
.Click Create token.
Note: You don’t need to adjust the Scopes.
Use an existing token - Click Use an existing token.
- Enter a token you have created in the past.
Tip
You don’t need to copy the token. The token is added to the install Grafana Alloy script that you copy in the steps below.
Toggle the Enable Remote Configuration off.
Fleet Management is not used in this learning journey.
In your local machine, open the Terminal.
In the Install and run Grafana Alloy section, copy the Alloy script content into the terminal and press Enter.
Note
For macOS users, the scripts are broken down so you install Alloy first, set up the Alloy configuration, and run Alloy. Make sure to execute all scripts in order.
You should see a message
Successfully started alloy
in your terminal or something similar.To verify that Grafana Alloy is installed correctly, navigate back to Grafana Cloud and click Test Alloy connection.
If Grafana Alloy is installed correctly, you’ll see
Awesome! Grafana Alloy is good to go.
In the next milestone, you’re going to learn which Alloy components to use to send system logs to Loki.
Please tell us what didn't work: