metrics

package
v0.0.0-...-7d7e621 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

Collector defines a metrics collector

func NewCollector

func NewCollector() *Collector

NewCollector returns a new Collector instance

func (*Collector) CurrentStats

func (c *Collector) CurrentStats() *Proxy

CurrentStats returns current stats

func (*Collector) Start

func (c *Collector) Start(stopCh <-chan struct{})

Start ...

type Proxy

type Proxy struct {
	// WaitingForPods indicates if the proxy is holding requests waiting for pods to be avialable
	WaitingForPods bool `json:"waitingForPods"`
	// LastRequest seconds since the last request
	LastRequest int `json:"lastRequest"`
	// PendingRequests number of requests pending to be processed by the proxy
	PendingRequests int `json:"pendingRequest"`
	// EndpointCount number of running pods
	EndpointCount int `json:"endpointCount"`
}

Proxy holds metrics

Jump to

Keyboard shortcuts

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