Documentation ¶
Index ¶
Constants ¶
const (
OpenTablesQuery = `
SHOW OPEN TABLES WHERE In_use > 0
`
)
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 ¶
func (ScrapeStatColumnCapacityColumns) Help() string
Help describes the role of the Scraper.
func (ScrapeStatColumnCapacityColumns) Name ¶
func (ScrapeStatColumnCapacityColumns) Name() string
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 ¶
func (ScrapeStatColumnCapacityColumns) Version() float64
Version of MySQL from which scraper is available.
type ScrapeUsingPartitions ¶
type ScrapeUsingPartitions struct{}
func (ScrapeUsingPartitions) Help ¶
func (ScrapeUsingPartitions) Help() string
Help describes the role of the Scraper.
func (ScrapeUsingPartitions) Name ¶
func (ScrapeUsingPartitions) Name() string
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.