-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dial tcp 10.10.x.x:9090: connect: connection refused #8
Comments
@dineshspathak Can you please show the config.toml file? |
hi @mr-karan i kept it default for testing |
mii-lama | time=2023-06-19T13:18:38.390Z level=ERROR source=/home/runner/work/mii-lama/mii-lama/cmd/main.go:31 msg="failed to init metrics manager" component=mii-lama error="failed to query tsdb status page: Get "http://0.0.0.0:9090/api/v1/status/tsdb\": dial tcp 0.0.0.0:9090: connect: connection refused" |
hi @mr-karan i have not given any nse login credentials yet, but getting below, i think this should resolve once we enter nse login id, password, and member id mii-lama | time=2023-06-20T07:13:29.397Z level=ERROR source=/home/runner/work/mii-lama/mii-lama/cmd/main.go:51 msg="failed to init nse manager" component=mii-lama error="failed to login to NSE API: failed to send HTTP request: Post "https://lama.nse.internal/api/V1/auth/login\": dial tcp: lookup lama.nse.internal on 127.0.0.11:53: no such host" |
@dineshspathak The sample config is dummy credentials. The prod/UAT creds for LAMA API Gateway has to be added by you. |
The sample config sets it to |
Hi @mr-karan i am getting below result after inspecting the container network Where I can check the scrap targets? |
The scrape targets are defined here: https://github.com/zerodha/mii-lama/blob/main/prometheus.sample.yml#L9 Replace them with your own server targets wherever |
hi @mr-karan can you please help, how can I check targets as the Prometheus is running inside a container with virtual IP which is not accessible in my environment. |
Can you check |
Hi @mr-karan I am accessing the system via the terminal over the VPN, in this case, localhost will not work, can I check the same with my localip:9090? but for this also I need to change prometheus containers ip to my local server ip, kindly suggest. |
In that case, you should use the private/public IPv4:9090 of the system instead of the docker container. I won't be able to help much in debugging the exact situation as this depends on your networking setup. |
I am facing the same problem. unable to access. Below is the error message. mii-lama | time=2023-06-30T03:57:37.711Z level=ERROR source=/home/runner/work/mii-lama/mii-lama/cmd/app.go:51 msg="Failed to query Prometheus" component=mii-lama host=172.168.x.x:9100 metric=cpu error="response contains no result data" Same problem, virtual container ip is 172.18.0.2 which is not accessible from outside network. container is accessible from host machine. |
Please ensure that node-exporter is running on the host |
My both the node exporter is running. on browser I am getting data. My Prometheus container is also up and running. but still, I am getting same error. Is there any route we need to add in Prometheus container for host network? I am not sure on this.. I have tried from Prometheus container and got the response as mentioned below. lama@lama:~$ sudo docker exec -it prometheus /bin/sh 400 Bad RequestConnection closed by foreign host 400 Bad RequestConnection closed by foreign host |
Hi Thanks for the help, I have re-downloaded docker-compose.yml, and I am now getting a TCP connection refused, do I need to change any config?
time=2023-06-19T12:29:52.945Z level=ERROR source=/home/runner/work/mii-lama/mii-lama/cmd/main.go:31 msg="failed to init metrics manager" component=mii-lama error="failed to query tsdb status page: Get "[http://10.10.x.x:9090/api/v1/status/tsdb](http://10.10.x.x:9090/api/v1/status/tsdb%5C)": dial tcp 10.10.x.x:9090: connect: connection refused"
The text was updated successfully, but these errors were encountered: