 (defn hosts-timeseries
   "Get hosts timeseries data for last 24 hours"
   []
-  (let [nodes (->> (docker/nodes)
+  (let [nodes (->> (nodes-memo)
                    (group-by :ID))
         node-name #(or (-> (get nodes %) first :Description :Hostname) %)]
     (->> (-> (influx/read-host-stats)

  "Get latest cluster statistics"
  []
  (let [cached-hosts (vals @cache)
        active-hosts (active-hosts-memo)
        hosts (filter #(contains? active-hosts (:id %)) cached-hosts)
        sum-fn (fn [ks] (reduce + (map #(get-in % ks) hosts)))
        mean-fn (fn [ks] (/ (sum-fn ks) (count hosts)))]


(defn ready? []
  (not (and (empty? @cache)
            (empty? (active-hosts)))))

(defn store-to-cache
  "Store stats in local cache"
