Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Building a Grafana Instance to Work with Prometheus Data

Prometheus is a powerful tool for reliably collecting and serving metric data, but its built-in visualization capabilities are limited. Luckily, Prometheus can easily integrate with more robust visualization tools such as Grafana, allowing you to build robust and useful dashboards to get the most out of your data. In this lab, you will have the opportunity to build a Grafana server and configure it to access Prometheus metric data. After completing this lab, you will know how to install Grafana and integrate it with Prometheus.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 25, 2025
Duration
45m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Install and Run Grafana
    1. Log in to the Grafana server.

    2. Install some required packages:

      sudo apt-get install -y apt-transport-https software-properties-common wget
      
    3. Add the GPG key for the Grafana OSS repository, then add the repository:

      wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
      
      sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
      
    4. Install the Grafana package:

      sudo apt-get update
      
      sudo apt-get install grafana=6.6.2
      
    5. Enable and start the grafana-server service:

      sudo systemctl enable grafana-server
      
      sudo systemctl start grafana-server
      
    6. Make sure the service is in the active (running) state:

      sudo systemctl status grafana-server
      
    7. Verify Grafana is working by accessing it in a web browser at http://<GRAFANA_SERVER_PUBLIC_IP>:3000.

  2. Challenge

    Configure a Prometheus Data Source on the Grafana Server
    1. Log in to Grafana with the username admin and password admin.

    2. Reset the password when prompted.

    3. Click Add data source.

    4. Select Prometheus.

    5. For the URL, enter http://10.0.1.101:9090. Note that 10.0.1.101 is the private IP address of the Prometheus server.

    6. Click Save & Test. You should see a banner that says, Data source is working.

    7. Test your setup by running a query to get some Prometheus data. Click the Explore icon on the left.

    8. In the PromQL Query input, enter a simple query, such as up.

    9. Execute the query. You should see some data appear. If so, congratulations! This data comes from the Prometheus server.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight