Code Monkey home page Code Monkey logo

kafkamirror's Introduction

KafkaMirror

Kafka monitoring tool

Routes

For additional detail on data returned from KafkaJS Admin API, refer to: KafkaJS Admin

GET

  • /api/schema not implemented
    • Fetches current schema from db
  • /api/topicList
    • Fetches list of topics from admin api
    • Data returned as an array of strings
  • /api/allTopicMetadata
    • Fetches metadata on all topics from admin api
    • Data returned as an object with property topics
    • TopicsMetaData Structure:
      {
        topics: Array<TopicMetadata>,
      }
  • TopicMetaData Structure:
      {
        topic: String,
        partitions: Array<PartitionMetadata>,
      }
  • PartitionMetaData Structure:
      {
        partitionErrorCode: Number,
        partitionId: Number,
        leader: Number,
        replicas: Array<Number>,
        isr: Array<Number>,
      }
  • /api/groupList
    • Fetches list of consumer groups from admin api
    • Data returned as an object with a property groups
      {
        groups: [
          {
            groupId: String,
            protocolType: String,
          },
        ],
      }
  • /api/describeGroups
    • Fetches metadata on all topics from admin api
    • Data returned as an object with a property groups
      {
        groups: Array<GroupData>,
      }
  • GroupData Structure
[
  {
    errorCode: Number,
    groupId: String,
    members: [
      {
        clientHost: String,
        clientId: String,
        memberAssignment: Buffer,
        memberId: String,
        memberMetadata: Buffer,
      },
    ],
    protocol: String,
    protocolType: String,
    state: String,
  },
];
  • /api/describeCluster
    • Fetches data on Kafka broker cluster
    • Data returned as an object with a property brokers, controller and ID
     {
      brokers:
      [
        {
          nodeId: Number,
          host: String,
          port: Number
        }
      ],
      controller: Number,
      clusterId: String,
      }

POST

  • /api/schema not implemented
    • posts current schema to db

Data Formats

Graph 1

const data = {
  brokers: [],
  clientId: String,
};

in kafka mirror access the kafka instance using admin get list of producers send to client

kafkamirror's People

Contributors

daebaari avatar joekinney-png avatar jonahlstewart avatar markmanuelmiller avatar rtobiwan avatar

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.