Douglas Viroel 428b9050c1 Fix exporter URL to support multinode deployments
A previous change (cf2d127) set SERVICE_HOST for constructing
exporter URLs, but SERVICE_HOST references to the controller
node IP. This breaks multinode deployments where exporters are
running on subnodes, as the health checks would try to reach the
controller instead of the local node.

This change properly checks SERVICE_IP_VERSION and uses HOST_IPV6
for IPv6 environments or HOST_IP for IPv4, ensuring the URL points
to the correct node where the exporter is actually running.

Additionally, IPv6 addresses are wrapped in square brackets as
required for URLs (e.g., http://[2001:db8::1]:9100/metrics).

A common get_host_ip_for_url function is introduced in lib/common
to centralize IP version handling and avoid code duplication across
all exporter modules.

Assisted-By: Claude (claude-sonnet-4-5)

Closes-Bug: #2141918
Change-Id: Icff76c7dc52d6444aa1c049dd6eada27016f4166
Signed-off-by: Douglas Viroel <viroel@gmail.com>
2026-03-04 13:42:43 -03:00
2025-01-23 15:02:18 +00:00
2025-01-28 17:56:45 +05:30
2025-01-28 17:56:45 +05:30
2025-01-28 17:56:45 +05:30

Devstack Prometheus Plugin

Overview

Devstack plugin to configure prometheus, node-exporter, pushgateway and alertmanager.

Usage

  • To get started quickly, just enable the plugin in your local.conf:

    enable_plugin devstack-plugin-prometheus https://opendev.org/openstack/devstack-plugin-prometheus

Description
DevStack plugin to install and configure prometheus, node-exporter, pushgateway and alertmanager.
Readme 281 KiB
Languages
Shell 100%