Error: Error reading Prometheus: Post "http://Prometheus:9090/api/v1/query": dial tcp: lookup Prometheus: no such host

while adding datasouce getting below mentioned error, please do need full.

Error reading Prometheus: Post “http://Prometheus:9090/api/v1/query”: dial tcp: lookup Prometheus: no such host

“Prometheus: no such host”.

Thay’s a pretty clear error message, I think.

You have no machine which your Grafana server can find by the name of
“Prometheus”.

That means it isn’t on your local DNS server, and it isn’t in the Grafana
machine’s /etc/hosts file.

Trying using its IP address instead?

Antony.

thank you for responses. After adding server details getting different error

Error reading Prometheus: Post “http://10.128.0.7:9090/api/v1/query”: dial tcp 10.128.0.7:9090: i/o timeout

You have to give http://localhost:9090 in URL and test it. It will Work.