How to address active passive service check from grafana agent

There is a case where servers are acitve and passive. For example haproxy is configured as acitve and passive on both servers which is managed by pacemaker. In grafana-agent.yaml file consisting of haproxy as service to check is in place on both servers. Since its active and passive, haproxy will not be running on second server which is expected but it will alert in dashboard that haproxy is not running on second server. If we try to remove it manually on server from grafana-agent file then it will not help when we do failover. How to address such kind of cases ?