Install Grafana Alloy

In this milestone, you are going to use the setup guide provided by Grafana Cloud to install Alloy.

To install Alloy into your local machine:

  1. Sign in to your Grafana environment (for example, mystack.grafana.net).

  2. From the navigation menu on the left, click Connections > Collector.

  3. Click the Install Grafana Alloy button.

  4. Use the following table to select the operating system.

    If you are runningSelect
    DebianDebian
    UbuntuDebian
    Red Hat Enterprise Linux (RHEL)RedHat
    FedoraRedHat
    CentOSRedHat
    WindowsWindows
    MacOSMacOS

    If you are on MacOS, select the installation method.

  5. Perform one of the following:

    If you want toThen
    Create a new token
    1. 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 token
    1. 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 steps below.

  6. Toggle the Enable Remote Configuration off.

    Fleet Management is not used in this learning journey.

  7. In your local machine, open the Terminal.

  8. 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.

  9. 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.

Were you successful?


page 4 of 9