项目作者: kuzzleio

项目描述 :
Kuzzle statistical probe listener plugin
高级语言: JavaScript
项目地址: git://github.com/kuzzleio/kuzzle-plugin-probe-listener.git
创建时间: 2017-05-19T09:12:39Z
项目社区:https://github.com/kuzzleio/kuzzle-plugin-probe-listener

开源协议:Apache License 2.0

下载


Table of Contents

About

Plugin allowing to add probes, collecting data and events to calculate data metrics and send them to KDC (Kuzzle Data Collector). This plugin must be used in conjonction with a KDC instance where the plugin kuzzle-plugin-probe is installed. Refer to the kuzzle-plugin-probe documentation for more information.

Plugin configuration

Installation

Place the plugin directory under plugins/available, then create a symbolic link pointing to it under plugins/enabled.

General configuration

After a fresh installation, the plugin configuration looks like this:

  1. {
  2. "kdcAddress": "kdc-proxy",
  3. "probes": {}
  4. }

Probes description

monitor probes

Description

Please refer to the documentation of the plugin-plugin-probe for more information about the monitor probe.

Configuration

Probe configuration example:

  1. {
  2. "probes": {
  3. "probe_monitor_1": {
  4. "type": "monitor",
  5. "hooks": ["some:event", "some:otherevent", "andyet:anotherone"]
  6. }
  7. }
  8. }

counter probes

Description

Please refer to the documentation of the plugin-plugin-probe for more information about the counter probe.

Configuration

Probe configuration example:

  1. {
  2. "probes": {
  3. "probe_counter_1": {
  4. "type": "counter",
  5. "increasers": ["list:of", "counterIncreasing:events"],
  6. "decreasers": ["anotherlist:of", "counterDecreasing:events"]
  7. }
  8. }
  9. }

watcher probes

Description

Please refer to the documentation of the plugin-plugin-probe for more information about the watcher probe.

Configuration

Probe configuration example:

  1. {
  2. "probes": {
  3. "probe_watcher_1": {
  4. "type": "watcher",
  5. "index": "some index",
  6. "collection": "some collection"
  7. }
  8. }
  9. }

sampler probes

Description

Please refer to the documentation of the plugin-plugin-probe for more information about the sampler probe.

Configuration

Probe configuration example:

  1. {
  2. "probes": {
  3. "probe_sampler": {
  4. "type": "sampler",
  5. "index": "some index",
  6. "collection": "some collection"
  7. }
  8. }
  9. }