kadalu / gluster-metrics-exporter

Lightweight and efficient Prometheus exporter for Gluster metrics
GNU General Public License v3.0
24 stars 7 forks source link

No Data from gluster-metrics-exporter #33

Open gr-ex-azd opened 2 years ago

gr-ex-azd commented 2 years ago

we get no data from gluster-metrics-exporter - in the logfile are the following exceotions:

2022-08-15T07:52:37.699922Z INFO - GET /_api/local-metrics -- status_code: "200", duration: "405.87ms" 2022-08-15T07:52:37.704681Z INFO - Exception: Error while flushing data to the client (HTTP::Server::ClientError) from usr/share/crystal/src/http/server/response.cr:296:9 in 'unbuffered_flush' from usr/share/crystal/src/io/buffered.cr:241:5 in 'write' from usr/share/crystal/src/char.cr:891:7 in 'generate_text_format' from w/gluster-metrics-exporter/gluster-metrics-exporter/lib/crometheus/src/crometheus/registry.cr:156:9 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from w/gluster-metrics-exporter/gluster-metrics-exporter/lib/kemal/src/kemal/static_file_handler.cr:65:13 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from w/gluster-metrics-exporter/gluster-metrics-exporter/lib/kemal/src/kemal/init_handler.cr:12:7 in 'process' from usr/share/crystal/src/http/server.cr:500:5 in '->' from usr/share/crystal/src/fiber.cr:146:11 in 'run' from ??? Caused by: Error writing to socket: Broken pipe (IO::Error) from usr/share/crystal/src/io/evented.cr:156:7 in 'unbuffered_write' from usr/share/crystal/src/io/buffered.cr:239:5 in 'unbuffered_flush' from usr/share/crystal/src/io/buffered.cr:241:5 in 'write' from usr/share/crystal/src/char.cr:891:7 in 'generate_text_format' from w/gluster-metrics-exporter/gluster-metrics-exporter/lib/crometheus/src/crometheus/registry.cr:156:9 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from w/gluster-metrics-exporter/gluster-metrics-exporter/lib/kemal/src/kemal/static_file_handler.cr:65:13 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from w/gluster-metrics-exporter/gluster-metrics-exporter/lib/kemal/src/kemal/init_handler.cr:12:7 in 'process' from usr/share/crystal/src/http/server.cr:500:5 in '->' from usr/share/crystal/src/fiber.cr:146:11 in 'run' from ??? 2022-08-15T07:52:37.704719Z ERROR - http.server: Unhandled exception on HTTP::Handler Closed stream (IO::Error) from w/gluster-metrics-exporter/gluster-metrics-exporter/lib/kemal/src/kemal/exception_handler.cr:17:7 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call' from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from w/gluster-metrics-exporter/gluster-metrics-exporter/lib/kemal/src/kemal/init_handler.cr:12:7 in 'process' from usr/share/crystal/src/http/server.cr:500:5 in '->' from usr/share/crystal/src/fiber.cr:146:11 in 'run' from ???

we use version: 0.2.4

any ideas?

frenkye commented 2 years ago

@gr-ex-azd I had to open firewall connection. The key was subnet for peers and port for your exporters. When REJECT was is place, the exporter hangs.