pub fn create_monitor<W: Write>(config: Config, writer: W) -> Result<Monitor<W>>
Create a new monitor instance with the given configuration.