diff --git a/monitoring/alarms/tables.py b/monitoring/alarms/tables.py index 21c700db..1c7caca1 100644 --- a/monitoring/alarms/tables.py +++ b/monitoring/alarms/tables.py @@ -163,8 +163,7 @@ class GraphMetric(tables.LinkAction): endpoint = str(reverse_lazy(ov_constants.URL_PREFIX + 'proxy')) endpoint = self.table.request.build_absolute_uri(endpoint) self.attrs['target'] = '_blank' - url = (settings.STATIC_URL or '') + \ - 'grafana/index.html#/dashboard/script/detail.js' + url = '/grafana/index.html#/dashboard/script/detail.js' query = "?name=%s&threshold=%s&api=%s" % \ (name, threshold, endpoint) return url + query diff --git a/monitoring/test/alarm_tables.py b/monitoring/test/alarm_tables.py index 791cdd17..8c076e34 100644 --- a/monitoring/test/alarm_tables.py +++ b/monitoring/test/alarm_tables.py @@ -41,7 +41,7 @@ class GraphMetricLinkActionTests(TestCase): self.assertEqual( link_url, - r'/static/grafana/index.html#/dashboard/script/detail.js?' + r'/grafana/index.html#/dashboard/script/detail.js?' r'name=metric1' r'&threshold=[{"name": "metric1"}, {"name": "metric \u2461"}]' r'&api=http://foo/api/'