Giter Club home page Giter Club logo

kafka-connect-healthcheck's People

Contributors

artem-mindrov avatar devshawn avatar jmaroeder avatar samrees avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kafka-connect-healthcheck's Issues

Add ability to monitor specific connectors

Currently, it monitors all connectors/tasks for a given worker, or if no worker is given, all connectors.

It'd be nice to allow a list of connectors to monitor to be passed in.

Does not detect when consumer poll timeout has expired

When a pod has trouble connecting to the kafka server due to "consumer poll timeout has expired", kakfa-connect-healthcheck continues to report a "live" status.

2020-08-13 17:32:45,750 INFO   ||  [Worker clientId=connect-1, groupId=1] Member connect-1-85bcb553-57c6-4e0b-8131-234973432ed5 sending LeaveGroup request to coordinator REDACTED (id: 2147483644 rack: null) due to consumer poll timeout has expired. This means the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time processing messages. You can address this either by increasing max.poll.interval.ms or by reducing the maximum size of batches returned in poll() with max.poll.records.   [org.apache.kafka.clients.consumer.internals.AbstractCoordinator]

It appears that this is due to the HTTP server not reporting any errors when hitting the /status endpoints for all of the connectors, and the worker not being assigned to any connectors.

However, hitting a "details" endpoint for a connector will lead to an HTTP 500: timeout error.

One way to address this issue would be to attempt to fetch the details for at least one connector (which seems to fail in the above situation). I will open a PR that implements this

Error querying localhost:18083

  • Pull down docker image
  • Run a container docker run -d --rm -it -p 18083:18083 devshawn/kafka-connect-healthcheck
  • curl localhost:18083 throws out error

{"healthy": false, "message": "Exception raised while attempting to calculate health result, assuming unhealthy.", "error": "HTTPConnectionPool(host='localhost', port=8083): Max retries exceeded with url: /connectors (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f685e6b8950>: Failed to establish a new connection: [Errno 111] Connection refused'))", "failure_states": ["FAILED"]}

Note: I can directly query status of connectors from port 8083

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.