Install Grafana Alloy
The next step in your journey is to install Grafana Alloy.
Alloy offers native pipelines for OTel, Prometheus, Pyroscope, Loki, and many other metrics, logs, traces, and profile tools. In addition, you can use Alloy pipelines to do different tasks, such as configure alert rules in Loki and Mimir. Alloy is fully compatible with the OTel Collector, Prometheus Agent, and Promtail.
To install Alloy you must either use an existing token or create a new one.
Did you know?
The token safeguards against unauthorized access, ensuring that only you can install Alloy on your Mac.
Install Alloy by completing the following steps:
In Grafana Cloud, in the 2. Install Alloy section, click Run Grafana Alloy.
Perform one of the following:
Tip
You don’t need to copy the token. The token is added to a Grafana Alloy configuration command that you copy and run in a later step.
Log in to the Mac as a user with administrator permissions and open the terminal.
Run the following command to install Alloy:
brew install grafana/grafana/alloy
Tip
It may take a few minutes to install Alloy. Hang in there!
Return to Grafana Cloud in your browser and scroll down to the Set up the Alloy Configuration section.
Click Copy to Clipboard to copy a command to generate an Alloy configuration file.
Paste the contents of the clipboard into the terminal and press Enter.
Enter your macOS password when requested.
Once the command completes, you’ll see
Alloy is ready to run
in the terminal.Enter the following command to start Alloy:
brew services start alloy
If you see
==> Successfully started `alloy` (label: homebrew.mxcl.alloy)
, then Alloy is running.Return to Grafana Cloud in your browser and click Test Alloy connection.
If Grafana Alloy is installed correctly, you’ll see
Awesome! Grafana Alloy is good to go
.Tip
Testing the Alloy connection may take a minute or two. If the test initially times out, try clicking Test Alloy connection again.
Once Alloy is successfully installed, click Proceed to install integration.
Please tell us what didn't work:
At this point in your journey, you can explore the following paths: