phpfpm

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPrometheus added in v0.1.0

func RegisterPrometheus(fpmConfigPath string, update time.Duration) error

Types

type Config added in v0.2.0

type Config struct {
	Include string
	Pools   []Pool
}

func ParseConfig added in v0.2.0

func ParseConfig(fpmConfigPath string) (Config, error)

type FPMPoolStatus added in v0.1.0

type FPMPoolStatus struct {
	// contains filtered or unexported fields
}

func NewFPMPoolStatus added in v0.1.0

func NewFPMPoolStatus(pools []Pool) *FPMPoolStatus

func (*FPMPoolStatus) Collect added in v0.1.0

func (e *FPMPoolStatus) Collect(ch chan<- prometheus.Metric)

func (*FPMPoolStatus) Describe added in v0.1.0

func (e *FPMPoolStatus) Describe(ch chan<- *prometheus.Desc)

type Pool added in v0.2.0

type Pool struct {
	Name       string
	Listen     string
	StatusPath string
}

type Process added in v0.2.0

type Process struct {
	// contains filtered or unexported fields
}

func NewProcess added in v0.2.0

func NewProcess(
	fpmPath string,
	fpmConfigPath string,
	stdout io.Writer,
	stderr io.Writer,
	wrapperSocket string,
	shutdownDelay time.Duration,
	extraArgs ...string,
) *Process

func (*Process) HandleSignal added in v0.2.0

func (p *Process) HandleSignal(signalCh chan os.Signal)

func (*Process) Start added in v0.2.0

func (p *Process) Start() error

func (*Process) Wait added in v0.2.0

func (p *Process) Wait(errCh chan<- error) int

type Status

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

func GetStats

func GetStats(listen, statusPath string) (*Status, error)

Jump to

Keyboard shortcuts

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