sizedatabase

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

	OPT_INCLUDE = "include"
	OPT_EXCLUDE = "exclude"
	OPT_LIKE    = "like"
	OPT_TOTAL   = "total"
)

Variables

This section is empty.

Functions

func DataSizeQuery

func DataSizeQuery(set map[string]string, def blip.CollectorHelp) (string, error)

Types

type Database

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

Database collects database sizes for domain size.database.

func NewDatabase

func NewDatabase(db *sql.DB) *Database

func (*Database) Collect

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

func (*Database) Domain

func (c *Database) Domain() string

func (*Database) Help

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

func (*Database) Prepare

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

Prepares queries for all levels in the plan that contain the "var.global" domain

Jump to

Keyboard shortcuts

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