Documentation ¶
Index ¶
- Variables
- func ScrapeAutoIncrementColumns(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeBinlogSize(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeClientStat(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeEngineInnodbStatus(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeEngineTokudbStatus(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeGlobalStatus(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeGlobalVariables(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeHeartbeat(db *sql.DB, ch chan<- prometheus.Metric, collectDatabase, collectTable *string) error
- func ScrapeInfoSchemaInnodbTablespaces(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeInnodbMetrics(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapePerfEventsStatements(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapePerfEventsWaits(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapePerfFileEvents(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapePerfFileInstances(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapePerfIndexIOWaits(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapePerfTableIOWaits(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapePerfTableLockWaits(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeProcesslist(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeQueryResponseTime(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeSlaveStatus(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeTableSchema(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeTableStat(db *sql.DB, ch chan<- prometheus.Metric) error
- func ScrapeUserStat(db *sql.DB, ch chan<- prometheus.Metric) error
Constants ¶
This section is empty.
Variables ¶
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.
Source Files ¶
- binlog.go
- collector.go
- engine_innodb.go
- engine_tokudb.go
- global_status.go
- global_variables.go
- heartbeat.go
- info_schema.go
- info_schema_auto_increment.go
- info_schema_clientstats.go
- info_schema_innodb_metrics.go
- info_schema_innodb_sys_tablespaces.go
- info_schema_processlist.go
- info_schema_query_response_time.go
- info_schema_tables.go
- info_schema_tablestats.go
- info_schema_userstats.go
- perf_schema.go
- perf_schema_events_statements.go
- perf_schema_events_waits.go
- perf_schema_file_events.go
- perf_schema_file_instances.go
- perf_schema_index_io_waits.go
- perf_schema_table_io_waits.go
- perf_schema_table_lock_waits.go
- slave_status.go