---
title: "Restart Grafana Alloy and test the connection | Grafana Labs"
description: "Learn how to verify that Grafana Alloy is installed and configured correctly"
---

# Restart Grafana Alloy and test the connection

By now, you’ve installed and configured Grafana Alloy. Congratulations! In this step, you’ll restart Grafana Alloy and test that Grafana Cloud is collecting data from your macOS machine.

To restart Alloy and test the connection:

1. At the macOS Terminal, enter the following command and press **Enter**:
   
   ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```none
   brew services restart grafana/grafana/alloy
   ```
2. In Grafana Cloud, click **Test connection**.
   
   It might take a few minutes for the system to verify the connection.
   
   You’ll know the connection is working when you see `Integration is collecting data and sending it to Grafana Cloud`.

In the next step, you’ll install pre-configured dashboards and alerts.

* * *

### Troubleshooting

Explore the following troubleshooting topics if you need help:

- [No metrics were found for this integration](/docs/grafana-cloud/monitor-infrastructure/integrations/troubleshoot/install-troubleshoot-mac-alloy/#no-metrics-were-found-for-this-integration)
- [Alloy was not able to reach your application Prometheus metrics endpoint](/docs/grafana-cloud/monitor-infrastructure/integrations/troubleshoot/install-troubleshoot-mac-alloy/#alloy-was-not-able-to-reach-your-application-prometheus-metrics-endpoint)
