feat(monitoring): цели Prometheus из inventory и хосты в Grafana через up
ansible-core-mon / deploy (push) Successful in 26s
ansible-core-net / deploy (push) Successful in 43s
ansible-core-secrets / deploy (push) Successful in 15s
ansible-ger-nod-02 / deploy (push) Successful in 55s
ansible-opnsense / deploy (push) Successful in 5s
ansible-rus-central / deploy (push) Successful in 59s
ansible-core-mon / deploy (push) Successful in 26s
ansible-core-net / deploy (push) Successful in 43s
ansible-core-secrets / deploy (push) Successful in 15s
ansible-ger-nod-02 / deploy (push) Successful in 55s
ansible-opnsense / deploy (push) Successful in 5s
ansible-rus-central / deploy (push) Successful in 59s
Список scrape строится из inventory, дашборд показывает все цели, не только с успешным node_exporter. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4316f2c68e
commit
408dfd09c3
6 files changed
+79
-26
No files matched your search
@@ -16,26 +16,12 @@ scrape_configs:
|
||||
static_configs:
|
||||
- targets: ["localhost:9090"]
|
||||
|
||||
- job_name: "node-exporter"
|
||||
- job_name: "{{ monitoring_scrape_job_name }}"
|
||||
static_configs:
|
||||
{% for target in monitoring_scrape_targets %}
|
||||
- targets:
|
||||
- "192.168.1.108:9100"
|
||||
- "{{ target.address }}:{{ target.port }}"
|
||||
labels:
|
||||
host: "core-mon"
|
||||
env: "prod"
|
||||
- targets:
|
||||
- "192.168.1.104:9100"
|
||||
labels:
|
||||
host: "core-net"
|
||||
env: "prod"
|
||||
- targets:
|
||||
- "192.168.1.102:9100"
|
||||
labels:
|
||||
host: "core-secrets"
|
||||
env: "prod"
|
||||
- targets:
|
||||
- "45.154.185.208:9100"
|
||||
labels:
|
||||
host: "rus-central"
|
||||
env: "prod"
|
||||
|
||||
host: "{{ target.name }}"
|
||||
env: "{{ target.env }}"
|
||||
{% endfor %}
|
||||
Reference in new issue
Block a user