Added metric collection to server
This commit is contained in:
parent
d7c3b9cdaa
commit
a7bbea491c
4 changed files with 1746 additions and 0 deletions
25
files/prometheus/compose.yml
Normal file
25
files/prometheus/compose.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue