ansible-core-net / deploy (push) Canceled after 0s
ansible-core-secrets / deploy (push) Canceled after 0s
ansible-ger-nod-02 / deploy (push) Canceled after 0s
ansible-opnsense / deploy (push) Canceled after 0s
ansible-core-mon / deploy (push) Successful in 58s
ansible-rus-central / deploy (push) Successful in 44s
Prometheus остаётся для LAN. Нода отдаёт метрики через vmagent, а панель ходит на неё по отдельному ключу NetBird, не через группу роутеров. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
870 B
Django/Jinja
34 lines
870 B
Django/Jinja
services:
|
|
cadvisor:
|
|
image: {{ cadvisor_image }}
|
|
container_name: vmagent-cadvisor
|
|
network_mode: host
|
|
privileged: true
|
|
restart: unless-stopped
|
|
command:
|
|
- --listen_ip=127.0.0.1
|
|
- --port=9101
|
|
- --docker_only=true
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:ro
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker:/var/lib/docker:ro
|
|
- /dev/disk:/dev/disk:ro
|
|
|
|
vmagent:
|
|
image: {{ vmagent_image }}
|
|
container_name: vmagent
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
command:
|
|
- -httpListenAddr=127.0.0.1:8429
|
|
- -promscrape.config=/etc/vmagent/scrape.yml
|
|
- -promscrape.configCheckInterval=60s
|
|
- -remoteWrite.url={{ vmagent_remote_write_url }}
|
|
volumes:
|
|
- ./scrape.yml:/etc/vmagent/scrape.yml:ro
|
|
- ./conf.d:/etc/vmagent/conf.d:ro
|
|
depends_on:
|
|
- cadvisor
|