Refactoring

This commit is contained in:
2026-01-15 00:14:56 +04:00
parent 9eeb0fb1f2
commit 09bd0766b0
27 changed files with 370 additions and 47 deletions

View File

@@ -9,6 +9,13 @@ services:
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
memory: 256M
networks:
- grafana_network
@@ -24,6 +31,13 @@ services:
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_USER:?} # Ваш логин
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:?} # Ваш пароль
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
memory: 128M
networks:
- grafana_network
@@ -41,6 +55,13 @@ services:
- "--path.sysfs=/host/sys"
- "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)"
- "--collector.systemd"
deploy:
resources:
limits:
cpus: '0.1'
memory: 64M
reservations:
memory: 32M
networks:
- grafana_network
@@ -50,4 +71,5 @@ volumes:
networks:
grafana_network:
name: grafana_network
driver: bridge