mysql-xray

command module
v0.0.0-...-d357e00 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

README

A small program that records some useful MySQL metrics. Currently, the contents of information_schema.INNODB_METRICS and information_schema.GLOBAL_STATUS is collected. The output is stored an SQLite database called ./current.db. Optionally, the metrics can also be printed in JSON on stdout.

Example of how to extract a single metric (uptime):

sqlite3 -csv current.db '
  SELECT datetime(ts, "unixepoch", "localtime"),value
  FROM Measurement WHERE id = (
    SELECT id FROM Metric WHERE name = "status.uptime"
  )'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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