Hmm, let me ask a general question: while this is impressive, can we not use the autocomplete functionality from jquery-ui, which Prometheus is also using?

https://github.com/prometheus/prometheus/blob/master/web/static/js/graph.js#L160

or this one, which is specifically for Bootstrap&Angular:

http://angular-ui.github.io/bootstrap/#/typeahead