Skip to content

Commit 635bcae

Browse files
Alban Lecorpsjovial
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 76d2b98) (cherry picked from commit da1124c)
1 parent 6b28299 commit 635bcae

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
@@ -1110,6 +1110,7 @@ enable_prometheus_rabbitmq_exporter: "{{ enable_prometheus | bool and enable_rab
11101110
prometheus_alertmanager_user: "admin"
11111111
prometheus_libvirt_exporter_interval: "60s"
11121112
prometheus_openstack_exporter_interval: "60s"
1113+
prometheus_openstack_exporter_timeout: "10s"
11131114
prometheus_elasticsearch_exporter_interval: "60s"
11141115
prometheus_cmdline_extras:
11151116
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)