Primary and secondary IP in static_configs targets for one machine

Good day gentlemen,

I have a foreign computer I already scrape with one primary ip address. On this computer, we use 2 distinct IP, visible depending on the internet status. It occurs the first address is down sometimes, so the second address is working. Is there any way to scrape the 2 addresses using some parameters in the yaml config file, something like:

  - job_name: 'postgres-exporter'
    scrape_interval: 30s
      - targets: ['primary_ip:9187', 'secondary_ip:29160',]
          job: 'postgres-exporter'...

Thanks in advance.