exporter

package
v0.0.0-...-b901997 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter implements the prometheus.Exporter interface, and exports PuppetDB metrics

func NewPuppetDBExporter

func NewPuppetDBExporter(url, certPath, caPath, keyPath string, sslSkipVerify bool, categories map[string]struct{}) (e *Exporter, err error)

NewPuppetDBExporter returns a new exporter of PuppetDB metrics.

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect fetches new metrics from the PuppetDB and updates the appropriate metrics

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Describe outputs PuppetDB metric descriptions

func (*Exporter) Scrape

func (e *Exporter) Scrape(interval time.Duration, unreportedNode string, verbose bool, categories map[string]struct{})

Scrape scrapes PuppetDB and update metrics

Jump to

Keyboard shortcuts

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