diff --git a/config.js b/config.js index c929bee614e..1cdc0f6f51c 100644 --- a/config.js +++ b/config.js @@ -14,7 +14,7 @@ var config = new Settings( { elasticsearch: 'http://localhost:9200', kibana_index: "kibana-int", - modules: ['histogram','map','pie','table','stringquery','sort', + modules: ['histogram','map','map2','pie','table','stringquery','sort', 'timepicker','text','fields','hits','dashcontrol', 'column'], } diff --git a/panels/map2/editor.html b/panels/map2/editor.html new file mode 100644 index 00000000000..a755e4fed9b --- /dev/null +++ b/panels/map2/editor.html @@ -0,0 +1,43 @@ +
Static tab content A
Static tab content B
=a.length)return n;var r=[],u=o[e++];return n.forEach(function(n,u){r.push({key:n,values:t(u,e)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var e,r,i={},a=[],o=[];return i.map=function(t,e){return n(e,t,0)},i.entries=function(e){return t(n(oa.map,e,0),0)},i.key=function(n){return a.push(n),i},i.sortKeys=function(n){return o[a.length-1]=n,i},i.sortValues=function(n){return e=n,i},i.rollup=function(n){return r=n,i},i},oa.set=function(n){var t=new i;if(n)for(var e=0;e =0?n.substring(0,t):n,r=t>=0?n.substring(t+1):"in";return e=Yo.get(e)||Oo,r=Uo.get(r)||ft,Mr(r(e.apply(null,Array.prototype.slice.call(arguments,1))))},oa.interpolateHcl=zr,oa.interpolateHsl=Dr,oa.interpolateLab=jr,oa.interpolateRound=Lr,oa.layout={},oa.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++eLast Elasticsearch Query
"+
+ 'curl -XGET '+config.elasticsearch+'/'+$scope.panel.index+"/_search?pretty -d'\n"+
+ angular.toJson(JSON.parse(request.toString()),true)+
+ "'
",
+ }
+ }
+
+ function set_time(time) {
+ $scope.time = time;
+ $scope.panel.index = _.isUndefined(time.index) ? $scope.panel.index : time.index
+ $scope.get_data();
+ }
+
+ $scope.build_search = function(field,value) {
+ $scope.panel.query = add_to_query($scope.panel.query,field,value,false)
+ $scope.get_data();
+ eventBus.broadcast($scope.$id,$scope.panel.group,'query',$scope.panel.query);
+ }
+
+})
+.directive('map2', function() {
+ return {
+ restrict: 'A',
+ link: function(scope, elem, attrs) {
+
+ elem.html('