beat

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigSettings

type ConfigSettings struct {
	Input NginxConfig
}

type NginxConfig

type NginxConfig struct {
	// URLs to Nginx status page.
	// Defaults to []string{"http://127.0.0.1/status#stub"}.
	URLs []string

	// Period defines how often to read status in seconds.
	// Defaults to 1 second.
	Period *int64
}

type Nginxbeat

type Nginxbeat struct {
	// NbConfig holds configurations of Nginxbeat parsed by libbeat.
	NbConfig ConfigSettings
	// contains filtered or unexported fields
}

Nginxbeat implements Beater interface and sends Nginx status using libbeat.

func New

func New() *Nginxbeat

New constructs a new copy of nginxbeat.

func (*Nginxbeat) Cleanup

func (nb *Nginxbeat) Cleanup(b *beat.Beat) error

Cleanup Nginxbeat.

func (*Nginxbeat) Config

func (nb *Nginxbeat) Config(b *beat.Beat) error

Config Nginxbeat according to nginxbeat.yml.

func (*Nginxbeat) Run

func (nb *Nginxbeat) Run(b *beat.Beat) error

Run Nginxbeat.

func (*Nginxbeat) Setup

func (nb *Nginxbeat) Setup(b *beat.Beat) error

Setup Nginxbeat.

func (*Nginxbeat) Stop

func (nb *Nginxbeat) Stop()

Stop Nginxbeat.

Jump to

Keyboard shortcuts

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