fpmPrometeus

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

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

Types

type FPMPoolStatus

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

func NewFPMPoolStatus

func NewFPMPoolStatus(pools []fpmConfig.Pool) *FPMPoolStatus

func (*FPMPoolStatus) Collect

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

func (*FPMPoolStatus) Describe

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"`
}

Jump to

Keyboard shortcuts

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