phpfpm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: MIT Imports: 10 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 FPMPoolStatus added in v0.1.0

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

func NewFPMPoolStatus added in v0.1.0

func NewFPMPoolStatus(pools []fpmConfig.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 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