sizebinlog

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOMAIN = "size.binlog"

	ERR_NO_ACCESS  = "access-denied"
	ERR_NO_BINLOGS = "binlog-not-enabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Binlog

type Binlog struct {
	// contains filtered or unexported fields
}

Binlog collects metrics for the size.binlog domain. The source is SHOW BINARY LOGS.

func NewBinlog

func NewBinlog(db *sql.DB) *Binlog

func (*Binlog) Collect

func (c *Binlog) Collect(ctx context.Context, levelName string) ([]blip.MetricValue, error)

func (*Binlog) Domain

func (c *Binlog) Domain() string

func (*Binlog) Help

func (c *Binlog) Help() blip.CollectorHelp

func (*Binlog) Prepare

func (c *Binlog) Prepare(ctx context.Context, plan blip.Plan) (func(), error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL