Filter which instances an alert is for


I have Grafana cloud and installed the postgres integration which comes with some alerts pre-installed. One of the alerts is a “Is postgres down” alert. But now this alert is firing on all my servers that do not have postgres installed. What is the correct way to filter an alert to only look at the servers that actually have postgres installed?