Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { config.InstanceConfig Address string `toml:"address"` MaxLifetime config.Duration `toml:"max_lifetime"` IsPgBouncer bool `toml:"-"` OutputAddress string `toml:"outputaddress"` Databases []string `toml:"databases"` IgnoredDatabases []string `toml:"ignored_databases"` PreparedStatements bool `toml:"prepared_statements"` Metrics []MetricConfig `toml:"metrics"` MaxIdle int MaxOpen int // contains filtered or unexported fields }
func (*Instance) Gather ¶
func (ins *Instance) Gather(slist *types.SampleList)
func (*Instance) IgnoredColumns ¶
func (*Instance) SanitizedAddress ¶
SanitizedAddress utility function to strip sensitive information from the connection string.
type MetricConfig ¶
type MetricConfig struct { Mesurement string `toml:"mesurement"` LabelFields []string `toml:"label_fields"` MetricFields []string `toml:"metric_fields"` FieldToAppend string `toml:"field_to_append"` Timeout config.Duration `toml:"timeout"` Request string `toml:"request"` IgnoreZeroResult bool `toml:"ignore_zero_result"` }
type Postgresql ¶
type Postgresql struct { config.PluginConfig Instances []*Instance `toml:"instances"` }
func (*Postgresql) Clone ¶
func (pt *Postgresql) Clone() inputs.Input
func (*Postgresql) Drop ¶
func (pt *Postgresql) Drop()
func (*Postgresql) GetInstances ¶
func (pt *Postgresql) GetInstances() []inputs.Instance
func (*Postgresql) Name ¶
func (pt *Postgresql) Name() string
Click to show internal directories.
Click to hide internal directories.