nginx

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(nginxConf Conf) controller.Updater

New creates an nginx updater.

Types

type Conf

type Conf struct {
	BinaryLocation               string
	WorkingDir                   string
	WorkerProcesses              int
	WorkerConnections            int
	KeepaliveSeconds             int
	BackendKeepalives            int
	BackendConnectTimeoutSeconds int
	ServerNamesHashBucketSize    int
	ServerNamesHashMaxSize       int
	HealthPort                   int
	TrustedFrontends             []string
	IngressPort                  int
	LogLevel                     string
	ProxyProtocol                bool
	AccessLog                    bool
	AccessLogDir                 string
	LogHeaders                   []string
	AccessLogHeaders             string
	UpdatePeriod                 time.Duration
}

Conf configuration for nginx

type VTSConnections

type VTSConnections struct {
	Active   float64 `json:"active"`
	Reading  float64 `json:"reading"`
	Writing  float64 `json:"writing"`
	Waiting  float64 `json:"waiting"`
	Accepted float64 `json:"accepted"`
	Handled  float64 `json:"handled"`
	Requests float64 `json:"requests"`
}

VTSConnections represents json of the connections.

type VTSMetrics

type VTSMetrics struct {
	Connections   *VTSConnections                      `json:"connections"`
	FilterZones   map[string]map[string]VTSRequestData `json:"filterZones"`
	UpstreamZones map[string][]VTSRequestData          `json:"upstreamZones"`
}

VTSMetrics represents the json returned by the vts nginx plugin.

type VTSRequestData

type VTSRequestData struct {
	Server    string        `json:"server"`
	InBytes   float64       `json:"inBytes"`
	OutBytes  float64       `json:"outBytes"`
	Responses *VTSResponses `json:"responses"`
}

VTSRequestData contains request details.

type VTSResponses

type VTSResponses struct {
	OneXX   float64 `json:"1xx"`
	TwoXX   float64 `json:"2xx"`
	ThreeXX float64 `json:"3xx"`
	FourXX  float64 `json:"4xx"`
	FiveXX  float64 `json:"5xx"`
}

VTSResponses contains response details.

Jump to

Keyboard shortcuts

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