Added metric collection to server

This commit is contained in:
Manuel Forcén Muñoz 2024-12-10 19:22:04 +01:00
parent d7c3b9cdaa
commit a7bbea491c
4 changed files with 1746 additions and 0 deletions

View file

@ -0,0 +1,25 @@
services:
prometheus:
image: prom/prometheus
container_name: infra-prometheus
restart: unless-stopped
logging:
driver: local
networks:
infra-network:
ipv4_address: 172.28.0.5
aliases:
- prom.mforcen.dev
volumes:
- type: bind
source: /opt/infra/prometheus/prometheus.yml
target: /etc/prometheus/prometheus.yml
- type: volume
source: prom-data
target: /prometheus
volumes:
prom-data:
networks:
infra-network:
external: true