collector

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NginxCollector

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

NginxCollector collects NGINX metrics. It implements prometheus.Collector interface.

func NewNginxCollector

func NewNginxCollector(nginxClient *client.NginxClient, namespace string) *NginxCollector

NewNginxCollector creates an NginxCollector.

func (*NginxCollector) Collect

func (c *NginxCollector) Collect(ch chan<- prometheus.Metric)

Collect fetches metrics from NGINX and sends them to the provided channel.

func (*NginxCollector) Describe

func (c *NginxCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends the super-set of all possible descriptors of NGINX metrics to the provided channel.

type NginxPlusCollector

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

NginxPlusCollector collects NGINX Plus metrics. It implements prometheus.Collector interface.

func NewNginxPlusCollector

func NewNginxPlusCollector(nginxClient *plusclient.NginxClient, namespace string) *NginxPlusCollector

NewNginxPlusCollector creates an NginxPlusCollector.

func (*NginxPlusCollector) Collect

func (c *NginxPlusCollector) Collect(ch chan<- prometheus.Metric)

Collect fetches metrics from NGINX Plus and sends them to the provided channel.

func (*NginxPlusCollector) Describe

func (c *NginxPlusCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends the super-set of all possible descriptors of NGINX Plus metrics to the provided channel.

Jump to

Keyboard shortcuts

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