Traefik – Prometheus – Grafana – Apps – Metrics | Docker-compose Stack


Steps:

git clone https://github.com/nightmareze1/traefik-prometheus-metrics.git

Later :

You need add in your /etc/host

127.0.0.1 app1.itshellweb.org

127.0.0.1 app2.itshellweb.org

Later, running:

docker-compose up –build

Check works urls:

prometheus: http://localhost:9090/

traefik: http://localhost:8085/ #user: admin
#pass: testing

app1: http://app1.itshellweb.org

app2: http://app2.itshellweb.org

#

Grafana read prometheus data and dashboard with status codes , response time ,etc.

Grafana: http://localhost:3000 #Login with admin #user: admin #pass: test

For test metrics

traefik: http://localhost:8085/metrics

or

View metrics in prometheus using dashboard and querys.

Stop Stack:

docker-compose down

PICS:

Open the apps with query-string for test

Check if prometheus request count works

Test url traefik endpoint:8085/metrics

This configuration of traefik have enable http-errors  monitor

Open grafana and login with user admin:test

Check the dashboard count the status-code request and metrics.

Dejar un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.