zookeeper

package
v5.6.14+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 7 Imported by: 460

Documentation

Overview

Package zookeeper is a Metricbeat module for ZooKeeper servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetZookeeperEnvHost

func GetZookeeperEnvHost() string

GetZookeeperEnvHost returns the hostname of the ZooKeeper server to use for testing. It reads the value from the ZOOKEEPER_HOST environment variable and returns localhost if it is not set.

func GetZookeeperEnvPort

func GetZookeeperEnvPort() string

GetZookeeperEnvPort returns the port of the ZooKeeper server to use for testing. It reads the value from the ZOOKEEPER_PORT environment variable and returns 2181 if it is not set.

func RunCommand

func RunCommand(command, address string, timeout time.Duration) (io.Reader, error)

RunCommand establishes a TCP connection the ZooKeeper command port that accepts the four-letter ZooKeeper commands and sends the given command. It reads all response data received on the socket and returns an io.Reader containing that data.

Types

This section is empty.

Directories

Path Synopsis
Package mntr fetches metrics from ZooKeeper by using the mntr command which was added to ZooKeeper in version 3.4.0.
Package mntr fetches metrics from ZooKeeper by using the mntr command which was added to ZooKeeper in version 3.4.0.

Jump to

Keyboard shortcuts

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