collector

package module
v0.0.0-...-b401e3f Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: AGPL-3.0 Imports: 5 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(db *db.Client) []Collector

DefaultCollectors specifies the list of default collectors.

type PgStatActivityCollector

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

PgStatActivityCollector collects from pg_stat_user_tables.

func NewPgStatActivityCollector

func NewPgStatActivityCollector(db *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 PgStatUserTableCollector

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

PgStatUserTableCollector collects from pg_stat_user_tables.

func NewPgStatUserTableCollector

func NewPgStatUserTableCollector(db *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 interfacc.

Jump to

Keyboard shortcuts

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