Skip to content

Commit 744c9af

Browse files
Alban Lecorpspriteau
authored andcommitted
Add override timeout for openstack exporter
Add scrape_timeout option in prometheus_openstack_exporter job in order to avoid timeout for large Openstack environment. Change-Id: If96034e602bee3b3eea34a2656047355e1d17eec Closes-Bug: #1903547 (cherry picked from commit 99680b5)
1 parent e2fac22 commit 744c9af

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ansible/group_vars/all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ enable_prometheus_rabbitmq_exporter: "{{ enable_prometheus | bool and enable_rab
11151115

11161116
prometheus_alertmanager_user: "admin"
11171117
prometheus_openstack_exporter_interval: "60s"
1118+
prometheus_openstack_exporter_timeout: "10s"
11181119
prometheus_elasticsearch_exporter_interval: "60s"
11191120
prometheus_cmdline_extras:
11201121
prometheus_ceph_mgr_exporter_endpoints: []

ansible/roles/prometheus/templates/prometheus.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ scrape_configs:
8787
{% if enable_prometheus_openstack_exporter | bool %}
8888
- job_name: openstack_exporter
8989
scrape_interval: {{ prometheus_openstack_exporter_interval }}
90+
scrape_timeout: {{ prometheus_openstack_exporter_timeout }}
9091
honor_labels: true
9192
static_configs:
9293
- targets:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
features:
3+
- Add new option prometheus_openstack_exporter_timeout to override default
4+
scrape_timeout for openstack exporter job.

0 commit comments

Comments
 (0)