A guide on how to setup Grafana Cloud
Setting up Grafana Cloud
This guide will help you set up a free Grafana Cloud account.
- First go to Grafana and click “Create free account”
- Configure your account and log in details
- Once you create your account log in and click the “My Account” tab
- This will show you an overview of your resources
Getting basic monitoring on your first device
Now that you have a Grafana Cloud account set up we can now start gathering metrics. For this example we will be installing Grafana Agent on a linux machine.
Installing Grafana Agent
- From the Grafana Cloud home page, navagate to your Grafana instance.
- On the left hand side there is a tab called “Onboarding -> Walkthrough”
- Once there click the “Grafana Agent” option
- Now you can select the type of device you would like to monitor
- In this example I am setting up monitoring on a linux server
- After selecting Linux Server it will give you 2 commands to run on your server
sudo ARCH=amd64 GCLOUD_STACK_ID="265053" GCLOUD_API_KEY="{cloudapikey}" GCLOUD_API_URL="{cloudapiurl}" /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/grafana/agent/release/production/grafanacloud-install.sh)"
sudo systemctl restart grafana-agent.service
- Note that the commands you get will have the cloud_api_key and cloud_api_url autofilled in
- Once you run those commands click the “Test integration and finish installation”
The Grafana Agent is now running and sending metrics to prometheus!