load metrics os

getOs() is decorated with Nullable but there are no null checks here?