phpfpm

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: GPL-3.0 Imports: 14 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

phpfpm

This module will monitor one or more php-fpm instances depending on configuration.

Requirements:

  • php-fpm with enabled status page
  • access to status page via web server

It produces following charts:

  1. Active Connections

    • active
    • maxActive
    • idle
  2. Requests in requests/s

    • requests
  3. Performance

    • reached
    • slow

configuration

Needs only url to server's status

Here is an example for local server:

jobs:
  - name: local
    url: http://localhost/status?full&json

  - name: local
    url: http://127.0.0.1/status?full&json

  - name: local
    url: http://[::1]/status?full&json

Without configuration, module attempts to connect to http://localhost/status?full&json


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Charts

type Charts = module.Charts

Charts is an alias for module.Charts

type Config

type Config struct {
	web.HTTP `yaml:",inline"`
}

Config is the php-fpm module configuration.

type Dims

type Dims = module.Dims

Dims is an alias for module.Dims

type Phpfpm

type Phpfpm struct {
	module.Base

	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

Phpfpm collets php-fpm metrics.

func New

func New() *Phpfpm

New returns a php-fpm module with default values.

func (*Phpfpm) Charts

func (*Phpfpm) Charts() *Charts

Charts creates Charts.

func (*Phpfpm) Check

func (p *Phpfpm) Check() bool

Check checks the module can collect metrics.

func (*Phpfpm) Cleanup

func (*Phpfpm) Cleanup()

Cleanup makes cleanup.

func (*Phpfpm) Collect

func (p *Phpfpm) Collect() map[string]int64

Collect returns collected metrics.

func (*Phpfpm) Init

func (p *Phpfpm) Init() bool

Init makes initialization.

Jump to

Keyboard shortcuts

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