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
Click to show internal directories.
Click to hide internal directories.