exporter

package
v0.0.0-...-308202c Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: MIT Imports: 7 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 {
	ConstLabels prometheus.Labels
	Gauges      prometheus_helper.GaugeMapMap
	GaugeVecs   prometheus_helper.GaugeVecMapMap
	ChipStats   *prometheus.GaugeVec
	sync.Mutex
	// contains filtered or unexported fields
}

Collector interface

func NewExporter

func NewExporter(client cgminer_client.Client, version string) *Exporter

func (*Exporter) Collect

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

func (*Exporter) Describe

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

type MinerData

type MinerData struct {
	Summary cgminer_client.Summary
	Devs    map[string]cgminer_client.Dev
}

Jump to

Keyboard shortcuts

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