Restart agent if it uses too much memory:

Augment the Watchdog to restart the agent process
not only if it has been running longer than the restart
interval, but also if the agent process exceeds a
memory threshold.

The obvious way to do this would be setrlimit with a max
RSS size, and allow the process to die with a MemoryError
when it is exceeded, but the Tornado library being used
swallows MemoryErrors and allows the process to continue.

In order to ensure the process is terminated, the current
memory usage is checked in the Watchdog-reset method, and
the process is aborted if the threshold is exceeded.
Added explicit declaration of supervisor file in deb script
Added Gearman agent
Fixed issues in push-request comments as well as pep8/pyflake compliant now.
altered some example yaml files as per doc changes and updated mcache to no longer auto-tag unless using old config
Merge pull request #429 from echohead/memory-watchdog

Restart agent if it uses too much memory:
3.7.0
IIS: Use total values from WMI and calculate rates in the agent
Exit code should be 1 if there is an error in a checks.d or if the flush_count is 0 fix #467
Better info page.

* Display the last 5 logged lines.
* Add a method to the AgentCheck model to create warning messages that will be displayed in the info page.
A useful comment
Use the new warning method for some checks
Merge pull request #465 from DataDog/agent_iis_rates

IIS: Use total values from WMI and calculate rates in the agent
IIS: Use total values from WMI and calculate rates in the agent
IIS: Use total bytes values to calculate rates
IIS: Always cast values to a float
3.6.4
Tag IIS metrics by site
IIS: Don't try to normalize site name, use iis_site for metrics
IIS: By default use _Total, but allow a configurable list of sites