Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

sldenazis/web_app_metrics_demo

Repository files navigation

Web App with Metrics Demo

Build and run

This project uses docker-compose to build and run all the required services. Make sure you have docker-compose installed (https://docs.docker.com/compose/install/) and run the following command on the main directory of this project:

docker-compose up

Exposed services and endpoints

Once the services are up and running, the following services should be available:

Grafana

Grafana is available on http://localhost:3000/login. The credentials are:

  • Username: admin
  • Password: admin

You can find the following dashboards already configured:

Web App

It's a simple web application written in python3, using flask.

The metrics are exported using flask_prometheus_metrics.

Generate traffic on the app

In order to generate metrics to visualize interesting data on prometheus/grafana, you can execute this simple loop in bash:

while true; do curl localhost:5000/$RANDOM; curl localhost:5000/; curl localhost:5000/metrics; curl localhost:5000/404; curl localhost:5000/asdf; sleep 0.01; done

Screenshots

Web App dashboard

web_app_screenshot_1
web_app_screenshot_2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published