The document Pranay linked shows how to scrape from an application service, not another Prometheus server. The config file is still the same, but you must use the federation configuration.
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.