exporter

package
v0.0.0-...-6418381 Latest Latest
Warning

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

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

Documentation

Overview

Package exporter implements the collectors and metrics handlers.

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 holds Exporter methods and attributes.

func New

func New(opts *Opts) (*Exporter, error)

New connects to the database and returns a new Exporter instance.

func (*Exporter) Run

func (e *Exporter) Run()

Run starts the exporter.

type Opts

type Opts struct {
	CollStatsCollections  []string
	IndexStatsCollections []string
	CompatibleMode        bool
	DSN                   string
	Path                  string
	Port                  int
	Logger                *logrus.Logger
}

Opts holds new exporter options.

Jump to

Keyboard shortcuts

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