From: Guillermo Calvino Date: Thu, 17 Nov 2022 10:54:31 +0000 (+0100) Subject: Bug 2192 fixed - MON charm to support the MON attribute vm_infra_metrics X-Git-Tag: release-v13.0-start~10 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F98%2F12698%2F2;p=osm%2Fdevops.git Bug 2192 fixed - MON charm to support the MON attribute vm_infra_metrics Change-Id: I0b87faf6433e2628ee4916a76a8f7e367c6456a1 Signed-off-by: Guillermo Calvino --- diff --git a/installers/charm/mon/config.yaml b/installers/charm/mon/config.yaml index 3d902865..04f52c0e 100644 --- a/installers/charm/mon/config.yaml +++ b/installers/charm/mon/config.yaml @@ -129,3 +129,7 @@ options: description: Enables the security context of the pods type: boolean default: false + vm_infra_metrics: + description: Enables querying the VIMs asking for the status of the VMs + type: boolean + default: true diff --git a/installers/charm/mon/src/charm.py b/installers/charm/mon/src/charm.py index d04779a0..db047c0b 100755 --- a/installers/charm/mon/src/charm.py +++ b/installers/charm/mon/src/charm.py @@ -80,6 +80,7 @@ class ConfigModel(ModelValidator): openstack_default_granularity: int global_request_timeout: int collector_interval: int + vm_infra_metrics: bool evaluator_interval: int grafana_url: str grafana_user: str @@ -267,6 +268,7 @@ class MonCharm(CharmedOsmBase): "OSMMON_GLOBAL_REQUEST_TIMEOUT": config.global_request_timeout, "OSMMON_GLOBAL_LOGLEVEL": config.log_level, "OSMMON_COLLECTOR_INTERVAL": config.collector_interval, + "OSMMON_COLLECTOR_VM_INFRA_METRICS": config.vm_infra_metrics, "OSMMON_EVALUATOR_INTERVAL": config.evaluator_interval, # Kafka configuration "OSMMON_MESSAGE_DRIVER": "kafka",