Add additional Prometheus exporters

This commit is contained in:
Joshua Boniface 2023-12-10 00:24:19 -05:00
parent 8bf3bbdeb1
commit bf10ede298
5 changed files with 25 additions and 3 deletions

View File

@ -26,4 +26,4 @@ fail2ban_ignorelist:
cpu_governor: "ondemand" cpu_governor: "ondemand"
enable_prometheus_exporter: yes enable_prometheus_exporters: yes

View File

@ -296,11 +296,12 @@
until: apt_res is success until: apt_res is success
tags: base-packages tags: base-packages
- name: install Prometheus node exporter if enabled - name: install Prometheus node and process exporters if enabled
apt: apt:
name: name:
- prometheus-node-exporter - prometheus-node-exporter
when: enable_prometheus_exporter is defined and enable_prometheus_exporter - prometheus-process-exporter
when: enable_prometheus_exporters is defined and enable_prometheus_exporters
- name: install Intel-specific microcode package - name: install Intel-specific microcode package
apt: apt:

View File

@ -21,6 +21,9 @@ pvc_fence_successful_action: migrate # What to do with VMs when a fence is su
pvc_fence_failed_action: None # What to do with VMs when a fence is failed (migrate, None) - migrate is DANGEROUS without pvc_suicide_intervals set to < pvc_fence_intervals pvc_fence_failed_action: None # What to do with VMs when a fence is failed (migrate, None) - migrate is DANGEROUS without pvc_suicide_intervals set to < pvc_fence_intervals
pvc_migrate_target_selector: mem # The selector to use for migrating VMs pvc_migrate_target_selector: mem # The selector to use for migrating VMs
# Enable Prometheus exporters
enable_prometheus_exporters: yes
# Memory tuning # Memory tuning
pvc_osd_memory_limit: 4294967296 pvc_osd_memory_limit: 4294967296
pvc_zookeeper_heap_limit: 512M pvc_zookeeper_heap_limit: 512M

View File

@ -8,6 +8,15 @@
retries: 5 retries: 5
until: apt_res is success until: apt_res is success
- name: install Prometheus frr exporter if enabled
apt:
name:
- prometheus-frr-exporter
register: apt_res
retries: 5
until: apt_res is success
when: enable_prometheus_exporters is defined and enable_prometheus_exporters
- name: install frr configuration - name: install frr configuration
template: template:
src: frr/{{ item }}.j2 src: frr/{{ item }}.j2

View File

@ -37,6 +37,15 @@
retries: 5 retries: 5
until: apt_res is success until: apt_res is success
- name: install Prometheus postgresql exporter if enabled
apt:
name:
- prometheus-postgres-exporter
register: apt_res
retries: 5
until: apt_res is success
when: enable_prometheus_exporters is defined and enable_prometheus_exporters
- name: stop and disable postgresql - name: stop and disable postgresql
service: service:
name: "{{ item }}" name: "{{ item }}"