Push vs. Pull Configs for Monitoring

How do monitoring agents know what & how to monitor?