collectors

package
v0.0.0-...-779d28c Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	prometheus.Collector
	// Scrape is used by our exporter to scrape data from postgres.
	Scrape(ch chan<- prometheus.Metric) error
}

Collector wraps the prometheus.Collector.

func DefaultCollectors

func DefaultCollectors(dbClients []*db.Client) []Collector

DefaultCollectors specifies the list of default collectors.

type PgLocksCollector

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

PgLocksCollector collects from pg_locks.

func NewPgLocksCollector

func NewPgLocksCollector(dbClients []*db.Client) *PgLocksCollector

NewPgLocksCollector instantiates and returns a new PgLocksCollector.

func (*PgLocksCollector) Collect

func (c *PgLocksCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the promtheus.Collector.

func (*PgLocksCollector) Describe

func (c *PgLocksCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector.

func (*PgLocksCollector) Scrape

func (c *PgLocksCollector) Scrape(ch chan<- prometheus.Metric) error

Scrape implements our Scraper interface.

type PgStatActivityCollector

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

PgStatActivityCollector collects from pg_stat_user_tables.

func NewPgStatActivityCollector

func NewPgStatActivityCollector(dbClients []*db.Client) *PgStatActivityCollector

NewPgStatActivityCollector instantiates and returns a new PgStatActivityCollector.

func (*PgStatActivityCollector) Collect

func (c *PgStatActivityCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the promtheus.Collector.

func (*PgStatActivityCollector) Describe

func (c *PgStatActivityCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector.

func (*PgStatActivityCollector) Scrape

func (c *PgStatActivityCollector) Scrape(ch chan<- prometheus.Metric) error

Scrape implements our Scraper interfacc.

type PgStatStatementsCollector

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

PgStatStatementsCollector collects from pg_stat_statements.

func NewPgStatStatementsCollector

func NewPgStatStatementsCollector(dbClients []*db.Client) *PgStatStatementsCollector

NewPgStatStatementsCollector instantiates and returns a new PgStatStatementsCollector.

func (*PgStatStatementsCollector) Collect

func (c *PgStatStatementsCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the promtheus.Collector.

func (*PgStatStatementsCollector) Describe

func (c *PgStatStatementsCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector.

func (*PgStatStatementsCollector) Scrape

func (c *PgStatStatementsCollector) Scrape(ch chan<- prometheus.Metric) error

Scrape implements our Scraper interfacc.

type PgStatUserIndexesCollector

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

PgStatUserIndexesCollector collects from pg_stat_user_indexes.

func NewPgStatUserIndexesCollector

func NewPgStatUserIndexesCollector(dbClients []*db.Client) *PgStatUserIndexesCollector

NewPgStatUserIndexesCollector instantiates and returns a new PgStatUserTableCollector.

func (*PgStatUserIndexesCollector) Collect

func (c *PgStatUserIndexesCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the promtheus.Collector.

func (*PgStatUserIndexesCollector) Describe

func (c *PgStatUserIndexesCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector.

func (*PgStatUserIndexesCollector) Scrape

func (c *PgStatUserIndexesCollector) Scrape(ch chan<- prometheus.Metric) error

Scrape implements our Scraper interface.

type PgStatUserTableCollector

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

PgStatUserTableCollector collects from pg_stat_user_tables.

func NewPgStatUserTableCollector

func NewPgStatUserTableCollector(dbClients []*db.Client) *PgStatUserTableCollector

NewPgStatUserTableCollector instantiates and returns a new PgStatUserTableCollector.

func (*PgStatUserTableCollector) Collect

func (c *PgStatUserTableCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the promtheus.Collector.

func (*PgStatUserTableCollector) Describe

func (c *PgStatUserTableCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector.

func (*PgStatUserTableCollector) Scrape

func (c *PgStatUserTableCollector) Scrape(ch chan<- prometheus.Metric) error

Scrape implements our Scraper interface.

Jump to

Keyboard shortcuts

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