-
Notifications
You must be signed in to change notification settings - Fork 100
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
mktxp: Broken Pipe Error #1
Comments
Hy, Broken pipe Error comes, when the client reset an established connection. So my first question, shows Grafana any metrics? You can test it with my just created docker container. :-) You can start the container guenterbailey/mktxp with docker run command or with docker-compose.yaml.
or in docker-compose.yml version: "3"
services:
mktxp:
restart: on-failure
image: guenterbailey/mktxp:latest
volumes:
- /volume1/mktxp/mktxp:/root/mktxp:rw
ports:
- "0.0.0.0:49090:49090"
networks:
- traefik-proxy
# command: mktxp export
networks:
traefik-proxy:
external: true |
thanks for this. Shiv |
OK - i just went ahead and pulled your docker container and ran it successfully. it seems to work well using curl. will confirm with grafana. |
good morning, the Internet Bandwith is measured with speedtest, and the measured value is wrong, if the mktxp exporter is hosted on a Remote Server. in prometheus.yaml static_configs:
- targets: [<first remote router>:49090, <second remote router>:49090] By Internet Latency, the Label b/s is wrong, this must renamed to ms (Latency is in milliseconds). and please, create a new issue, if it is not related on this issue. :-) |
Hi @outbackwifi, just checking on the current state -- sounds like you are able to get the raw mktxp endpoint metrics via curl but still do not see it in the grafana dashboard? Regarding the latter, can you pls try out the latest version from https://grafana.com/grafana/dashboards/13679 The above exception seems to be from the prometheus client_python library that is being used in mktxp. Let me know if you still experience it, so we can then check in the prometheus-users mailing list as is suggested here or here |
closing for now, @outbackwifi pls feel free to re-open if the issue still exists on your end |
OS: Ubuntu 20.04
Python: python3.8
Prometheus: running as a docker container
Grafana: 7.4.5
I am trying to setup a Mikrotik Router monitoring system with Prometheus+Grafana. I am able to get everything installed and using the cli to connect to remote router and get metrics with the mktxp print command works as expected.However, when i run the mktxp export command (either on CLI direct or through a systemd service) it throws up the following errors for every prometheus query:-
_Exception happened during processing of request from ('172.31.58.42', 46534)
Traceback (most recent call last):
File "/usr/lib/python3.8/socketserver.py", line 316, in _handle_request_nobloc k
self.process_request(request, client_address)
File "/usr/lib/python3.8/socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.8/socketserver.py", line 720, in init
self.handle()
File "/usr/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "/usr/local/lib/python3.8/dist-packages/prometheus_client/exposition.py", line 175, in do_GET
self.wfile.write(output)
File "/usr/lib/python3.8/socketserver.py", line 799, in write
self.sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe
would you be able to advise what is going wrong here?
The text was updated successfully, but these errors were encountered: