GitLab integration Prometheus

I have my Gitlab installed in Ec2 instance ubuntu and prometheus server and node_exporter in another ec2 instance ubuntu. I tried connecting to that prometheus server from gitlab but while testing connection it retrieves nothing. 302 status code is returned as response.