{"modulePath":"github.com/netdata/go.d.plugin","version":"v0.58.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package postgres\n\n## Types\n\n```go\ntype Config struct {\n\tDSN                string       `yaml:\"dsn\"`\n\tTimeout            web.Duration `yaml:\"timeout\"`\n\tDBSelector         string       `yaml:\"collect_databases_matching\"`\n\tXactTimeHistogram  []float64    `yaml:\"transaction_time_histogram\"`\n\tQueryTimeHistogram []float64    `yaml:\"query_time_histogram\"`\n\tMaxDBTables        int64        `yaml:\"max_db_tables\"`\n\tMaxDBIndexes       int64        `yaml:\"max_db_indexes\"`\n}\n```\n\n```go\ntype Postgres struct {\n\tmodule.Base\n\tConfig `yaml:\",inline\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New() *Postgres\n```\n\n```go\nfunc (p *Postgres) Charts() *module.Charts\n```\n\n```go\nfunc (p *Postgres) Check() bool\n```\n\n```go\nfunc (p *Postgres) Cleanup()\n```\n\n```go\nfunc (p *Postgres) Collect() map[string]int64\n```\n\n```go\nfunc (p *Postgres) Init() bool\n```\n\n","path":"github.com/netdata/go.d.plugin/modules/postgres","name":"postgres","synopsis":"","isRedistributable":true}
