Add statsd metrics addon

This commit is contained in:
Guewen Baconnier
2016-11-04 10:30:10 +01:00
parent 23634feb46
commit d53ef3de37
6 changed files with 152 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License
============================
Monitoring: Statsd metrics
============================
Send metrics to a Statsd (or Statsd compatible) server.
Currently, it sends:
* time taken to process a click on a button
* time taken to process a workflow signal
* time taken by other requests
Configuration
=============
Activate with the environment variable:
* ``ODOO_STATSD=1``
Configure Statsd:
* ``STATSD_HOST=host``
* ``STATSD_PORT=port``
Configure differentiator:
* ``STATSD_CUSTOMER`` must contain the name of the client
* ``STATSD_ENVIRONMENT`` might contain the name of the environment, by
default, it will use the ``server_environment``'s one