Documentation ¶
Overview ¶
Package mysql gathers MySQL related data from a host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMysqlDumpSlow ¶
func NewMysqlProcesslist ¶
Types ¶
type InformationSchemaTables ¶
type InformationSchemaTables struct { Catalog string `db:"TABLE_CATALOG"` Schema string `db:"TABLE_SCHEMA"` Name string `db:"TABLE_NAME"` Engine string `db:"ENGINE"` Version int `db:"VERSION"` RowFormat string `db:"ROW_FORMAT"` Rows uint64 `db:"TABLE_ROWS"` AvgRowLength uint64 `db:"AVG_ROW_LENGTH"` DataLength uint64 `db:"DATA_LENGTH"` MaxDataLength uint64 `db:"MAX_DATA_LENGTH"` IndexLength uint64 `db:"INDEX_LENGTH"` DataFree uint64 `db:"DATA_FREE"` AutoIncrement sql.NullInt64 `db:"AUTO_INCREMENT"` TableCollation string `db:"TABLE_COLLATION"` DataAndIndexLength uint64 DataAndIndexLengthMB float64 DataAndIndexLengthGB float64 }
type MysqlDumpSlow ¶
MysqlDumpSlow is a reader that parses mysqldumpslow output.
func (*MysqlDumpSlow) Run ¶
func (m *MysqlDumpSlow) Run() error
func (*MysqlDumpSlow) ToJson ¶
func (m *MysqlDumpSlow) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type MysqlInformationSchemaTables ¶
type MysqlInformationSchemaTables struct { Data map[string][]InformationSchemaTables Base }
MysqlInformationSchemaTables is a reader that fetch SHOW FULL PROCESSLIST data.
func (*MysqlInformationSchemaTables) Run ¶
func (m *MysqlInformationSchemaTables) Run() error
func (*MysqlInformationSchemaTables) ToJson ¶
func (m *MysqlInformationSchemaTables) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type MysqlProcesslist ¶
type MysqlProcesslist struct { Data map[string][]Processlist Base }
MysqlProcesslist is a reader that fetch SHOW FULL PROCESSLIST data.
func (*MysqlProcesslist) Run ¶
func (m *MysqlProcesslist) Run() error
func (*MysqlProcesslist) ToJson ¶
func (m *MysqlProcesslist) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type Processlist ¶
Click to show internal directories.
Click to hide internal directories.