exporter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RethinkdbExporter

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

RethinkdbExporter is a prometheus exporter of the rethinkdb statistics

func New

func New(
	listenAddress string,
	telemetryPath string,
	rconn r.QueryExecutor,
	collectTableStats bool,
) (*RethinkdbExporter, error)

New creates a new instance of prometheus rethinkdb exporter

func (*RethinkdbExporter) Collect

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

Collect send collected metrics values to the prometheus chan

func (*RethinkdbExporter) Describe

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

Describe sends metrics descriptions to the prometheus chan

func (*RethinkdbExporter) ListenAndServe

func (e *RethinkdbExporter) ListenAndServe() error

ListenAndServe runs prometheus http-server for exporting stats

Jump to

Keyboard shortcuts

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