Versions in this module Expand all Collapse all v0 v0.3.1 Jun 21, 2022 v0.3.0 Jun 9, 2022 Changes in this version + type Exporter struct + func New(ctx context.Context, pgoptions *pg.Options, metrics Metrics, ...) *Exporter + func (e *Exporter) Collect(ch chan<- prometheus.Metric) + func (e *Exporter) Describe(ch chan<- *prometheus.Desc) + type Metrics struct + Error prometheus.Gauge + PgSQLUp prometheus.Gauge + ScrapeErrors *prometheus.CounterVec + TotalScrapes prometheus.Counter + func NewMetrics() Metrics + type ScrapeActivity struct + func (ScrapeActivity) Help() string + func (ScrapeActivity) Name() string + func (ScrapeActivity) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeActivity) Type() ScrapeType + func (ScrapeActivity) Version() int + type ScrapeArchiver struct + func (ScrapeArchiver) Help() string + func (ScrapeArchiver) Name() string + func (ScrapeArchiver) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeArchiver) Type() ScrapeType + func (ScrapeArchiver) Version() int + type ScrapeBgWriter struct + func (ScrapeBgWriter) Help() string + func (ScrapeBgWriter) Name() string + func (ScrapeBgWriter) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeBgWriter) Type() ScrapeType + func (ScrapeBgWriter) Version() int + type ScrapeDatabase struct + func (ScrapeDatabase) Help() string + func (ScrapeDatabase) Name() string + func (ScrapeDatabase) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeDatabase) Type() ScrapeType + func (ScrapeDatabase) Version() int + type ScrapeDatabaseConflicts struct + func (ScrapeDatabaseConflicts) Help() string + func (ScrapeDatabaseConflicts) Name() string + func (ScrapeDatabaseConflicts) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeDatabaseConflicts) Type() ScrapeType + func (ScrapeDatabaseConflicts) Version() int + type ScrapeIOTables struct + func (ScrapeIOTables) Help() string + func (ScrapeIOTables) Name() string + func (ScrapeIOTables) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeIOTables) Type() ScrapeType + func (ScrapeIOTables) Version() int + type ScrapeInfo struct + func (ScrapeInfo) Help() string + func (ScrapeInfo) Name() string + func (ScrapeInfo) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeInfo) Type() ScrapeType + func (ScrapeInfo) Version() int + type ScrapeLocks struct + func (ScrapeLocks) Help() string + func (ScrapeLocks) Name() string + func (ScrapeLocks) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeLocks) Type() ScrapeType + func (ScrapeLocks) Version() int + type ScrapePreparedXacts struct + func (ScrapePreparedXacts) Help() string + func (ScrapePreparedXacts) Name() string + func (ScrapePreparedXacts) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapePreparedXacts) Type() ScrapeType + func (ScrapePreparedXacts) Version() int + type ScrapeReplication struct + func (ScrapeReplication) Help() string + func (ScrapeReplication) Name() string + func (ScrapeReplication) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeReplication) Type() ScrapeType + func (ScrapeReplication) Version() int + type ScrapeReplicationSlots struct + func (ScrapeReplicationSlots) Help() string + func (ScrapeReplicationSlots) Name() string + func (ScrapeReplicationSlots) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeReplicationSlots) Type() ScrapeType + func (ScrapeReplicationSlots) Version() int + type ScrapeSettings struct + func (ScrapeSettings) Help() string + func (ScrapeSettings) Name() string + func (ScrapeSettings) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeSettings) Type() ScrapeType + func (ScrapeSettings) Version() int + type ScrapeStatements struct + func (ScrapeStatements) Help() string + func (ScrapeStatements) Name() string + func (ScrapeStatements) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeStatements) Type() ScrapeType + func (ScrapeStatements) Version() int + type ScrapeTXID struct + func (ScrapeTXID) Help() string + func (ScrapeTXID) Name() string + func (ScrapeTXID) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeTXID) Type() ScrapeType + func (ScrapeTXID) Version() int + type ScrapeTables struct + func (ScrapeTables) Help() string + func (ScrapeTables) Name() string + func (ScrapeTables) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeTables) Type() ScrapeType + func (ScrapeTables) Version() int + type ScrapeType int + const SCRAPEGLOBAL + const SCRAPELOCAL + type ScrapeWal struct + func (ScrapeWal) Help() string + func (ScrapeWal) Name() string + func (ScrapeWal) Scrape(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + func (ScrapeWal) Type() ScrapeType + func (ScrapeWal) Version() int + type Scraper interface + Help func() string + Name func() string + Scrape func(ctx context.Context, db *pg.DB, ch chan<- prometheus.Metric) error + Type func() ScrapeType + Version func() int