server

package
v0.0.0-...-be347a3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package server fetches metrics from ZooKeeper by using the srvr command

See the srvr command documentation at https://zookeeper.apache.org/doc/current/zookeeperAdmin.html

ZooKeeper srvr Command Output

  $ echo srvr | nc localhost 2181
	Zookeeper version: 3.4.13-2d71af4dbe22557fda74f9a9b4309b15a7487f03, built on 06/29/2018 04:05 GMT

Latency min/avg/max: 1/2/3 Received: 46 Sent: 45 Connections: 1 Outstanding: 0 Zxid: 0x700601132 Mode: standalone Node count: 4 Proposal sizes last/min/max: -3/-999/-1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(base mb.BaseMetricSet) (mb.MetricSet, error)

New creates new instance of MetricSet.

Types

type MetricSet

type MetricSet struct {
	mb.BaseMetricSet
}

MetricSet for fetching ZooKeeper health metrics.

func (*MetricSet) Fetch

func (m *MetricSet) Fetch(reporter mb.ReporterV2) error

Fetch fetches metrics from ZooKeeper by making a tcp connection to the command port and sending the "srvr" command and parsing the output.

Jump to

Keyboard shortcuts

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