Documentation
¶
Overview ¶
Package postgres_exporter embeds https://github.com/prometheus/postgres_exporter
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{}
Functions ¶
func New ¶
func New(log log.Logger, c *Config) (integrations.Integration, error)
New creates a new postgres_exporter integration. The integration scrapes metrics from a postgres process.
Types ¶
type Config ¶
type Config struct { Common config.Common `yaml:",inline"` // DataSourceNames to use to connect to Postgres. DataSourceNames []string `yaml:"data_source_names"` DisableSettingsMetrics bool `yaml:"disable_settings_metrics"` AutodiscoverDatabases bool `yaml:"autodiscover_databases"` ExcludeDatabases []string `yaml:"exclude_databases"` }
Config controls the postgres_exporter integration.
func (*Config) CommonConfig ¶
func (*Config) NewIntegration ¶ added in v0.10.0
func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config.
Click to show internal directories.
Click to hide internal directories.