mpphpfpm

package
v0.78.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 14 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 FastCGITransport added in v0.55.0

type FastCGITransport struct {
	Network string
	Address string
}

FastCGITransport is an implementation of RoundTripper that supports FastCGI.

func (*FastCGITransport) RoundTrip added in v0.55.0

func (t *FastCGITransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the RoundTripper interface.

type PhpFpmPlugin

type PhpFpmPlugin struct {
	URL         string
	Prefix      string
	LabelPrefix string
	Timeout     uint
	Socket      SocketFlag
}

PhpFpmPlugin mackerel plugin

func (PhpFpmPlugin) FetchMetrics

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

FetchMetrics interface for mackerelplugin

func (PhpFpmPlugin) GraphDefinition

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

GraphDefinition interface for mackerelplugin

func (PhpFpmPlugin) MetricKeyPrefix added in v0.27.1

func (p PhpFpmPlugin) MetricKeyPrefix() string

MetricKeyPrefix interface for PluginWithPrefix

type PhpFpmStatus

type PhpFpmStatus struct {
	Pool               string `json:"pool"`
	ProcessManager     string `json:"process manager"`
	StartTime          uint64 `json:"start time"`
	StartSince         uint64 `json:"start since"`
	AcceptedConn       uint64 `json:"accepted conn"`
	ListenQueue        uint64 `json:"listen queue"`
	MaxListenQueue     uint64 `json:"max listen queue"`
	ListenQueueLen     uint64 `json:"listen queue len"`
	IdleProcesses      uint64 `json:"idle processes"`
	ActiveProcesses    uint64 `json:"active processes"`
	TotalProcesses     uint64 `json:"total processes"`
	MaxActiveProcesses uint64 `json:"max active processes"`
	MaxChildrenReached uint64 `json:"max children reached"`
	SlowRequests       uint64 `json:"slow requests"`
}

PhpFpmStatus struct for PhpFpmPlugin mackerel plugin

type SocketFlag added in v0.55.0

type SocketFlag struct {
	Network string
	Address string
	// contains filtered or unexported fields
}

SocketFlag represents -socket flag.

func (*SocketFlag) Set added in v0.55.0

func (p *SocketFlag) Set(s string) error

Set implements flag.Value interface.

func (*SocketFlag) String added in v0.55.0

func (p *SocketFlag) String() string

func (*SocketFlag) Transport added in v0.55.0

func (p *SocketFlag) Transport() http.RoundTripper

Transport returns http.RoundTripper corresponding to the flag.

Jump to

Keyboard shortcuts

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