diff --git a/docker-compose/tango-prometheus-exporter/code/tango-prometheus-client.py b/docker-compose/tango-prometheus-exporter/code/tango-prometheus-client.py
index 28a8404154aa1f2e64375de7696253ab789db7cc..f7dc1e5e77d60e4507de5f148a32d2eeba7f1f0f 100644
--- a/docker-compose/tango-prometheus-exporter/code/tango-prometheus-client.py
+++ b/docker-compose/tango-prometheus-exporter/code/tango-prometheus-client.py
@@ -83,7 +83,7 @@ class CustomCollector(object):
         elif attr_info.data_type == ArgType.DevString:
             data_type = 'string'
             str_value = str(value)
-            float_value = 1
+            float_value = len(str_value)
         elif attr_info.data_type == ArgType.DevEnum:
             attr_config = dev.get_attribute_config(attr_info.name)
             data_type = 'enum'
@@ -124,7 +124,7 @@ class CustomCollector(object):
                 """ NOTE: We switch x and y in the annotation, to allow queries to combine 1D and 2D arrays in their first dimension using the same label (x). We effectively expose
                           the array as [x][y] instead of [y][x]. """
 
-                new_metric = self._to_metric(dev, attr_info, x, y, attr_value.value[y][x])
+                new_metric = self._to_metric(dev, attr_info, y, x, attr_value.value[y][x])
                 metrics.append(new_metric) if new_metric else None
 
         return metrics