From b2ca623d145c94dbc4480c5c0527d352ee6b8edbc89d5cdf62ea25f0de982a8c Mon Sep 17 00:00:00 2001 From: Marco Chiappero Date: Fri, 4 Jul 2025 15:26:51 +0000 Subject: [PATCH] Remove unused prometheus exporter The Prometheus exporter is effectively, not only unused, but unusable, due to missing dependencies. Since currently we don't have use case for it, opt for dropping the exporter entirely from the image. Signed-off-by: Marco Chiappero --- ironic-image/configure-ironic.sh | 1 - ironic-image/ironic.conf.j2 | 5 ----- ironic-image/runironic-exporter | 12 ------------ 3 files changed, 18 deletions(-) delete mode 100644 ironic-image/runironic-exporter diff --git a/ironic-image/configure-ironic.sh b/ironic-image/configure-ironic.sh index 8ab2404..e2daa7d 100644 --- a/ironic-image/configure-ironic.sh +++ b/ironic-image/configure-ironic.sh @@ -84,7 +84,6 @@ echo 'Options set from Environment variables' env | grep "^OS_" || true mkdir -p /shared/html -mkdir -p /shared/ironic_prometheus_exporter configure_json_rpc_auth diff --git a/ironic-image/ironic.conf.j2 b/ironic-image/ironic.conf.j2 index 58bc69d..a487dc5 100644 --- a/ironic-image/ironic.conf.j2 +++ b/ironic-image/ironic.conf.j2 @@ -187,11 +187,6 @@ insecure = {{ env.IRONIC_INSECURE }} [nova] send_power_notifications = false -[oslo_messaging_notifications] -driver = prometheus_exporter -location = /shared/ironic_prometheus_exporter -transport_url = fake:// - [pxe] # NOTE(dtantsur): keep this value at least 3x lower than # [conductor]deploy_callback_timeout so that at least some retries happen. diff --git a/ironic-image/runironic-exporter b/ironic-image/runironic-exporter deleted file mode 100644 index f2f60f2..0000000 --- a/ironic-image/runironic-exporter +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/bash - -# shellcheck disable=SC1091 -. /bin/configure-ironic.sh - -FLASK_RUN_HOST=${FLASK_RUN_HOST:-0.0.0.0} -FLASK_RUN_PORT=${FLASK_RUN_PORT:-9608} - -export IRONIC_CONFIG="/etc/ironic/ironic.conf" - -exec gunicorn -b "${FLASK_RUN_HOST}:${FLASK_RUN_PORT}" -w 4 \ - ironic_prometheus_exporter.app.wsgi:application -- 2.49.0