kguard

command
v0.0.0-...-077b43f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

README

kguard

Kafka clusters body guard that emits health info to InfluxDB.

Architecture
                   👥 ✉  here I am
                    |              
    +------------------------+------------------------------------------------+
    | alert                  | dashboard                                alert |
    | (aggregated)           | Grafana                            (threshold) |
    |               +-----------------+                                       |
    |               |                 |                                       |
+--------+     +----------+      +----------+    +---------+               +--------+
| zabbix |     | InfluxDB |      | OpenTSDB |    | TSDB... |               | zabbix |- OS level monitor
+--------+     +----------+      +----------+    +---------+               +--------+
    |            |                   |                  |                     |
    |            +--------------------------------------+                 zabbix agents
    |                      ^
    | periodically         |
    | call                 | flush
    | RESTful              |
    |                 +-----------+
    |                 | telemetry |
    |                 +-----------+                                        
    |                      | collect                                       +- external scripts
    |                      V                                               |- kguard floating
    |     +-------------------+                                            |- ehaproxy
    |     | in-memory metrics |                                            |- actord
    |     +-------------------+                                            |- swf
    |       ^               ^                                              |- F5 latency
    |       | read          | write                                        |- zone wide servers
    |       |            +----------------------+                          |- influx query
    V       |            |                      |                          |- influxdb server
+-------------+   +--------------+   +----------------------------+ plugin |- kateway/pubsub
| HTTP server |   | SOS receiver |   | Watchers/MonitorAggregator |--------|- kafka
+-------------+   +--------------+   +----------------------------+        |- zookeeper 
    |                    |                      |                          +- ...
    +-------------------------------------------+
                         | contains
                 +---------------+          +---------------------+     +---------------------+
                 | kguard leader |          | kguard hot standby1 |     | kguard hot standby2 | 
                 +---------------+          +---------------------+     +---------------------+
                         |                          |                       |
                         +--------------------------------------------------+
                                              | election
                                      +--------------------+
                                      | zookeeper ensemble |
                                      +--------------------+
Usage

PUB=pub.my.com SUB=sub.my.com APPLOG_CLUSTER=hippo APPLOG_TOPIC=apptopic MYAPP=myid HISAPP=hisid APPKEY=31002594f5zbc3eeb1efcf75db6dd8a0 nohup ./sbin/kguard -db xxx -z test -log kguard.log -influxAddr http://1.1.1.1:8086 &

key probes
  • zk.dead
  • redis.dead
  • partitions.dead
  • kateway.live
  • influxdb.alive
  • haproxy.instances
  • brokers.dead
  • actord.actors

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package sos is a web server that accepts SOS message from any gafka components.
Package sos is a web server that accepts SOS message from any gafka components.
watchers
gc
zk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL