dbacollector

package
v0.0.0-...-a4ce10b Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenTablesQuery = `
		SHOW OPEN TABLES WHERE In_use > 0
	`
)
View Source
const (
	UsingPartitionsQuery = `` /* 1472-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type ScrapeOpenTables

type ScrapeOpenTables struct{}

func (ScrapeOpenTables) Help

func (ScrapeOpenTables) Help() string

Help describes the role of the Scraper.

func (ScrapeOpenTables) Name

func (ScrapeOpenTables) Name() string

Name of the Scraper. Should be unique.

func (ScrapeOpenTables) Scrape

func (ScrapeOpenTables) Scrape(ctx context.Context, db *sql.DB, ch chan<- prometheus.Metric, logger log.Logger) error

Scrape collects data from database connection and sends it over channel as prometheus metric.

func (ScrapeOpenTables) Version

func (ScrapeOpenTables) Version() float64

Version of MySQL from which scraper is available.

type ScrapeStatColumnCapacityColumns

type ScrapeStatColumnCapacityColumns struct{}

func (ScrapeStatColumnCapacityColumns) Help

Help describes the role of the Scraper.

func (ScrapeStatColumnCapacityColumns) Name

Name of the Scraper. Should be unique.

func (ScrapeStatColumnCapacityColumns) Scrape

func (ScrapeStatColumnCapacityColumns) Scrape(ctx context.Context, db *sql.DB, ch chan<- prometheus.Metric, logger log.Logger) error

Scrape collects data from database connection and sends it over channel as prometheus metric.

func (ScrapeStatColumnCapacityColumns) Version

Version of MySQL from which scraper is available.

type ScrapeUsingPartitions

type ScrapeUsingPartitions struct{}

func (ScrapeUsingPartitions) Help

Help describes the role of the Scraper.

func (ScrapeUsingPartitions) Name

Name of the Scraper. Should be unique.

func (ScrapeUsingPartitions) Scrape

func (ScrapeUsingPartitions) Scrape(ctx context.Context, db *sql.DB, ch chan<- prometheus.Metric, logger log.Logger) error

Scrape collects data from database connection and sends it over channel as prometheus metric.

func (ScrapeUsingPartitions) Version

func (ScrapeUsingPartitions) Version() float64

Version of MySQL from which scraper is available.

Jump to

Keyboard shortcuts

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