Grafana alerts and monitoring

How do you set up grafana to monitor multiple data sources and send alerts when specific thresholds are reached? Plus, how to customize different alert conditions for various metrics. Also tell, what pitfalls did you face during the setup process?