mpplack

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 8 Imported by: 14

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