mpunicorn

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type Command

type Command interface {
	Output(string, ...string) ([]byte, error)
}

Command interface

type PipedCommands

type PipedCommands interface {
	Output(...[]string) ([]byte, error)
}

PipedCommands interface

type RealCommand

type RealCommand struct{}

RealCommand struct

func (RealCommand) Output

func (r RealCommand) Output(command string, args ...string) ([]byte, error)

Output for RealCommand

type RealPipedCommands

type RealPipedCommands struct{}

RealPipedCommands struct

func (RealPipedCommands) Output

func (r RealPipedCommands) Output(commands ...[]string) ([]byte, error)

Output for RealPipedCommands

type UnicornPlugin

type UnicornPlugin struct {
	MasterPid  string
	WorkerPids []string
	Tempfile   string
	Prefix     string
}

UnicornPlugin mackerel plugin for Unicorn

func (UnicornPlugin) FetchMetrics

func (u UnicornPlugin) FetchMetrics() (map[string]interface{}, error)

FetchMetrics interface for mackerelplugin

func (UnicornPlugin) GraphDefinition

func (u UnicornPlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerelplugin

func (UnicornPlugin) MetricKeyPrefix added in v0.36.0

func (u UnicornPlugin) MetricKeyPrefix() string

MetricKeyPrefix interface for PluginWithPrefix

Jump to

Keyboard shortcuts

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