postgres_exporter

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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) (common.Integration, error)

New creates a new postgres_exporter integration. The integration scrapes metrics from a postgres process.

Types

type Config

type Config struct {
	// Enabled enables the integration.
	Enabled bool `yaml:"enabled"`

	CommonConfig 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) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for Config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL