Remove prefix 'dim_' from dimensions in Drilldown Dashboard
Change-Id: Idc5a93ebcdbe3bae622fa70c1e900533bf4a7c1c
This commit is contained in:
parent
36cc4be740
commit
e90fb181f5
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user