polardbx

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(listenAddr string, metricsPath string, mgrPort int, enableProcExporter, enableJvmStatExporter bool)

Types

type Exporter

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

func NewExporter

func NewExporter(mgrPort int, logger log.Logger) *Exporter

func (*Exporter) Collect

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

Collect fetches the stats from PolarDB-X manager port and delivers them as Prometheus metrics. It implements prometheus.Collector.

func (*Exporter) Describe

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

Describe describes all the metrics ever exported by the PolarDB-X exporter. It implements prometheus.Collector.

func (*Exporter) TryInit

func (e *Exporter) TryInit() error

type ScrapeTask

type ScrapeTask struct {
	Query     string
	Metrics   map[string]metric.Metric
	VarLabels []string
}

Jump to

Keyboard shortcuts

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