Disable real metrics on devstack injected data jobs

We need to disable real data metrics comming from host and
instances on injected data jobs as they are creating wrong results
when they are mixed with the injected data.

We already did this on watcher-operator disabling ceilometer agent and
node_exported on [1] so now we have to do it on devstack installations,
disabling meminfo on node_exporter for host metrics (cpu is already
disabled) and sg-core for instance metrics

[1] https://github.com/openstack-k8s-operators/watcher-operator/pull/196

Change-Id: I4130ca6dd7cb52d96842e04e7720431ebc76efff
Signed-off-by: morenod <dsanzmor@redhat.com>
This commit is contained in:
morenod
2025-07-17 12:45:37 +02:00
parent 9b9965265a
commit 0435200fb1

View File

@@ -47,6 +47,13 @@
rabbit: false rabbit: false
mysql: false mysql: false
vars: vars:
devstack_localrc:
GNOCCHI_ARCHIVE_POLICY_TEMPEST: "ceilometer-low-rate"
CEILOMETER_PIPELINE_INTERVAL: 15
devstack_services:
ceilometer-acompute: false
ceilometer-acentral: true
ceilometer-anotification: true
devstack_local_conf: devstack_local_conf:
post-config: post-config:
$WATCHER_CONF: $WATCHER_CONF:
@@ -66,6 +73,8 @@
block_migration_for_live_migration: true block_migration_for_live_migration: true
placement: placement:
min_microversion: 1.29 min_microversion: 1.29
telemetry:
ceilometer_polling_interval: 15
devstack_plugins: devstack_plugins:
ceilometer: https://opendev.org/openstack/ceilometer ceilometer: https://opendev.org/openstack/ceilometer
@@ -99,7 +108,6 @@
zuul_copy_output: zuul_copy_output:
/etc/hosts: logs /etc/hosts: logs
- job: - job:
name: watcher-tempest-functional-ipv6-only name: watcher-tempest-functional-ipv6-only
parent: devstack-tempest-ipv6 parent: devstack-tempest-ipv6
@@ -157,6 +165,7 @@
watcher: https://opendev.org/openstack/watcher watcher: https://opendev.org/openstack/watcher
devstack-plugin-prometheus: https://opendev.org/openstack/devstack-plugin-prometheus devstack-plugin-prometheus: https://opendev.org/openstack/devstack-plugin-prometheus
devstack_services: devstack_services:
ceilometer-acompute: true
watcher-api: true watcher-api: true
watcher-decision-engine: true watcher-decision-engine: true
watcher-applier: true watcher-applier: true
@@ -174,9 +183,6 @@
CEILOMETER_BACKENDS: "sg-core" CEILOMETER_BACKENDS: "sg-core"
CEILOMETER_PIPELINE_INTERVAL: 15 CEILOMETER_PIPELINE_INTERVAL: 15
CEILOMETER_ALARM_THRESHOLD: 6000000000 CEILOMETER_ALARM_THRESHOLD: 6000000000
# avoid collecting real host cpu metrics since tests
# will inject fake metrics when needed
NODE_EXPORTER_COLLECTOR_EXCLUDE: "cpu"
PROMETHEUS_CONFIG_FILE: "/home/zuul/prometheus.yml" PROMETHEUS_CONFIG_FILE: "/home/zuul/prometheus.yml"
devstack_local_conf: devstack_local_conf:
post-config: post-config:
@@ -235,9 +241,6 @@
devstack_localrc: devstack_localrc:
CEILOMETER_BACKEND: "none" CEILOMETER_BACKEND: "none"
CEILOMETER_BACKENDS: "none" CEILOMETER_BACKENDS: "none"
# avoid collecting real host cpu metric since tests
# will inject fake metrics when needed
NODE_EXPORTER_COLLECTOR_EXCLUDE: "cpu"
devstack_local_conf: devstack_local_conf:
post-config: post-config:
$WATCHER_CONF: $WATCHER_CONF:
@@ -251,11 +254,23 @@
- job: - job:
name: watcher-prometheus-integration name: watcher-prometheus-integration
parent: watcher-sg-core-tempest-base parent: watcher-sg-core-tempest-base
vars:
devstack_services:
ceilometer-acompute: false
node_exporter: false
group-vars:
subnode:
devstack_services:
ceilometer-acompute: false
node_exporter: false
- job: - job:
name: watcher-prometheus-integration-realdata name: watcher-prometheus-integration-realdata
parent: watcher-sg-core-tempest-base parent: watcher-sg-core-tempest-base
vars: vars:
devstack_services:
ceilometer-acompute: true
node_exporter: true
devstack_localrc: devstack_localrc:
NODE_EXPORTER_COLLECTOR_EXCLUDE: "" NODE_EXPORTER_COLLECTOR_EXCLUDE: ""
devstack_local_conf: devstack_local_conf:
@@ -263,11 +278,15 @@
$TEMPEST_CONFIG: $TEMPEST_CONFIG:
optimize: optimize:
datasource: "" datasource: ""
real_workload_period: 300
# All tests inside watcher_tempest_plugin.tests.scenario with tag "real_load" # All tests inside watcher_tempest_plugin.tests.scenario with tag "real_load"
tempest_test_regex: (^watcher_tempest_plugin.tests.scenario)(.*\[.*\breal_load\b.*\].*) tempest_test_regex: (^watcher_tempest_plugin.tests.scenario)(.*\[.*\breal_load\b.*\].*)
tempest_exclude_regex: "" tempest_exclude_regex: ""
group-vars: group-vars:
subnode: subnode:
devstack_services:
ceilometer-acompute: true
node_exporter: true
devstack_localrc: devstack_localrc:
NODE_EXPORTER_COLLECTOR_EXCLUDE: "" NODE_EXPORTER_COLLECTOR_EXCLUDE: ""