Actian Monitor > Using Actian Monitor > Sending Actian Monitor Metrics to a Grafana Cloud
Was this helpful?
Sending Actian Monitor Metrics to a Grafana Cloud
The Actian Monitor Docker Compose normally runs a full local monitoring stack that includes Prometheus and Grafana. When you switch to Grafana Cloud, you no longer need those local services. Instead, Alloy becomes the single gateway that receives metrics from Actian Monitor and forwards them directly to Grafana Cloud. You can make this change after you install the Actian Monitor and verify it is working.
1. Remove the Prometheus and Grafana service blocks from your docker-compose.yaml file. Specifically, remove the depends_on block from the alloy service:
depends_on:
prometheus:
condition: service_started
 
You will keep only actianmonitor, otel-agent, and alloy. Nothing else in the Compose file needs to be modified.
2. Log in to Grafana Cloud and open the Prometheus section (Connections - Data Sources - select your Prometheus data source). Find the Remote Write settings and copy the Remote Write URL and the Username (your Prometheus instance ID). The Remote Write URL might be called ‘Prometheus server URL,’ if so, copy this URL and make sure it ends in /push.
3. (Optional) If you do not have or have not created an access token, you will need to create one. To create a new token, in your grafana.com login screen, navigate to Security - Access Policies and either create a new policy or add a token to an existing metrics:write policy. The only time the token will be shown is when it is created.
Note:  The Grafana UI will not show you the token after it has been created.
4. Use these values to replace the local Prometheus endpoint in your Alloy configuration. In your existing Alloy configuration, you will see a prometheus.remote_write block that points to the local Prometheus container at http://prometheus:9090/api/v1/write. Replace that entire block with your Grafana Cloud remote_write configuration. The updated block should look like this:
prometheus.remote_write "default" {
endpoint {
url = "https://<your-prometheus-instance>.grafana.net/api/prom/push"
basic_auth {
username = "<your-instance-id>"
password = "<your-token>"
}
}
}
This is the only change required. Alloy will now send all metrics directly to Grafana Cloud.
After updating the configuration, restart your environment by running 'docker compose down' followed by 'docker compose up -d'. Alloy will reconnect automatically and begin sending metrics to Grafana Cloud.
Last modified date: 01/29/2026