Remove prefix 'dim_' from dimensions in Drilldown Dashboard

Change-Id: Idc5a93ebcdbe3bae622fa70c1e900533bf4a7c1c
This commit is contained in:
Martin Chacon Piza 2021-03-23 21:23:42 +01:00
parent 36cc4be740
commit e90fb181f5

View File

@ -166,7 +166,7 @@ class GraphMetric(tables.LinkAction):
dimensions = datum['metrics'][0].get('dimensions', {})
query = "?metric=%s" % metric
for key, value in dimensions.items():
query += "&dim_%s=%s" % (key, value)
query += "&%s=%s" % (key, value)
except AttributeError:
# Catches case where Grafana 2 is not enabled.
name = datum['metrics'][0]['name']