From 0edb82cbaea239c41f0f04ef9a5e21940554f6bf Mon Sep 17 00:00:00 2001 From: "Chandan Kumar (raukadah)" Date: Wed, 12 Mar 2025 13:07:08 +0530 Subject: [PATCH] Add devstack-prometheus job to validate prometheus plugin It is a basic devstack job which install prometheus services only. It will help to validate the plugin fast. Change-Id: I6d136955192eb15cd03ee3f0824cf537d873bc3c Signed-off-by: Chandan Kumar (raukadah) --- .zuul.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.zuul.yaml b/.zuul.yaml index 18fd556..3c8a682 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -3,6 +3,39 @@ jobs: - openstack-tox-linters - watcher-prometheus-integration + - devstack-prometheus gate: jobs: - openstack-tox-linters + - devstack-prometheus + +- job: + name: devstack-prometheus-base + nodeset: openstack-single-node-noble + abstract: true + parent: devstack-base + description: | + A minimal DevStack base job to install and configure prometheus and + node exporter service only. + required-projects: + - opendev.org/openstack/devstack-plugin-prometheus + - opendev.org/openstack/requirements + vars: + devstack_plugins: + devstack-plugin-prometheus: https://opendev.org/openstack/devstack-plugin-prometheus + devstack_services: + prometheus: true + node_exporter: true + zuul_copy_output: + /etc/prometheus/prometheus.yml: logs + +- job: + name: devstack-prometheus + parent: devstack-prometheus-base + description: | + A Devstack job to install/configure prometheus and node exporter + on a single node and exclude cpu metrics + vars: + devstack_localrc: + # Avoid collecting cpu resources. + NODE_EXPORTER_COLLECTOR_EXCLUDE: "cpu"