Increase openstack-exporter timeout to 45 seconds

Even on moderately sized clouds, openstack-exporter can easily take more
than 10 seconds to return, causing Prometheus to fail to scrape data.

Since the default scrape internal is 60 seconds, we can increase the
default timeout to 45 seconds.

Change-Id: Id8dffc425ff057b1e45103eb53734543bca8be80
Closes-Bug: #1976629
This commit is contained in:
Pierre Riteau 2022-06-02 15:56:50 +02:00
parent 53f546778d
commit 9653ebe102
2 changed files with 8 additions and 1 deletions

View File

@ -1113,7 +1113,7 @@ enable_prometheus_etcd_integration: "{{ enable_prometheus | bool and enable_etcd
prometheus_alertmanager_user: "admin"
prometheus_scrape_interval: "60s"
prometheus_openstack_exporter_interval: "{{ prometheus_scrape_interval }}"
prometheus_openstack_exporter_timeout: "10s"
prometheus_openstack_exporter_timeout: "45s"
prometheus_elasticsearch_exporter_interval: "{{ prometheus_scrape_interval }}"
prometheus_cmdline_extras:
prometheus_ceph_mgr_exporter_endpoints: []

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Increases ``prometheus_openstack_exporter_timeout`` to 45 seconds to reduce
the odds of scrape failures on deployments with large number of OpenStack
resources.
`LP#1976629 <https://bugs.launchpad.net/kolla-ansible/+bug/1976629>`__