Install Grafana Alloy

The next step in your journey takes you to installing 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 token.

Did you know?

The token safeguards against unauthorized access, ensuring that only you can install Alloy on your Linux machine.

To install Alloy, complete the following steps:

  1. In Grafana Cloud, in the 2. Install Alloy section, click Run Grafana Alloy.

  2. Perform one of the following:

    If you want toThen
    Create a new token1. Click Create new token.
    2. Enter a token name.
    Make sure the token name is meaningful to you and something you'll remember. For example, prodUS.

    3. Click Create token.

    Note: You don't need to adjust the Scopes.
    Use an existing token1. Click Use an existing token.
    2. 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 next step.
  3. In the Install and run Grafana Alloy section, click Copy to Clipboard.

  4. Log in to the Linux machine and open the Terminal.

  5. Paste the contents of the clipboard into the terminal and press Enter.

    This command installs Grafana Alloy on the Linux machine. When the installation is complete, you’ll see Alloy is now running!

  6. To verify that Grafana Alloy is installed correctly, click Test Alloy connection.

    If Grafana Alloy is installed correctly, you’ll see Awesome! Grafana Alloy is good to go.

  7. If Alloy is successfully installed, click Proceed to install integration.

Were you successful?

To move forward, please let us know if you were successful.

More to explore (optional)

At this point in your journey, you can explore the following paths:

What is Grafana Alloy?

Monitor multiple Linux hosts with the grafana_agent role

How Grafana Alloy Works: Demo (Video)

Grafana Alloy on GitHub