Run Grafana on an Ubuntu server Using Gcore Cloud

Run Grafana on an Ubuntu server Using Gcore Cloud

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.

  1. Log in to your Gcore Cloud account. If you don’t have an account yet, sign up.
  2. Go to Cloud and select Projects.
  3. 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.
  4. In your project, click Create Instance:
Screenshot of the instances section
Figure 1: Create an instance
  1. Select one of the available regions.
  2. In the Image section select Marketplace and click the “Grafana Server Latest” image.
Screenshot of the Grafana server image
Figure 2: Select “Grafana Server Latest”
  1. 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.)
  2. 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.”
Screenshot of the created Grafana server
Figure 3: The newly created Grafana server with “Power on” status

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

Screenshot of the Grafana home page
Figure 4: Log in to Grafana

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.

Screenshot of a Grafana dashboard
Figure 5: Add a Grafana dashboard

You can then add panels to your dashboard by clicking on the + icon on the top right corner of the screen.

Screenshot of a Grafana dashboard
Figure 6: Add panels to your dashboard

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:

Run Grafana on an Ubuntu server Using Gcore Cloud

Subscribe
to our newsletter

Get the latest industry trends, exclusive insights, and Gcore
updates delivered straight to your inbox.