Add enable_prometheus switch

This commit is contained in:
Joshua Boniface 2023-12-29 09:29:29 -05:00
parent 5089aec178
commit f6878c69ad
3 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,9 @@ debian_main_repository: http://ftp.debian.org/debian
debian_security_repository: http://security.debian.org debian_security_repository: http://security.debian.org
debian_pvc_repository: https://repo.parallelvirtualcluster.org/debian debian_pvc_repository: https://repo.parallelvirtualcluster.org/debian
# Enable Prometheus metric reporting from PVC nodes (installs prometheus-node-exporter) # Enable Prometheus metric reporting from PVC nodes; installs prometheus-node-exporter and enables
# (unauthenticated) metrics endpoints within the PVC API. Set "no" to turn off Prometheus metric
# functionality.
enable_prometheus_exporters: yes enable_prometheus_exporters: yes
# Root user password # Root user password

View File

@ -21,7 +21,7 @@ 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 and corresponding API endpoints
enable_prometheus_exporters: yes enable_prometheus_exporters: yes
# Memory tuning # Memory tuning

View File

@ -15,6 +15,7 @@ subsystem:
enable_storage: yes enable_storage: yes
enable_worker: yes enable_worker: yes
enable_api: yes enable_api: yes
enable_prometheus: {{ 'yes' if enable_prometheus_exporters else 'no' }}
cluster: cluster:
name: {{ cluster_group }} name: {{ cluster_group }}