exporter

package
v0.0.0-...-fe9d0f6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpMetrics

func DumpMetrics(w io.Writer) error

DumpMetrics dump the current metrics in the text format in the given writer.

Types

type Collector

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

func NewCollector

func NewCollector(nodeName, sysFsDir string, klReader *kubeletcheckpoint.Reader) (*Collector, error)

func (Collector) Collect

func (co Collector) Collect(ch chan<- prometheus.Metric)

Note that Collect could be called concurrently

func (Collector) Describe

func (co Collector) Describe(ch chan<- *prometheus.Desc)

type Exporter

type Exporter struct {
	TLSInfo       *k8sutils.TLSInfo
	ListenAddress string
	DumpMode      bool
	Nodename      string
	SysFSDir      string
	KubeStateDir  string
}

func NewExporter

func NewExporter() *Exporter

func (*Exporter) ParseFlags

func (exp *Exporter) ParseFlags() error

func (*Exporter) Run

func (exp *Exporter) Run()

Jump to

Keyboard shortcuts

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