[WIP] Add support for host and job metric collection

Work in progress. Currently functional, but still needs some testing.