collector

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeartbeatStoredDesc = prometheus.NewDesc(
		prometheus.BuildFQName(namespace, heartbeat, "stored_timestamp_seconds"),
		"Timestamp stored in the heartbeat table.",
		[]string{"server_id"}, nil,
	)
	HeartbeatNowDesc = prometheus.NewDesc(
		prometheus.BuildFQName(namespace, heartbeat, "now_timestamp_seconds"),
		"Timestamp of the current server.",
		[]string{"server_id"}, nil,
	)
)

Metric descriptors.

Functions

func ScrapeAutoIncrementColumns

func ScrapeAutoIncrementColumns(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeAutoIncrementColumns collects auto_increment column information.

func ScrapeBinlogSize

func ScrapeBinlogSize(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeBinlogSize colects from `SHOW BINARY LOGS`.

func ScrapeClientStat

func ScrapeClientStat(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeClientStat collects from `information_schema.client_statistics`.

func ScrapeEngineInnodbStatus

func ScrapeEngineInnodbStatus(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeEngineInnodbStatus scrapes from `SHOW ENGINE INNODB STATUS`.

func ScrapeEngineTokudbStatus

func ScrapeEngineTokudbStatus(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeEngineTokudbStatus scrapes from `SHOW ENGINE TOKUDB STATUS`.

func ScrapeGlobalStatus

func ScrapeGlobalStatus(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeGlobalStatus collects from `SHOW GLOBAL STATUS`.

func ScrapeGlobalVariables

func ScrapeGlobalVariables(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeGlobalVariables collects from `SHOW GLOBAL VARIABLES`.

func ScrapeHeartbeat added in v0.10.0

func ScrapeHeartbeat(db *sql.DB, ch chan<- prometheus.Metric, collectDatabase, collectTable *string) error

ScrapeHeartbeat scrapes from the heartbeat table. This is mainly targeting pt-heartbeat, but will work with any heartbeat implementation that writes to a table with two columns: CREATE TABLE heartbeat (

ts                    varchar(26) NOT NULL,
server_id             int unsigned NOT NULL PRIMARY KEY,

);

func ScrapeInfoSchemaInnodbTablespaces

func ScrapeInfoSchemaInnodbTablespaces(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeInfoSchemaInnodbTablespaces collects from `information_schema.innodb_sys_tablespaces`.

func ScrapeInnodbMetrics

func ScrapeInnodbMetrics(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeInnodbMetrics collects from `information_schema.innodb_metrics`.

func ScrapePerfEventsStatements

func ScrapePerfEventsStatements(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapePerfEventsStatements collects from `performance_schema.events_statements_summary_by_digest`.

func ScrapePerfEventsWaits

func ScrapePerfEventsWaits(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapePerfEventsWaits collects from `performance_schema.events_waits_summary_global_by_event_name`.

func ScrapePerfFileEvents

func ScrapePerfFileEvents(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapePerfFileEvents collects from `performance_schema.file_summary_by_event_name`.

func ScrapePerfFileInstances added in v0.10.0

func ScrapePerfFileInstances(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapePerfFileEvents collects from `performance_schema.file_summary_by_event_name`.

func ScrapePerfIndexIOWaits

func ScrapePerfIndexIOWaits(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapePerfIndexIOWaits collects for `performance_schema.table_io_waits_summary_by_index_usage`.

func ScrapePerfTableIOWaits

func ScrapePerfTableIOWaits(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapePerfTableIOWaits collects from `performance_schema.table_io_waits_summary_by_table`.

func ScrapePerfTableLockWaits

func ScrapePerfTableLockWaits(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapePerfTableLockWaits collects from `performance_schema.table_lock_waits_summary_by_table`.

func ScrapeProcesslist

func ScrapeProcesslist(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeProcesslist collects from `information_schema.processlist`.

func ScrapeQueryResponseTime

func ScrapeQueryResponseTime(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeQueryResponseTime collects from `information_schema.query_response_time`.

func ScrapeSlaveStatus

func ScrapeSlaveStatus(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeSlaveStatus collects from `SHOW SLAVE STATUS`.

func ScrapeTableSchema

func ScrapeTableSchema(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeTableSchema collects from `information_schema.tables`.

func ScrapeTableStat

func ScrapeTableStat(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeTableStat collects from `information_schema.table_statistics`.

func ScrapeUserStat

func ScrapeUserStat(db *sql.DB, ch chan<- prometheus.Metric) error

ScrapeUserStat collects from `information_schema.user_statistics`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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