postgresql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "postgresql"

PluginName to use when configuring.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExporterConfig

type ExporterConfig struct {
	/* <code>connectionstring</code> is the Postgresql connection string<br/>
	See https://github.com/jackc/pgconn for more details
	*/
	ConnectionString string `yaml:"connection-string"`
	/* <code>max-conn</code> specifies the maximum connection number for the connection pool.<br/>
	This means the total number of active queries that can be running concurrently can never be more than this.
	*/
	MaxConn uint32 `yaml:"max-conn"`
	/* <code>test</code> will replace an actual DB connection being created via the connection string,
	with a mock DB for unit testing.
	*/
	Test bool `yaml:"test"`
	// <code>delete-task</code> is the configuration for data pruning.
	Delete util.PruneConfigurations `yaml:"delete-task"`
}

ExporterConfig specific to the postgresql exporter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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