Dial tcp connect: connection refused

i have got this message when i set prometheus server url

Post “”: dial tcp connect: connection refused - There was an error returned querying the Prometheus API.

please help me to solve this.

type ifconfig on your system to get the local ip address and use that instead of localhost

This seems to be a configuration issue. Please check if you need to enable firewall OR use localhost instead of IP address (maybe best is to update your /etc/hosts file)