Merge pull request #3928 from influxdata/bugfix/host-switcher

Supply database to request for hosts
pull/10616/head
Andrew Watkins 2018-07-16 13:37:39 -07:00 committed by GitHub
commit c4d7e82881
1 changed files with 3 additions and 2 deletions

View File

@ -101,7 +101,7 @@ export const getCpuAndLoadForHosts = (
async function getAllHosts(source) { async function getAllHosts(source) {
const { const {
telegrafDB, telegraf,
links: {proxy: proxyLink}, links: {proxy: proxyLink},
} = source } = source
@ -109,8 +109,9 @@ async function getAllHosts(source) {
const resp = await proxy({ const resp = await proxy({
source: proxyLink, source: proxyLink,
query: 'show tag values with key = "host"', query: 'show tag values with key = "host"',
db: telegrafDB, db: telegraf,
}) })
const hosts = {} const hosts = {}
const allHostsSeries = _.get(resp, ['data', 'results', '0', 'series'], []) const allHostsSeries = _.get(resp, ['data', 'results', '0', 'series'], [])