mpplack

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: Apache-2.0 Imports: 10 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 PlackPlugin

type PlackPlugin struct {
	URI         string
	Prefix      string
	LabelPrefix string
}

PlackPlugin mackerel plugin for Plack

func (PlackPlugin) FetchMetrics

func (p PlackPlugin) FetchMetrics() (map[string]interface{}, error)

FetchMetrics interface for mackerelplugin

func (PlackPlugin) GraphDefinition

func (p PlackPlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerelplugin

type PlackRequest

type PlackRequest struct{}

PlackRequest request

type PlackServerStatus

type PlackServerStatus struct {
	Uptime        interface{}    `json:"Uptime"` // Plack::Middleware::ServerStatus::Lite 0.35 outputs Uptime as a JSON number, though pre-0.35 outputs it as a JSON string.
	TotalAccesses string         `json:"TotalAccesses"`
	TotalKbytes   string         `json:"TotalKbytes"`
	BusyWorkers   string         `json:"BusyWorkers"`
	IdleWorkers   string         `json:"IdleWorkers"`
	Stats         []PlackRequest `json:"stats"`
}

PlackServerStatus sturct for server-status's json

Jump to

Keyboard shortcuts

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