phpfpm

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 17 Imported by: 0

README

nginx

PHP-FPM 监控采集插件,由telegraf的phpfpm改造而来。

该插件需要更改phpfpm的配置文件,开启 pm.status_path配置项

pm.status_path = /status

Configuration

请参考配置示例文件

注意事项:
  1. 如下配置 仅生效于HTTP的url
    • response_timeout
    • username & password
    • headers
    • TLS config
  2. 如果使用 Unix socket,需要保证 categraf 和 socket path 在同一个主机上,且 categraf 运行用户拥有读取该 path 的权限。

监控大盘和告警规则

待更新...

Documentation

Index

Constants

View Source
const (
	PfPool               = "pool"
	PfStartSince         = "start since"
	PfAcceptedConn       = "accepted conn"
	PfListenQueue        = "listen queue"
	PfMaxListenQueue     = "max listen queue"
	PfListenQueueLen     = "listen queue len"
	PfIdleProcesses      = "idle processes"
	PfActiveProcesses    = "active processes"
	PfTotalProcesses     = "total processes"
	PfMaxActiveProcesses = "max active processes"
	PfMaxChildrenReached = "max children reached"
	PfSlowRequests       = "slow requests"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	config.InstanceConfig

	Urls []string `toml:"urls"`

	ResponseTimeout config.Duration `toml:"response_timeout"`
	FollowRedirects bool            `toml:"follow_redirects"`
	Username        string          `toml:"username"`
	Password        string          `toml:"password"`
	Headers         []string        `toml:"headers"`

	tls.ClientConfig
	// contains filtered or unexported fields
}

func (*Instance) Gather

func (ins *Instance) Gather(sList *types.SampleList)

func (*Instance) Init

func (ins *Instance) Init() error

type PhpFpm

type PhpFpm struct {
	config.PluginConfig
	Instances []*Instance `toml:"instances"`
}

func (*PhpFpm) Clone

func (pt *PhpFpm) Clone() inputs.Input

func (*PhpFpm) GetInstances

func (pt *PhpFpm) GetInstances() []inputs.Instance

func (*PhpFpm) Name

func (pt *PhpFpm) Name() string

Jump to

Keyboard shortcuts

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