adds configurable monitoring for swap and mem