Skip to content

Commit a0bddf5

Browse files
authored
Merge pull request #842 from stackhpc/disable-os-capacity
Disable os-capacity by default
2 parents 2b27b85 + e004af5 commit a0bddf5

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

etc/kayobe/kolla/config/haproxy/services.d/os_exporter.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if stackhpc_enable_os_capacity | bool %}
12
{% raw %}
23
frontend os_capacity_frontend
34
mode http
@@ -17,3 +18,4 @@ backend os_capacity_backend
1718
server {{ host_name }} {{ host_ip }}:9000 check inter 2000 rise 2 fall 5
1819
{% endfor %}
1920
{% endraw %}
21+
{% endif %}

etc/kayobe/kolla/config/prometheus/prometheus.yml.d/70-oscapacity.yml.j2 renamed to etc/kayobe/kolla/config/prometheus/prometheus.yml.d/70-oscapacity.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# yamllint disable-file
2+
---
3+
{% if stackhpc_enable_os_capacity | bool %}
14
{% raw %}
25
scrape_configs:
36
- job_name: os-capacity
@@ -7,3 +10,4 @@ scrape_configs:
710
scrape_interval: 15m
811
scrape_timeout: 10m
912
{% endraw %}
13+
{% endif %}

etc/kayobe/stackhpc-monitoring.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99
alertmanager_low_memory_threshold_gib: 5
1010

1111
###############################################################################
12+
# Exporter configuration
13+
14+
# Whether the OpenStack Capacity exporter is enabled.
15+
# Enabling this flag will result in HAProxy configuration and Prometheus scrape
16+
# targets being templated during deployment.
17+
stackhpc_enable_os_capacity: false

0 commit comments

Comments
 (0)