Merge pull request #3928 from influxdata/bugfix/host-switcher
Supply database to request for hostspull/10616/head
commit
c4d7e82881
|
@ -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'], [])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue