In this article, we will discuss how to set up Grafana on an Ubuntu server using Gcore Cloud. We will use a preconfigured Grafana server instance from our Marketplace. The main advantage of this approach is that it saves you time and effort: you get a ready-to-use Grafana server in ten to fifteen minutes. You simply need to create an instance and connect to Grafana through your web browser, then youâll be able to create dashboards. No manual manipulations are required in the command line.
What Is Grafana?
Grafana is an open-source platform for data visualization and monitoring. It allows you to create customizable and interactive dashboards, alerts, and panels. For example, you can take data from different cloud services and visualize it all in a single Grafana dashboard.
How to Run Grafana
Step 1. Create a Virtual Machine with a Grafana Server
First, letâs create a virtual machine with a Grafana server.
- Log in to your Gcore Cloud account. If you donât have an account yet, sign up.
- Go to Cloud and select Projects.
- Click Create project; fill in the Name field. Projects are groups of separate Cloud resources, and these groups are isolated from each other. The isolation gives you the ability to set user rights for each project.
- In your project, click Create Instance:
- Select one of the available regions.
- In the Image section select Marketplace and click the âGrafana Server Latest” image.
- Set the following parameters:
- App Template Configuration: external URL if you have a domain.
- Type: choose 1vCPU / 2GB RAM with the “Basic VM” configuration or any available.
- Volume: set any volume type with 10GB.
- Network: set by default to a public IP.
- Firewall: select “Default” with the “Add application ports to firewall group” flag.
- SSH Key: choose your public SSH key or generate a new one.
- Instance name: grafana-server (or whatever you want.)
- After setting up is done, click Create Instance. The virtual machine will appear in the âInstancesâ list. Wait until the virtual machineâs âCreatingâ status changes to âPower on.â
Step 2. Open the Grafana Server
By default, Grafana runs on port 3000. To access the Grafana dashboard, open a web browser and enter the URL of your Grafana server:
http://<your_public_ip_address>:3000
For example:
http://45.82.30.61:3000
When presented with the above log in screen, enter the following credentials:
Username: admin
Password: admin
Step 3. Create a Grafana Dashboard
Now youâve successfully accessed the Grafana dashboard, you can start creating custom dashboards to monitor your data. To create a dashboard, click on the + icon on the left side navigation menu and select Dashboard.
You can then add panels to your dashboard by clicking on the + icon on the top right corner of the screen.
Choose the type of panel you want to add and configure it to display the data you need.
And thatâs it! Youâve successfully set up Grafana on your Ubuntu server.
Conclusion
In this tutorial, we explained how to run Grafana on Ubuntu. Check out our other articles dedicated to setting up different types of software on Gcore Cloud instances: