Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PGInfo ¶
type PGInfo struct { ClusterInfo []*models.ClusterInfo ConnectedClients []*models.ConnectedClients DatabaseWaitEvents []*models.DatabaseWaitEvents AllDatabases []*models.Databases GlobalWaitEvents []*models.GlobalWaitEvents PortAndDatadir *models.PortAndDatadir SlaveHosts96 []*models.SlaveHosts96 SlaveHosts10 []*models.SlaveHosts10 Tablespaces []*models.Tablespaces Settings []*models.Setting Counters map[models.Name][]*models.Counters // Counters per database IndexCacheHitRatio map[string]*models.IndexCacheHitRatio // Indexes cache hit ratio per database TableCacheHitRatio map[string]*models.TableCacheHitRatio // Tables cache hit ratio per database TableAccess map[string][]*models.TableAccess // Table access per database ServerVersion *version.Version Sleep int Processes []Process // contains filtered or unexported fields }
PGInfo has exported fields containing the data collected. Fields are exported to be able to use them when printing the templates
func NewWithLogger ¶
func NewWithLogger(db models.XODB, databases []string, sleep int, l *logrus.Logger) (*PGInfo, error)
NewWithLogger returns a new PGInfo instance with an external logger instance
func (*PGInfo) CollectGlobalInfo ¶
CollectGlobalInfo collects global information
func (*PGInfo) CollectPerDatabaseInfo ¶
CollectPerDatabaseInfo collects information for a specific database
func (*PGInfo) DatabaseNames ¶
DatabaseNames returns the list of the database names for which information will be collected
func (*PGInfo) SetLogLevel ¶
SetLogLevel changes the current log level
Click to show internal directories.
Click to hide internal directories.