pgcollector

package
v0.0.0-...-ac3e8bd Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgCollector

type PgCollector struct {
	sync.Mutex
	// contains filtered or unexported fields
}

PgCollector describes PostgreSQL metrics collector

func New

func New(ctx context.Context) *PgCollector

New create new instance of the PostgreSQL metrics collector

func (*PgCollector) Collect

func (p *PgCollector) Collect(metricsCh chan<- prometheus.Metric)

Collect implements Collect method of the Collector interface

func (*PgCollector) Describe

func (p *PgCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements Describe method of the Collector interface

func (*PgCollector) LoadConfig

func (p *PgCollector) LoadConfig(cfg *config.Config)

LoadConfig loads config

Jump to

Keyboard shortcuts

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