add infrastructure monitoring
Add Clickstack (HyperDX) as the aggregation platform. Configure Otel Collector to collect host metrics.
This commit is contained in:
@@ -90,4 +90,19 @@
|
||||
src: "{{ hostvars[groups['managers'][0]]['ceph_bootstrap_ip'] }}:/"
|
||||
fstype: ceph
|
||||
opts: "name=admin,secret={{ ceph_admin_key.stdout }}"
|
||||
state: mounted
|
||||
state: mounted
|
||||
|
||||
# Metriken aktivieren
|
||||
- name: CEPH | Prüfen, ob Prometheus Modul bereits aktiv ist
|
||||
ansible.builtin.command: "ceph mgr module ls --format json"
|
||||
register: ceph_modules_status
|
||||
changed_when: false
|
||||
delegate_to: "{{ groups['managers'][0] }}"
|
||||
run_once: true
|
||||
|
||||
- name: CEPH | Prometheus Modul aktivieren
|
||||
ansible.builtin.command: "ceph mgr module enable prometheus"
|
||||
# Wir prüfen im JSON-Output, ob 'prometheus' in der Liste 'enabled_modules' fehlt
|
||||
when: "'prometheus' not in (ceph_modules_status.stdout | from_json).enabled_modules"
|
||||
delegate_to: "{{ groups['managers'][0] }}"
|
||||
run_once: true
|
||||
Reference in New Issue
Block a user