make prometheus less big
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
@@ -15,6 +15,7 @@ ExecStart=/usr/sbin/prometheus \
|
||||
--web.config.file=/etc/prometheus/web-config.yaml \
|
||||
--storage.tsdb.path /prometheus-data/ \
|
||||
--storage.tsdb.retention.time 180d \
|
||||
--storage.tsdb.retention.size 35GB \
|
||||
--storage.tsdb.max-block-duration=2h \
|
||||
--storage.tsdb.min-block-duration=2h \
|
||||
--web.enable-remote-write-receiver \
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
label: "{{ item.ansible_host }}"
|
||||
|
||||
- import_playbook: timezone.yml
|
||||
- import_playbook: ntp-chrony.yml
|
||||
|
||||
- import_playbook: packages.yml
|
||||
- import_playbook: resolvconf.yml
|
||||
- import_playbook: users.yml
|
||||
|
||||
@@ -46,5 +46,5 @@
|
||||
name: chrony
|
||||
state: started
|
||||
enabled: yes
|
||||
# Магия фильтрации: применяем ТОЛЬКО если это не гостевой LXC
|
||||
when: not (ansible_virtualization_type == 'lxc' and ansible_virtualization_role == 'guest')
|
||||
# Просто и со вкусом: если в фактах есть lxc — сразу пропускаем задачу
|
||||
when: ansible_virtualization_type != 'lxc'
|
||||
Reference in New Issue
Block a user