Documentation
¶
Index ¶
Constants ¶
View Source
const VERSION string = "0.2"
Version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseStat ¶
type DatabaseStat struct { Name string Commit, Rollback int64 Read, Hit int64 Returned, Fetched, Inserted, Updated, Deleted int64 Conflicts, TempFiles, TempBytes, Deadlocks int64 ReadTime, WriteTime float64 }
statistics for database name provided
type PgMetric ¶
type PgMetric struct {
// contains filtered or unexported fields
}
func AddFromFile ¶
AddFromFile reads yaml with metric parameter and serialize it
type PgMetricSpecs ¶
type PgMetricSpecs struct {
// contains filtered or unexported fields
}
type PostgresExporter ¶
type PostgresExporter struct { *exportertools.BaseExporter Config *Config // contains filtered or unexported fields }
Exporter collects Postgres metrics. It implements prometheus.Collector.
func CreateAndRegister ¶
func CreateAndRegister(config *Config) (*PostgresExporter, error)
NewExporter returns a new PostgreSQL exporter for the provided DSN.
func (*PostgresExporter) Close ¶
func (e *PostgresExporter) Close() (err error)
func (*PostgresExporter) Setup ¶
func (e *PostgresExporter) Setup() error
Click to show internal directories.
Click to hide internal directories.