Configuring threshold monitoring