Set HAProxy server timeout for openstack exporter

Set the openstack exporter HAProxy backend server timeout to
``prometheus_openstack_exporter_timeout`` to ensure that scrapes
that take longer than haproxy_server_timeout don't timeout.

Closes-Bug: #2006051
Change-Id: I44841a6b6fa5bf659cace06295d18c093ad7f927
This commit is contained in:
Matt Anson 2023-02-05 12:22:01 +00:00 committed by Pierre Riteau
parent 48db509042
commit 8000550e02
2 changed files with 11 additions and 0 deletions

View File

@ -97,11 +97,15 @@ prometheus_services:
mode: "http"
external: false
port: "{{ prometheus_openstack_exporter_port }}"
backend_http_extra:
- "timeout server {{ prometheus_openstack_exporter_timeout }}"
prometheus_openstack_exporter_external:
enabled: "{{ enable_prometheus_openstack_exporter_external | bool }}"
mode: "http"
external: true
port: "{{ prometheus_openstack_exporter_port }}"
backend_http_extra:
- "timeout server {{ prometheus_openstack_exporter_timeout }}"
prometheus-elasticsearch-exporter:
container_name: prometheus_elasticsearch_exporter
group: prometheus-elasticsearch-exporter

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes 504 timeout when scraping openstack exporter.
Ensures that HAProxy server timeout is the same as the
scrape timeout for the openstack exporter backend.
`LP#2006051 <https://launchpad.net/bugs/2006051>`__