mpplack

package
v0.83.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 9 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 interface{}    `json:"TotalAccesses"`
	TotalKbytes   interface{}    `json:"TotalKbytes"`
	BusyWorkers   interface{}    `json:"BusyWorkers"`
	IdleWorkers   interface{}    `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