Versions in this module Expand all Collapse all v0 v0.3.1 Jun 21, 2022 Changes in this version type NullMilliseconds + func (m *NullMilliseconds) Scan(src interface{}) error v0.3.0 Jun 9, 2022 Changes in this version + type Milliseconds float64 + func (m Milliseconds) Seconds() float64 + type NullMilliseconds sql.NullFloat64 + func (m NullMilliseconds) Seconds() float64 + type PgDatabase struct + Datname string + FrozenXID int64 + MinMXID int64 + func (r *PgDatabase) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgDatabaseSlice []PgDatabase + func (r PgDatabaseSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgLocks struct + Database sql.NullString + Granted sql.NullBool + Locks int64 + Locktype sql.NullString + Mode sql.NullString + ScopeType sql.NullString + func (r *PgLocks) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgLocksSlice []PgLocks + func (r PgLocksSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgPreparedTransactions struct + Count int64 + Database string + Oldest time.Time + func (r *PgPreparedTransactions) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgPreparedTransactionsSlice []PgPreparedTransactions + func (r PgPreparedTransactionsSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatActivity struct + ApplicationName sql.NullString + BackendType sql.NullString + ClientAddr sql.NullString + Connections int64 + DatID int64 + DatName string + State sql.NullString + Usename sql.NullString + WaitEventType sql.NullString + func (r *PgStatActivity) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatActivitySlice []PgStatActivity + func (r PgStatActivitySlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatArchiver struct + ArchivedCount int64 + FailedCount int64 + LastArchivedTime time.Time + LastFailedTime time.Time + StatsReset time.Time + func (r *PgStatArchiver) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatBgWriter struct + BuffersAlloc int64 + BuffersBackend int64 + BuffersBackendFsync int64 + BuffersCheckpoint int64 + BuffersClean int64 + CheckpointSyncTime float64 + CheckpointWriteTime float64 + CheckpointsReq int64 + CheckpointsTimed int64 + MaxwrittenClean int64 + StatsReset time.Time + func (r *PgStatBgWriter) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatDatabase struct + ActiveTime Milliseconds + BlkReadTime Milliseconds + BlkWriteTime Milliseconds + BlksHit int64 + BlksRead int64 + ChecksumFailures int64 + ChecksumLastFailure time.Time + Conflicts int64 + DatID int64 + DatName string + Deadlocks int64 + IdleInTransactionTime Milliseconds + NumBackends int + SessionTime Milliseconds + Sessions int64 + SessionsAbandoned int64 + SessionsFatal int64 + SessionsKilled int64 + StatsReset time.Time + TempBytes int64 + TempFiles int64 + TupDeleted int64 + TupFetched int64 + TupInserted int64 + TupReturned int64 + TupUpdated int64 + XactCommit int64 + XactRollback int64 + func (r *PgStatDatabase) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatDatabaseConflicts struct + ConfBufferpin int64 + ConfDeadlock int64 + ConfLock int64 + ConfSnapshot int64 + ConfTablespace int64 + DatID int64 + DatName string + func (r *PgStatDatabaseConflicts) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatDatabaseConflictsSlice []PgStatDatabaseConflicts + func (r PgStatDatabaseConflictsSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatDatabaseSlice []PgStatDatabase + func (r PgStatDatabaseSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatIOUserTables struct + HeapBlksHit int64 + HeapBlksRead int64 + IdxBlksHit int64 + IdxBlksRead int64 + Relname string + SchemaName string + TIDXBlksHit int64 + TIDXBlksRead int64 + ToastBlksHit int64 + ToastBlksRead int64 + func (r *PgStatIOUserTables) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatIOUserTablesSlice []PgStatIOUserTables + func (r PgStatIOUserTablesSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatReplication struct + ApplicationName string + BackendXmin int64 + ClientAddr sql.NullString + FlushBytesLag int64 + FlushLag sql.NullFloat64 + PID int + ReplayBytesLag int64 + ReplayLag sql.NullFloat64 + SentBytesLag int64 + WriteBytesLag int64 + WriteLag sql.NullFloat64 + func (r *PgStatReplication) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatReplicationSlice []PgStatReplication + func (r PgStatReplicationSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatReplicationSlots struct + SlotName string + SpillBytes int64 + SpillCount int64 + SpillTxns int64 + StatsReset time.Time + StreamBytes int64 + StreamCount int64 + StreamTxns int64 + TotalBytes int64 + TotalTxns int64 + func (r *PgStatReplicationSlots) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatReplicationSlotsSlice []PgStatReplicationSlots + func (r PgStatReplicationSlotsSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatStatements struct + Calls int64 + Datname string + MeanTime NullMilliseconds + Query string + TotalTime Milliseconds + Usename string + func (r *PgStatStatements) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatStatementsSlice []PgStatStatements + func (r PgStatStatementsSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatUserTables struct + AnalyzeCount int64 + AutoAnalyzeCount int64 + AutoVacuumCount int64 + DeadTup int64 + IdxScan int64 + IdxTupFetch int64 + LastAnalyze time.Time + LastAutoAnalyze time.Time + LastAutoVacuum time.Time + LastVacuum time.Time + LiveTup int64 + ModSinceAnalyze int64 + Relname string + SchemaName string + SeqScan int64 + SeqTupRead int64 + TupDel int64 + TupHotUpd int64 + TupIns int64 + TupUpd int64 + VacuumCount int64 + func (r *PgStatUserTables) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatUserTablesSlice []PgStatUserTables + func (r PgStatUserTablesSlice) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgStatWal struct + StatsReset time.Time + WalBuffersFull int64 + WalBytes int64 + WalFpi int64 + WalRecords int64 + WalSync int64 + WalSyncTime float64 + WalWrite int64 + WalWriteTime float64 + func (r *PgStatWal) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error + type PgTxid struct + Current sql.NullInt64 + func (r *PgTxid) ToMetrics(namespace string, subsystem string, ch chan<- prometheus.Metric, ...) error