# Functions
AutoDiscoverDatabases allows scraping all databases on a database server.
DisableDefaultMetrics configures default metrics export.
DisableSettingsMetrics configures pg_settings export.
ExcludeDatabases allows to filter out result from AutoDiscoverDatabases.
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
Branch is set during build to the git branch.
BuildDate is set during build to the ISO-8601 date and time.
Revision is set during build to the git commit revision.
Version is set during build to the git describe version (semantic version)-(commitish) form.
VersionShort is set during build to the semantic version.
# Structs
ColumnMapping is the user-friendly representation of a prometheus descriptor map.
ErrorConnectToServer is a connection to PgSQL server error.
Exporter collects Postgres metrics.
MappingOptions is a copy of ColumnMapping used only for parsing.
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.
nolint: golint.
# 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.
nolint: golint.
ServerOpt configures a server.
nolint: golint.