Add Ceph Prometheus configurations (0.9.84)

This commit is contained in:
Joshua Boniface 2023-12-09 23:51:29 -05:00
parent 18054c01a0
commit 865c7d0872
1 changed files with 15 additions and 0 deletions

View File

@ -116,6 +116,21 @@
run_once: yes
ignore_errors: yes
- name: set Prometheus metric exporter enabled
command: ceph mgr module enable prometheus
run_once: yes
ignore_errors: yes
- name: enable Prometheus metrics on all pools
command: ceph config set mgr mgr/prometheus/rbd_stats_pools "*"
run_once: yes
ignore_errors: yes
- name: explicitly enable Prometheus performance counters
command: ceph config set mgr mgr/prometheus/exclude_perf_counters false
run_once: yes
ignore_errors: yes
- name: create mgr auth keyring
command: ceph auth get-or-create mgr.{{ ansible_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' --out-file /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring
become_user: ceph