/django-prometheus-docker

An example setup of Prometheus and Django using Docker Compose.

Primary LanguagePython

Django/ Prometheus/ Docker Compose Example

Description

A setup to run 3 Docker containers (2 Django services and 1 Prometheus service) using Docker Compose. The Prometheus container is used to monitor the 2 Django apps.

The Prometheus container runs at port 9090.

Django "app1" runs at port 8000.

Django "app2" runs at port 8080.

How to Run?

docker-compose -f docker-compose.yml up

Check: 127.0.0.1:9090, 127.0.0.1:8000 and 127.0.0.1:8080

For Prometheus:

Go to status then targets to find the Django services.