Git Product home page Git Product logo

pulsar-monitor's Introduction

Operation Monitoring for Pulsar

This is a ops monitoring tool to

  • monitor Pulsar admin REST API endpoint
  • measure a single message latency from producing to consuming
  • ability to produce a list of messages with user specified payload size and the list size
  • measure average latency over a list of messages
  • report out of order delivery
  • measure a single message latency over the websocket interface
  • measure message latency generated by Pulsar function
  • monitor Pods and service availabitily in Pulsar Kubernetes cluster
  • monitor individual Pulsar broker's health
  • Pulsar function trigger over HTTP interface
  • incident alert with OpsGenie
  • tracking analytics and usage
  • dead man's snitch heartbeat monitor with OpsGenie
  • alert on Slack

This is a data driven tool. The configuraion is a yaml or json file. Here is a template. The configuration json file can be specified in the overwrite order of

  • an environment variable PULSAR_OPS_MONITOR_CFG
  • an command line argument ./pulsar-monitor -config /path/to/pulsar_ops_monitor_config.yml
  • A default path to ../config/runtime.yml

In-cluster monitoring

Pulsar monitor can be deployed within the same Pulsar Kubernetes cluster. Kubernetes' pod and service , and individual broker monitoring are only supported within the same Kubernetes cluster deployment.

Docker compose

./config/runtime.yml or ./config/runtime.json must have a Pulsar jwt and configured properly.

$ docker-compose up

Docker example

The runtime.json file must be mounted as /app/runtime.json

This runs a multi stage build that produces a 18MB docker image.

$ sudo docker build -t pulsar-monitor .

Run docker container with Pulsar CA certificate and expose Prometheus metrics for collection.

$ docker run -d -it -v $HOME/go/src/github.com/kafkaesque-io/pulsar-monitor/config/runtime.yml:/config/runtime.yml -v /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem:/etc/ssl/certs/ca-bundle.crt -p 8080:8080 --name=pulsar-monitor kesque/pulsar-monitor:1.1.1

If you are monitoring Pulsar cluster managed by Kesque, this is the command since we already include a certificate in the docker image.

$ docker run -d -it -v $HOME/go/src/github.com/kafkaesque-io/pulsar-monitor/config/runtime.yml:/config/runtime.yml -p 8080:8080 --name=pulsar-monitor kesque/pulsar-monitor:1.1.1

Prometheus

This program exposes a Prometheus \metrics endpoint to allow measured Pulsar latency to be collected by Prometheus.

Helm chart

Here is Pulsar Monitor's helm chart

Install helm

Helm 3

helm3 install pulsar-monitor kafkaesque/pulsar --namespace monitoring --values ./config/helm-values/pulsar-monitor-values.yaml

Helm2

helm install kafkaesque/pulsar --name pulsar-monitor --namespace monitoring --values ./config/helm-values/pulsar-monitor-values.yaml

Development

How to build

To create a binary under ./bin/pulsar-monitor, run this

$ ./scripts/ci.sh

pulsar-monitor's People

Contributors

zzzming 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.