shellexporter

package
v0.0.0-...-04b6ae1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthHandler

func HealthHandler(w http.ResponseWriter, r *http.Request)

func NewExporterHandler

func NewExporterHandler(scriptsDir string) (handler http.Handler, err error)

func ServeMetrics

func ServeMetrics(scriptsDir string, metricsHTTPEndpoint string, port int) (err error)

Types

type Collector

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

Collector type for prometheus.Collector interface implementation

func (*Collector) Collect

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

Collect for prometheus.Collector interface implementation

func (*Collector) Describe

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

Describe for prometheus.Collector interface implementation

Jump to

Keyboard shortcuts

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