From 517a731ebf790309a6e70d6dbd13b0676076b582 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 6 Feb 2015 02:03:08 +0100 Subject: [PATCH] Show unlimited number of metrics in autocomplete. --- web/static/js/graph.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/static/js/graph.js b/web/static/js/graph.js index 29d55c619..c4ae91d2f 100644 --- a/web/static/js/graph.js +++ b/web/static/js/graph.js @@ -160,7 +160,10 @@ Prometheus.Graph.prototype.populateInsertableMetrics = function() { self.insertMetric[0].options.add(new Option(json[i], json[i])); availableMetrics.push(json[i]); } - self.expr.typeahead({source: availableMetrics}); + self.expr.typeahead({ + source: availableMetrics, + items: "all" + }); // This needs to happen after attaching the typeahead plugin, as it // otherwise breaks the typeahead functionality. self.expr.focus();