stmt

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DOMAIN = "stmt.current"

	OPT_THRESHOLD = "slow-threshold"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Current

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

Stmt collects metrics for the stmt domain. The source is performance_schema.events_statements_current.

func NewCurrent

func NewCurrent(db *sql.DB) *Current

func (*Current) Collect

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

func (*Current) Domain

func (c *Current) Domain() string

Domain returns the Blip metric domain name (DOMAIN const).

func (*Current) Help

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

Help returns the output for blip --print-domains.

func (*Current) Prepare

func (c *Current) 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