# Functions
AutoDiscoverDatabases allows scraping all databases on a database server.
DisableDefaultMetrics configures default metrics export.
DisableSettingsMetrics configures pg_settings export.
NewExporter returns a new PostgreSQL exporter for the provided DSN.
NewServer establishes a new connection using DSN.
NewServers creates a collection of servers to Postgres.
ServerWithLabels configures a set of labels.
WithConstantLabels configures constant labels.
WithUserQueriesPath configures user's queries path.
# Variables
Version is set during build to the git describe version (semantic version)-(commitish) form.
# Structs
ColumnMapping is the user-friendly representation of a prometheus descriptor map.
Exporter collects Postgres metrics.
MetricMap stores the prometheus metric description which a given column will be mapped to by the collector.
MetricMapNamespace groups metric maps under a shared set of labels.
OverrideQuery 's are run in-place of simple namespace look ups, and provide advanced functionality.
Server describes a connection to Postgres.
Servers contains a collection of servers to Postgres.
# Type aliases
ColumnUsage should be one of several enum values which describe how a queried row is to be converted to a Prometheus metric.
ExporterOpt configures Exporter.
ServerOpt configures a server.