Increase verbosity in logs during metric backend retrieval 25/14625/1 master
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 19 Sep 2024 11:19:41 +0000 (13:19 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 3 Oct 2024 22:09:16 +0000 (00:09 +0200)
Change-Id: I977fadf13f08a94dc424b4ec70dc30b6afaf5b87
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
src/osm_ngsa/osm_mon/vim_connectors/openstack.py

index 61f3c49..0dd8247 100644 (file)
@@ -139,16 +139,16 @@ class OpenStackCollector(VIMConnector):
         services = {service.name: service.type for service in service_catalog}
         log.info(f"Openstack services: {services}")
         if "prometheus" in services:
-            log.debug("Using Prometheus backend")
+            log.info("Using Prometheus backend")
             return "prometheus"
         elif "gnocchi" in services:
-            log.debug("Using Gnocchi backend")
+            log.info("Using Gnocchi backend")
             return "gnocchi"
         elif "ceilometer" in services:
-            log.debug("Using Ceilometer backend")
+            log.info("Using Ceilometer backend")
             return "ceilometer"
         else:
-            log.debug("No suitable backend found")
+            log.info("No suitable backend found")
             return None
 
     def _get_backend(self, vim_account: dict, vim_session: object):
@@ -156,7 +156,7 @@ class OpenStackCollector(VIMConnector):
         log.info(f"openstack_metrics_backend: {openstack_metrics_backend}")
 
         # Priority 1. If prometheus-config, use Prometheus backend
-        log.debug(f"vim_account: {vim_account}")
+        log.info(f"vim_account: {vim_account}")
         if vim_account.get("prometheus-config"):
             try:
                 tsbd = PrometheusTSBDBackend(vim_account)
@@ -171,7 +171,7 @@ class OpenStackCollector(VIMConnector):
 
         # Priority 2. If the VIM is VIO and there is VROPS, use VROPS backend
         vim_type = vim_config.get("vim_type", "").lower()
-        log.debug(f"vim_type: {vim_type}")
+        log.info(f"vim_type: {vim_type}")
         if vim_type == "vio" and "vrops_site" in vim_config:
             try:
                 log.info("Using vROPS backend to collect metric")