2021-03-06 14:50:04 +00:00
|
|
|
================
|
|
|
|
sprockets-statsd
|
|
|
|
================
|
|
|
|
|
|
|
|
.. include:: ../README.rst
|
|
|
|
|
2021-03-09 20:06:23 +00:00
|
|
|
Configuration
|
|
|
|
=============
|
|
|
|
The statsd connection is configured by the ``statsd`` application settings key. The default values can be set by
|
|
|
|
the following environment variables.
|
|
|
|
|
|
|
|
.. envvar:: STATSD_HOST
|
|
|
|
|
|
|
|
The host or IP address of the StatsD server to send metrics to.
|
|
|
|
|
|
|
|
.. envvar:: STATSD_PORT
|
|
|
|
|
|
|
|
The TCP port number that the StatsD server is listening on. This defaults to 8125 if it is not configured.
|
|
|
|
|
|
|
|
You can fine tune the metric payloads and the connector by setting additional values in the ``stats`` key of
|
|
|
|
:attr:`tornado.web.Application.settings`. See the :class:`sprockets_statsd.mixins.Application` class
|
|
|
|
documentation for a description of the supported settings.
|
|
|
|
|
2021-03-08 12:27:40 +00:00
|
|
|
Reference
|
|
|
|
=========
|
|
|
|
|
2021-03-09 20:06:23 +00:00
|
|
|
Mixin classes
|
|
|
|
-------------
|
|
|
|
.. autoclass:: sprockets_statsd.mixins.Application
|
|
|
|
:members:
|
|
|
|
|
|
|
|
.. autoclass:: sprockets_statsd.mixins.RequestHandler
|
|
|
|
:members:
|
|
|
|
|
|
|
|
Internals
|
2021-03-08 12:27:40 +00:00
|
|
|
---------
|
|
|
|
.. autoclass:: sprockets_statsd.statsd.Connector
|
|
|
|
:members:
|
|
|
|
|
|
|
|
.. autoclass:: sprockets_statsd.statsd.Processor
|
|
|
|
:members:
|
|
|
|
|
2021-03-06 14:50:04 +00:00
|
|
|
Release history
|
|
|
|
===============
|
|
|
|
|
|
|
|
.. include:: ../CHANGELOG.rst
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|