---
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 Linux machine.

To restart Alloy and test the connection:

Watch video -&gt;

1. In the Linux machine Terminal, enter the following command and press **Enter**:
   
   ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```none
   sudo systemctl restart alloy.service
   ```
   
   **Tip:** You see the Terminal prompt after you run the Alloy restart command. You don’t receive feedback from Linux that the restart is running or is complete.
2. In Grafana Cloud, click **Test connection**.
   
   It might take up to 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`.

* * *

### Troubleshooting

Explore the following troubleshooting topics if you need help:

- [Alloy isn’t running after a reboot](/docs/grafana-cloud/monitor-infrastructure/integrations/troubleshoot/install-troubleshoot-linux-alloy/#alloy-isnt-running-after-a-reboot)
- [No metrics were found for this integration](/docs/grafana-cloud/monitor-infrastructure/integrations/troubleshoot/install-troubleshoot-linux-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-linux-alloy/#alloy-was-not-able-to-reach-your-application-prometheus-metrics-endpoint)
