tcollector: tcollector.reader.lines_collected metric now tracks the number of lines collected.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Debian package: expose the max-bytes and backup-count options in the debian init script.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Add percent used to inodes and block.

This makes more sense when graphing a cluster of hosts where size of the
partition varies.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Allow hbase_regionserver_jmx to work with 0.96 and later

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
postgresql.py:
- Map the metric names directly to the column names
- Turn on autocommit on the connection, or the stats wont update,
  as pg_stat_database is only updated at the start of a transcation.
- Fix a bug where only all databsae stats get mapped to the
  last database

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
prostats.py: cpu scaling support added.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
smart-stats.py add a check to exit gracefully if no block devices are found.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
elasticsearch.py: ES v1 supported.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Add a collector bridge for the basic graphite protocol.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Move hbase and hadoop to http /jmx collection

* remove the old java jars
* Create an http base class for hadoop metrics2
* Create hadoop namenode and datanode subclasses
* create hbase master and regionserver subclasses
* refactor some functions into utils.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Try to fallback to ordereddict for Python < 2.7
Properly handle the json module being missing.
netstat.py: handle multiple sets of data for the same data type, e.g. IcmpMsg.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
tcollector.py: revert default loglevel to INFO.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
hbase_regionserver.py: fix region metrics splitting

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
tcollector.py: refactor the way adding default tags works, so for any line,
it will add the tags if they're not already present.
This allows for defaults that can be overridden in a collector.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
iostat.py: add statistic metric svctm.
Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Add g1gc collector

G1 GC collector:
    script that scan G1 GC log and populate OpenTSDBmetrics into stdout

Dependencies:
    linux command: since
    python package: docopt

How it Works:
  1. Find the latest gc log under GC log directory (specified in "--log")
  2. Retrieve latest N lines of GC log (specified in "--limit")
  3. Write these N lines to be parsed into a tmp file (specified in "--tmp")
  4. Update since file (specified in "--since")
  5. Parse the log and put metrics into stdout, metric name will be prefied if "--prefix" is specified
  6. Remove this tmp file (specified in "--tmp")
  7. All errors happened during parsing will be logged in error file (specified in "--error")