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 ¶
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.