sizetable

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.table"

	OPT_EXCLUDE = "exclude"
	OPT_INCLUDE = "include"
)

Variables

This section is empty.

Functions

func TableSizeQuery

func TableSizeQuery(set map[string]string) (string, error)

Types

type Table

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

Table collects table sizes for domain size.table.

func NewTable

func NewTable(db *sql.DB) *Table

NewTable makes a new Table collector,

func (*Table) Collect

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

func (*Table) Domain

func (t *Table) Domain() string

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

func (*Table) Help

func (t *Table) Help() blip.CollectorHelp

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

func (*Table) Prepare

func (t *Table) Prepare(ctx context.Context, plan blip.Plan) (func(), error)

Prepare prepares the collector for the given plan.

Jump to

Keyboard shortcuts

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