Giter Site home page Giter Site logo

mysql-stats-to-graphite's Introduction

ss_get_mysql_stats.py

Purpose: Retrieve various parameters from a running MySQL instance

Install Requirements

pip install -r requirements.txt

###Usage: ss_get_mysql_stats.py [-h] --host HOST [--port PORT] [--user USER] [--password PASSWORD] [--heartbeat HEARTBEAT] [--no-replication-client] [--no-super] [--nocache] [--graphite-host GRAPHITE_HOST] [--graphite-port GRAPHITE_PORT] [--use-graphite]

###Sample Usage:
ss_get_mysql_stats.py --host localhost --user root

###Allowed arguments:
-h, --help show this help message and exit
--host HOST Hostname to connect to (default: None)
--port PORT Database Port (default: 3306)
--user USER MySQL username (default: cactiuser)
--password PASSWORD MySQL password (default: cactiuser)
--heartbeat HEARTBEAT MySQL heartbeat table (see pt-heartbeat) (default: )
--no-replication-client Prevent the queries needing "REPLICATION CLIENT" from running (default: False)
--no-super Prevent the queries needing "SUPER" from running (default: False)
--nocache Do not cache results in a file (default: False)
--graphite-host GRAPHITE_HOST Graphite host (default: 127.0.0.1)
--graphite-port GRAPHITE_PORT Graphite port (default: 8080)
--use-graphite Send stats to Graphite (default: False)

Note: RDS users will probably need to use both the --no-replication-client and --no-super flags to prevent errors.

mysql-stats-to-graphite's People

Contributors

moss-palominodb avatar npillao-palominodb avatar damienclaveau avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.