Can we create alerts using two different data source?

Hello,

I am trying to create combine alerts using two data sources (Prometheus and Loki). Could you please suggest any features or plugins to achieve the alerts?