collector

package
v0.0.0-...-1701bfc Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNamedProcess

func NewNamedProcess(children bool, mn common.MatchNamer) (prometheus.Collector, error)

NewNamedProcess returns a new prometheus collector for the nginx process

Types

type BinaryNameMatcher

type BinaryNameMatcher struct {
	Name   string
	Binary string
}

BinaryNameMatcher ...

func (BinaryNameMatcher) MatchAndName

func (em BinaryNameMatcher) MatchAndName(nacl common.NameAndCmdline) (bool, string)

MatchAndName returns false if the match failed, otherwise true and the resulting name.

type BoolToFloat64

type BoolToFloat64 float64

BoolToFloat64 ...

func (BoolToFloat64) UnmarshalJSON

func (bit BoolToFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON ...

type Stopable

type Stopable interface {
	prometheus.Collector
	Stop()
}

Stopable defines a prometheus collector that can be stopped

func NewNGINXVTSCollector

func NewNGINXVTSCollector(watchNamespace, ingressClass string, port int, path string) Stopable

NewNGINXVTSCollector returns a new prometheus collector for the VTS module

func NewNginxStatus

func NewNginxStatus(watchNamespace, ingressClass string, ngxHealthPort int, ngxVtsPath string) Stopable

NewNginxStatus returns a new prometheus collector the default nginx status module

Jump to

Keyboard shortcuts

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