nginxmetrics

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(out, errOut io.Writer, stopCh <-chan struct{}) *cobra.Command

Start starts the server

Types

type Adapter

type Adapter struct {
	*server.CustomMetricsAdapterServerOptions
	// RemoteKubeConfigFile is the config used to list pods from the master API server
	RemoteKubeConfigFile string
	// DiscoveryInterval is the interval at which discovery information is refreshed
	DiscoveryInterval time.Duration
	// Label is the label for the ingress-nginx pods
	Label string
	// MetricsPort is the port on the pods that delivers the prometheus format metrics, 10254 by default
	MetricsPort string
	// MetricsPath is the path that delivers the metrics, default /metrics
	MetricsPath string
	// AverageSamples is the number of samples to consider for a moving average
	AverageSamples int64
}

Adapter is the adapter that takes nginx metrics and sends them to k8s

func (Adapter) Run

func (a Adapter) Run(stopCh <-chan struct{}) error

Run the adapter

Jump to

Keyboard shortcuts

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