make prometheus less big
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
hogweed1
2026-06-11 00:21:28 +10:00
parent 7c2e4bde78
commit d1528c8e31
3 changed files with 5 additions and 2 deletions

View File

@@ -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 \

View File

@@ -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

View File

@@ -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'