metrics

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNginxMetricsClient

func NewNginxMetricsClient(httpClient *http.Client) (*prometheusClient.NginxClient, error)

NewNginxMetricsClient creates an NginxClient to fetch stats from NGINX over an unix socket

func RunPrometheusListenerForNginx

func RunPrometheusListenerForNginx(port int, client *prometheusClient.NginxClient, registry *prometheus.Registry)

RunPrometheusListenerForNginx runs an http server to expose Prometheus metrics for NGINX

func RunPrometheusListenerForNginxPlus

func RunPrometheusListenerForNginxPlus(port int, plusClient *sdkClient.NginxClient, registry *prometheus.Registry)

RunPrometheusListenerForNginxPlus runs an http server to expose Prometheus metrics for NGINX Plus

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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