From 68e428ad87f1a57f2a037423fcf8ad31239db24c Mon Sep 17 00:00:00 2001 From: Marius Leustean Date: Tue, 20 Dec 2022 12:39:01 +0200 Subject: [PATCH] Add nova-bigvm prometheus exporter --- openstack/nova/templates/bigvm-deployment.yaml | 3 +++ openstack/nova/templates/etc/_nova.conf.tpl | 4 ++++ openstack/nova/values.yaml | 1 + 3 files changed, 8 insertions(+) diff --git a/openstack/nova/templates/bigvm-deployment.yaml b/openstack/nova/templates/bigvm-deployment.yaml index b98ca405aa8..a18f5044e1a 100644 --- a/openstack/nova/templates/bigvm-deployment.yaml +++ b/openstack/nova/templates/bigvm-deployment.yaml @@ -75,6 +75,9 @@ spec: resources: {{ toYaml .Values.pod.resources.bigvm | indent 12 }} {{- end }} + ports: + - name: metrics + containerPort: {{ required ".Values.nova_bigvm_exporter_port" .Values.nova_bigvm_exporter_port }} volumeMounts: - name: nova-etc mountPath: /etc/nova diff --git a/openstack/nova/templates/etc/_nova.conf.tpl b/openstack/nova/templates/etc/_nova.conf.tpl index 6eb0d63824c..214fe527163 100644 --- a/openstack/nova/templates/etc/_nova.conf.tpl +++ b/openstack/nova/templates/etc/_nova.conf.tpl @@ -36,6 +36,10 @@ dhcp_domain = openstack.{{ required ".Values.global.region is missing" .Values.g {{ template "utils.snippets.debug.eventlet_backdoor_ini" "nova" }} +{{- if .Values.nova_bigvm_enabled -}} +bigvm_exporter_listen_port = {{ required ".Values.nova_bigvm_exporter_port" .Values.nova_bigvm_exporter_port }} +{{- end }} + [database] {{- include "ini_sections.database_options_mysql" . }} diff --git a/openstack/nova/values.yaml b/openstack/nova/values.yaml index 390fcc043e4..bab6730b89b 100644 --- a/openstack/nova/values.yaml +++ b/openstack/nova/values.yaml @@ -914,6 +914,7 @@ sentry: enabled: true nova_bigvm_enabled: true +nova_bigvm_exporter_port: 9847 pre_change_hook: image: "sapcc/unified-kubernetes-toolbox"