Add +x to 'debian/rules'

Commit adds +x to 'debian/rules' as it's required by dpkg-buildpackage command.

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
Fix - 'status' in init script doesn't work properly

Init script reports incorrect 'status' of Diamond on Hosts when Host has LXCs
with Diamond running inside. This is caused by not using PIDFILE.
Commit fixes this issue by passing PIDFILE.

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
passenger_stats collector - rewrite

This is a slight rewrite of collector of passenger-stats.
Most notablechanges are:
  * ditch unnecessary subprocess() calls - use Python!
  * use compiled RE
  * clean up and re-write code - pretty much all of it
  * fix names of emitted metrics
  * collector no longer ends up as a Zombie process

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
Small rewrite of RMQ PubSub handler

Commit is a small rewrite of RMQ PubSub handler and aims it to be more durable
and reliable. It also adds support for multiple RMQ servers in order to achieve
"HA". However, they all have to be configured in exactly the same way(which is
likely anyway).

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
Rewrite of conntrack collector

Commit is a rewrite of conntrack collector. syscall to sysctl is
gone and replaced with open() of files in question. Also, count and maximum values
are being collected now instead of just count.

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
Add 'memory_lxc' collector

Commit adds a new collector which collects per LXC memory utilization as well as
memory limit from '/sys/fs/cgroup/lxc'.

It produces metrics:
 * lxc.<LXC_NAME>.memory.limit_in_bytes
 * lxc.<LXC_NAME>.memory.usage_in_bytes

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
Merge pull request #605 from zstyblik/pr-20140508

multiple fixes - init script, passenger_stats, RMQ pubsub handler