Added docker-compose with Prometheus and Grafana

This commit is contained in:
Andrey Terentev 2024-02-10 08:10:04 +07:00 committed by Andrey Terentev
parent 5a51e29861
commit 0123dbe17c
3 changed files with 27 additions and 0 deletions

2
.gitignore vendored
View File

@ -35,3 +35,5 @@ out/
### VS Code ### ### VS Code ###
.vscode/ .vscode/
appdata/

0
config/prometheus.yml Normal file
View File

25
docker-compose.yml Normal file
View File

@ -0,0 +1,25 @@
version: '3.9'
services:
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- "./config/prometheus.yml:/etc/prometheus/prometheus.yml"
networks:
metrics:
aliases: [ 'prometheus' ]
grafana:
image: grafana/grafana
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
networks:
metrics:
aliases: [ 'grafana' ]
networks:
metrics: