enable metrics

This commit is contained in:
Hannes Mehnert 2019-09-19 21:08:30 +02:00
parent 8c2dc731de
commit 02a70f46ce

View file

@ -168,6 +168,7 @@ module M = struct
let push ?(interval = 10) ?hostname flow =
let get, reporter = R.store_reporter C.elapsed_ns () in
Metrics.set_reporter reporter;
Metrics.enable_all ();
let host = match hostname with None -> [] | Some host -> [vmname host] in
Lwt.async (timer_loop get host interval { flows = [ flow ] })
end