From ff39c35e37f3b96f92bf5a4ab68848131a55be96 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Mon, 16 Jul 2018 12:11:30 -0700 Subject: [PATCH] Supply database to request for hosts --- ui/src/hosts/apis/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/hosts/apis/index.js b/ui/src/hosts/apis/index.js index 41cf25b8b8..f60cf48915 100644 --- a/ui/src/hosts/apis/index.js +++ b/ui/src/hosts/apis/index.js @@ -101,7 +101,7 @@ export const getCpuAndLoadForHosts = ( async function getAllHosts(source) { const { - telegrafDB, + telegraf, links: {proxy: proxyLink}, } = source @@ -109,8 +109,9 @@ async function getAllHosts(source) { const resp = await proxy({ source: proxyLink, query: 'show tag values with key = "host"', - db: telegrafDB, + db: telegraf, }) + const hosts = {} const allHostsSeries = _.get(resp, ['data', 'results', '0', 'series'], [])