Skip to content

Commit

Permalink
Adding tribe node support
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Jan 2, 2017
1 parent 2fb42d0 commit 63a736a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core_plugins/metrics/server/lib/calculate_indices.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import moment from 'moment';

export default (req, indexPattern = '*', timeField = '@timestamp') => {
const { server } = req;
const { callWithRequest } = server.plugins.elasticsearch;
const { callWithRequest } = server.plugins.elasticsearch.getCluster('data');
const config = server.config();
const from = moment.utc(req.payload.timerange.min);
const to = moment.utc(req.payload.timerange.max);
Expand Down
2 changes: 1 addition & 1 deletion src/core_plugins/metrics/server/lib/get_fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from 'lodash';
export default (req) => {
const { server } = req;
const config = server.config();
const { callWithRequest } = server.plugins.elasticsearch;
const { callWithRequest } = server.plugins.elasticsearch.getCluster('data');
const index = req.query.index || '*';

return () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core_plugins/metrics/server/lib/get_vis_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function withoutSiblingBuckets(row) {

export default (req) => {
const { server } = req;
const { callWithRequest } = server.plugins.elasticsearch;
const { callWithRequest } = server.plugins.elasticsearch.getCluster('data');
const config = server.config();
const globalFilter = req.payload.global_filter;
const from = moment.utc(req.payload.timerange.min);
Expand Down

0 comments on commit 63a736a

Please sign in to comment.