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.
- Clone the github.com/grafana/tutorial-environment repository.
git clone https://github.com/grafana/tutorial-environment.gitCode language: PHP (php)
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/
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals