From 35fb5378bc16aa9630ff0ef11e6bd74467916249 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Thu, 2 Oct 2014 15:44:47 +0100 Subject: [PATCH] Add back consoles link. Goes in index.html in consoles or else user data, if present. Change-Id: I5303d30aa24ca0c20d2e0f49121e04a260b9c4f4 --- rules/ast/functions.go | 2 +- web/templates/_base.html | 4 ++++ web/web.go | 15 ++++++++++++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/rules/ast/functions.go b/rules/ast/functions.go index ccfe3e271..ab0cce47c 100644 --- a/rules/ast/functions.go +++ b/rules/ast/functions.go @@ -275,7 +275,7 @@ func dropCommonLabelsImpl(timestamp clientmodel.Timestamp, view *viewAdapter, ar } for _, el := range vector { - for k, _ := range el.Metric { + for k := range el.Metric { if _, ok := common[k]; ok { delete(el.Metric, k) } diff --git a/web/templates/_base.html b/web/templates/_base.html index 764c51a5f..a0f642256 100644 --- a/web/templates/_base.html +++ b/web/templates/_base.html @@ -17,6 +17,10 @@
Prometheus