exporter

package
v0.0.0-...-37e977f Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 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 Config

type Config struct {
	// Address to listen on for web interface and telemetry.
	ListenAddress string

	// Path under which to expose metrics.
	MetricPath string

	// Path to .my.cnf file to read MySQL credentials from.",
	ConfigMycnf string

	// Namespace for all metrics.
	Namespace string

	// Subsystem
	Subsystem string

	// Data Source Name
	DSN string
}

type Exporter

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

Exporter collects Sphinx metrics. It implements prometheus.Collector.

func NewExporter

func NewExporter(c *Config) *Exporter

NewExporter returns a new MySQL exporter for the provided DSN.

func (*Exporter) Collect

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

Collect implements prometheus.Collector.

func (*Exporter) Describe

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

Describe implements prometheus.Collector.

func (*Exporter) NewDefaultServer

func (e *Exporter) NewDefaultServer() *http.Server

Jump to

Keyboard shortcuts

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