feat: VictoriaMetrics и NetBird между панелью и ger-nod-02
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
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>
This commit is contained in:
1 parent
5704272c18
commit
72a9c86e52
46 files changed
+13496
-25
No files matched your search
@@ -78,4 +78,64 @@ services:
|
||||
depends_on:
|
||||
- prometheus
|
||||
|
||||
vmsingle:
|
||||
image: {{ victoriametrics_image }}
|
||||
container_name: monitoring-vmsingle
|
||||
hostname: vmsingle
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- --storageDataPath=/victoria-metrics-data
|
||||
volumes:
|
||||
- ./victoria-metrics-data:/victoria-metrics-data
|
||||
ports:
|
||||
- "{{ ansible_host }}:8428:8428"
|
||||
|
||||
cadvisor:
|
||||
image: {{ cadvisor_image }}
|
||||
container_name: monitoring-cadvisor
|
||||
restart: unless-stopped
|
||||
privileged: true
|
||||
command:
|
||||
- --listen_ip=0.0.0.0
|
||||
- --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
|
||||
ports:
|
||||
- "127.0.0.1:9101:9101"
|
||||
{% if xray_checker_subscription_url | length > 0 %}
|
||||
|
||||
xray-checker:
|
||||
image: {{ xray_checker_image }}
|
||||
container_name: monitoring-xray-checker
|
||||
hostname: xraychecker
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ./xray-checker.env
|
||||
ports:
|
||||
- "127.0.0.1:2112:2112"
|
||||
{% endif %}
|
||||
|
||||
vmagent:
|
||||
image: {{ vmagent_image }}
|
||||
container_name: monitoring-vmagent
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- -httpListenAddr=0.0.0.0:8429
|
||||
- -promscrape.config=/etc/vmagent/scrape.yml
|
||||
- -promscrape.configCheckInterval=60s
|
||||
- -remoteWrite.url=http://vmsingle:8428/api/v1/write
|
||||
volumes:
|
||||
- ./vmagent/scrape.yml:/etc/vmagent/scrape.yml:ro
|
||||
- ./vmagent/conf.d:/etc/vmagent/conf.d:ro
|
||||
ports:
|
||||
- "127.0.0.1:8429:8429"
|
||||
depends_on:
|
||||
- vmsingle
|
||||
- cadvisor
|
||||
|
||||
|
||||
@@ -10,3 +10,12 @@ datasources:
|
||||
jsonData:
|
||||
timeInterval: 15s
|
||||
|
||||
- name: VictoriaMetrics
|
||||
uid: victoriametrics
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://vmsingle:8428
|
||||
isDefault: false
|
||||
jsonData:
|
||||
timeInterval: 15s
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
- job_name: integrations/cAdvisor
|
||||
scrape_interval: 15s
|
||||
static_configs:
|
||||
- targets: ["cadvisor:9101"]
|
||||
labels:
|
||||
instance: "{{ inventory_hostname }}"
|
||||
cluster: "{{ vmagent_cluster }}"
|
||||
@@ -0,0 +1,7 @@
|
||||
- job_name: integrations/node_exporter
|
||||
scrape_interval: 15s
|
||||
static_configs:
|
||||
- targets: ["{{ ansible_host }}:9100"]
|
||||
labels:
|
||||
instance: "{{ inventory_hostname }}"
|
||||
cluster: "{{ vmagent_cluster }}"
|
||||
@@ -0,0 +1,5 @@
|
||||
scrape_config_files:
|
||||
- "/etc/vmagent/conf.d/*.yml"
|
||||
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
@@ -0,0 +1,7 @@
|
||||
- job_name: xray_checker
|
||||
scrape_interval: 15s
|
||||
static_configs:
|
||||
- targets: ["xray-checker:2112"]
|
||||
labels:
|
||||
instance: "{{ inventory_hostname }}"
|
||||
cluster: "{{ vmagent_cluster }}"
|
||||
@@ -0,0 +1,3 @@
|
||||
SUBSCRIPTION_URL={{ xray_checker_subscription_url }}
|
||||
PROXY_STATUS_CHECK_URL=http://google.com/generate_204
|
||||
PROXY_CHECK_INTERVAL=60
|
||||
Reference in new issue
Block a user