Grafana – Setup a Sample Application “Grafana News”

This tutorial uses a sample application to demonstrate some of the features in Grafana. To complete the exercises in this tutorial, you need to download the files to your local machine.

In this step, you’ll set up the sample application, as well as supporting services, such as Prometheus and Loki.

  1. Clone the github.com/grafana/tutorial-environment repository.

git clone https://github.com/grafana/tutorial-environment.git

2. Change to the directory where you cloned this repository:


cd tutorial-environment

3. Make sure Docker is running:


docker ps

4. No errors means it is running. If you get an error, then start Docker and then run the command again.

Start the sample application:


docker-compose up -d

The first time you run docker-compose up -d, Docker downloads all the necessary resources for the tutorial. This might take a few minutes, depending on your internet connection.

Ensure all services are up-and-running:


docker-compose ps

In the State column, it should say Up for all services.

Browse to the sample application on localhost:8081.

About Grafana News Application

The sample application, Grafana News, lets you post links and vote for the ones you like.

  • To add a link:
  • In Title, enter Example.
  • In URL, enter https://example.com.
  • Click Submit to add the link.

The link appears in the list under the Grafana News heading.

To vote for a link, click the triangle icon next to the name of the link.

Reference

  • https://grafana.com/tutorials/grafana-fundamentals/
Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x