exporter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExporterName name of the exporter binary
	ExporterName = "windows_exporter.exe"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	URL        string
	MetricPath string
	Done       chan struct{} // this channel is closed when the exporter stop running
	// contains filtered or unexported fields
}

Exporter manages the exporter execution

func New

func New(verbose bool, bindAddress string, bindPort string) (*Exporter, error)

New create a configured Exporter struct ready to be run

func (*Exporter) Kill

func (e *Exporter) Kill()

Kill cancel the ctx and close the handle

func (*Exporter) Run

func (e *Exporter) Run() error

Run executes the exporter binary

Jump to

Keyboard shortcuts

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