Menu
Grafana Cloud

Troubleshoot an Integration installation on macOS using Grafana Alloy

When installing an Integration, you can experience errors when executing Grafana Alloy installation script and errors when configuring Alloy to work with the Integration.

Common errors when executing Alloy installation script

The installation script will return an error message if there is a problem during installation. You can use these messages to identify and correct the errors.

Could not detect curl. Please install curl and re-run this script.

The script uses curl to download the Alloy installation package, so this is a pre-requisit to execute it. To install it using Homebrew, execute brew install curl.

homebrew not detected

The Homebrew package manager is used to install Alloy. You should first make sure that Homebrew is installed in your environment. Refer to the installation instructions at https://brew.sh/.

Failed to download config

The script was not able to download Alloy configuration file. This is probably due to networking errors or the unavailability of an internet connection in your environment.

Any other error while executing the installation script

Other errors might occur during installation. Check the error message for more details. If you need help, contact us using one of the options available on our official Help page.

Common errors when configuring Alloy for Integrations - Test Data Connection button

You can use the Test Data Connection button on the integration setup page to verify that you configured Alloy correctly and that it is sending the expected data.

A few things can cause a check failure. Before going into detail, make sure you have restarted Alloy service by running the following command in a terminal window:

shell
brew services restart alloy

You can view Alloy logs in the following places:

  • For system logs: $(brew --prefix)/var/log/alloy.log
  • For error logs: $(brew --prefix)/var/log/alloy.err.log

If you selected Binary as your installation method, Alloy has been installed using the binary package. In that case rerun the binary file to restart Alloy process. Logs are written to stdout and stderror, so the log location might change based on your setup.

No metrics were found for this integration.

This message indicates that Alloy isn’t able to contact your Grafana Cloud Prometheus endpoint. This can happen for several reasons, not limited to:

  • It is still starting up. Give it a few moments to start sending data
  • It is not starting correctly due to problems in your configuration file
  • It is not able to connect to your Grafana Cloud Prometheus endpoint (networking or configuration issues)

To understand the reasons for this problem, check the Alloy error logs:

shell
$(brew --prefix)/var/log/alloy.err.log

If there are component configuration error logs, make sure you followed all instructions provided. You can check Alloy components reference documentation for help or contact us using the Feedback form if you think there is a problem with the integration.

If you find errors in the logs about connecting to your Grafana Cloud Prometheus endpoint, make sure you didn’t change the URL or authentication details. You can verify your endpoint and create new keys under the Cloud Portal.

Alloy was not able to reach your application prometheus metrics endpoint.

This message means that Alloy started and connected to your Grafana Cloud Prometheus endpoint, but failed to scrape your application Prometheus metrics endpoint. This can happen for several reasons, not limited to:

  • The endpoint address is incorrect
  • The endpoint is protected, and no authentication details were provided
  • The endpoint is not online

To understand the reasons for this problem, check the Alloy error logs:

shell
$(brew --prefix)/var/log/alloy.err.log

If you find that the endpoint is not online or there are authentication errors, make sure you have followed the steps in the first section of the Integration setup page, Check prerequisites specific to....

Alloy was not able to collect your application logs

This message is displayed when Alloy can’t collect logs and send them to your Grafana Cloud Loki endpoint. This can happen for several reasons, not limited to:

  • It is still starting up. Give it a few moments to start sending data
  • There are no logs available
  • The logs path is incorrect
  • Alloy does not have the necessary permissions to access your application logs
  • Alloy is not able to connect to your Grafana Cloud Loki endpoint (networking or configuration issues)

To understand the reasons for this problem, check the Alloy error logs:

shell
$(brew --prefix)/var/log/alloy.err.log

If you find that there are permission errors, make sure you have followed the steps under the first section of the Integration setup page, Check prerequisites specific to....

If you find errors in the logs about connecting to your Grafana Cloud Loki endpoint, make sure you didn’t change the logs URL or authentication details. You can verify your endpoint and create new keys under the Cloud Portal.