Git Product home page Git Product logo

dcmonitor's Introduction

DCMonitor

A simple, lightweight Data Center monitor, currently includes Zookeeper, Kafka, Druid(in progress). Motivated by KafkaOffsetMonitor, but faster and more stable.

It is written in java, and use Prometheus as historical metrics storage.

##License

The MIT License (MIT)

###Zookeeper monitor

###Kafka monitor

###Druid monitor

##Dependences

  • Run
  • Compile
    • maven
    • java(1.7 or later)

##Installation

  • Set up your Zookeeper, Kafka, Druid(If you have) for monitoring.

  • Set up Prometheus/.

    • Download a Prometheus release 0.16.0 from https://github.com/prometheus/prometheus/releases and set it up following http://prometheus.io/docs/introduction/getting_started/, you can stop before here if you don't want to go deep into prometheus. And don't worry, it is extremely easy.

    • Add a job to scrape DCMonitor's metrics, job config should looks like:

         - job_name: 'dcmonitor'
           scrape_interval: 5s
           scrape_timeout: 10s
           target_groups:
             - targets: ['localhost:8075']
      

      Here localhost:8075 is the DCMonitor's host:port which web service listen on (configured in application.properties). The completed example is here.

      After that go to http://<hostname>:9090/status, expected to see the dcmonitor endpoints in targets section. It is in UNHEALTHY state because we havn't set up DCMonitor web service yet!

  • Compile & deploy DCMonitor

    • Compile

       git clone [email protected]:shunfei/DCMonitor.git
       cd DCMonitor
       ./build.sh
      

      Then a target folder will be generated under root folder.

    • Deploy

      You only need to deploy target, run.sh, config to target machine.

      Modify configurations in config/config.json and application.properties.

      Run run.sh, will start the DCMonitor web service. If every thing is fine, visit http://<hostname>:8075 to enjoy!

dcmonitor's People

Contributors

flowbehappy avatar sundy-li avatar qleelulu 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.