Minor fixes in fuel plugin
[yardstick.git] / yardstick / dispatcher / influxdb.py
index f61912d..a9825fa 100644 (file)
@@ -65,8 +65,9 @@ class InfluxdbDispatcher(DispatchBase):
         self.task_id = -1
         self.runners_info = {}
         self.static_tags = {
-            "pod_name": os.environ.get('POD_NAME', 'unknown'),
+            "pod_name": os.environ.get('NODE_NAME', 'unknown'),
             "installer": os.environ.get('INSTALLER_TYPE', 'unknown'),
+            "deploy_scenario": os.environ.get('DEPLOY_SCENARIO', 'unknown'),
             "version": os.environ.get('YARDSTICK_VERSION', 'unknown')
         }
 
@@ -159,6 +160,8 @@ class InfluxdbDispatcher(DispatchBase):
             if res.status_code != 204:
                 LOG.error('Test result posting finished with status code'
                           ' %d.' % res.status_code)
+                LOG.error(res.text)
+
         except Exception as err:
             LOG.exception('Failed to record result data: %s',
                           err)