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
Click to show internal directories.
Click to hide internal directories.