Skip to content
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

Can't get metrics from docker container #186

Open
LuckyBirds opened this issue Sep 23, 2020 · 1 comment
Open

Can't get metrics from docker container #186

LuckyBirds opened this issue Sep 23, 2020 · 1 comment

Comments

@LuckyBirds
Copy link

I got errors when trying to start contrainer with gluster-primetheus in same host where glusterf runing:

time="2020-09-23 09:23:43.630151" level=debug msg="failed to export metric" error="exec: "ps": executable file not found in $PATH" name=gluster_ps
time="2020-09-23 09:23:43.630135" level=debug msg="failed to export metric" error="open /var/lib/glusterd/uuid.toml: no such file or directory" name=gluster_peer_info
time="2020-09-23 09:23:43.630367" level=debug msg="sending request" headers=" Accept:application/json Content-Type:application/json " method=GET url="http://172.17.0.1:24007/v1/volumes"
time="2020-09-23 09:23:43.630770" level=debug msg="\n> GET /v1/volumes HTTP/1.1\r\n> Host: 172.17.0.1:24007\r\n> User-Agent: Go-http-client/1.1\r\n> Connection: close\r\n> Accept: application/json\r\n> Content-Type: application/json\r\n> Accept-Encoding: gzip\r\n> \r\n"
time="2020-09-23 09:23:43.631262" level=debug msg="failed to connect to gd2 server" error="read tcp 172.17.0.2:36034->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.631306" level=debug msg="failed to export metric" error="Get http://172.17.0.1:24007/v1/volumes: read tcp 172.17.0.2:36034->172.17.0.1:24007: read: connection reset by peer" name=gluster_brick
time="2020-09-23 09:23:43.631431" level=debug msg="sending request" headers=" Accept:application/json Content-Type:application/json " method=GET url="http://172.17.0.1:24007/v1/peers"
time="2020-09-23 09:23:43.631525" level=debug msg="\n> GET /v1/peers HTTP/1.1\r\n> Host: 172.17.0.1:24007\r\n> User-Agent: Go-http-client/1.1\r\n> Connection: close\r\n> Accept: application/json\r\n> Content-Type: application/json\r\n> Accept-Encoding: gzip\r\n> \r\n"
time="2020-09-23 09:23:43.631804" level=debug msg="failed to connect to gd2 server" error="read tcp 172.17.0.2:36036->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.631858" level=debug msg="Unable to find if the current node is leader" error="Get http://172.17.0.1:24007/v1/peers: read tcp 172.17.0.2:36036->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.631887" level=debug msg="failed to export metric" error="Get http://172.17.0.1:24007/v1/peers: read tcp 172.17.0.2:36036->172.17.0.1:24007: read: connection reset by peer" name=gluster_volume_heal
time="2020-09-23 09:23:43.631985" level=debug msg="sending request" headers=" Accept:application/json Content-Type:application/json " method=GET url="http://172.17.0.1:24007/v1/peers"
time="2020-09-23 09:23:43.632223" level=debug msg="\n> GET /v1/peers HTTP/1.1\r\n> Host: 172.17.0.1:24007\r\n> User-Agent: Go-http-client/1.1\r\n> Connection: close\r\n> Accept: application/json\r\n> Content-Type: application/json\r\n> Accept-Encoding: gzip\r\n> \r\n"
time="2020-09-23 09:23:43.632672" level=debug msg="failed to connect to gd2 server" error="read tcp 172.17.0.2:36038->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.632704" level=debug msg="Unable to find if the current node is leader" error="Get http://172.17.0.1:24007/v1/peers: read tcp 172.17.0.2:36038->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.632716" level=debug msg="failed to export metric" error="Get http://172.17.0.1:24007/v1/peers: read tcp 172.17.0.2:36038->172.17.0.1:24007: read: connection reset by peer" name=gluster_volume_profile
time="2020-09-23 09:23:43.632760" level=debug msg="sending request" headers=" Accept:application/json Content-Type:application/json " method=GET url="http://172.17.0.1:24007/v1/peers"
time="2020-09-23 09:23:43.632849" level=debug msg="\n> GET /v1/peers HTTP/1.1\r\n> Host: 172.17.0.1:24007\r\n> User-Agent: Go-http-client/1.1\r\n> Connection: close\r\n> Accept: application/json\r\n> Content-Type: application/json\r\n> Accept-Encoding: gzip\r\n> \r\n"
time="2020-09-23 09:23:43.633090" level=debug msg="failed to connect to gd2 server" error="read tcp 172.17.0.2:36040->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.633118" level=debug msg="Unable to find if the current node is leader" error="Get http://172.17.0.1:24007/v1/peers: read tcp 172.17.0.2:36040->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.633133" level=debug msg="failed to export metric" error="Get http://172.17.0.1:24007/v1/peers: read tcp 172.17.0.2:36040->172.17.0.1:24007: read: connection reset by peer" name=gluster_brick_status
time="2020-09-23 09:23:43.633149" level=debug msg="failed to export metric" error="open /var/lib/glusterd/uuid.toml: no such file or directory" name=gluster_peer_counts
time="2020-09-23 09:23:43.633168" level=debug msg="failed to export metric" error="open /var/lib/glusterd/uuid.toml: no such file or directory" name=gluster_volume_status
time="2020-09-23 09:23:43.633216" level=debug msg="sending request" headers=" Accept:application/json Content-Type:application/json " method=GET url="http://172.17.0.1:24007/v1/peers"
time="2020-09-23 09:23:43.633282" level=debug msg="\n> GET /v1/peers HTTP/1.1\r\n> Host: 172.17.0.1:24007\r\n> User-Agent: Go-http-client/1.1\r\n> Connection: close\r\n> Accept: application/json\r\n> Content-Type: application/json\r\n> Accept-Encoding: gzip\r\n> \r\n"
time="2020-09-23 09:23:43.633623" level=debug msg="failed to connect to gd2 server" error="read tcp 172.17.0.2:36042->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.633644" level=debug msg="Unable to find if the current node is leader" error="Get http://172.17.0.1:24007/v1/peers: read tcp 172.17.0.2:36042->172.17.0.1:24007: read: connection reset by peer"
time="2020-09-23 09:23:43.633655" level=debug msg="failed to export metric" error="Get http://172.17.0.1:24007/v1/peers: read tcp 172.17.0.2:36042->172.17.0.1:24007: read: connection reset by peer" name=gluster_volume_counts

@B-Betty
Copy link

B-Betty commented Oct 17, 2022

i have the same problem, how to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants