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