{ "info": { "author": "David Eyk", "author_email": "deyk@crossway.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License" ], "description": "Introduction\n============\n\n`django-zesty-metrics` is a middleware suite that uses `statsd` to\nreport important metrics to a StatD server.\n\nOut of the box, it will track:\n\n- response times individually by view, and in aggregate\n- aggregate user activity data\n\nWith some minor configuration, it will track:\n\n- individual user activity data\n- arbitrary metrics\n\n\nRequirements\n============\n\n- Django_ >= 1.4\n- statsd_ == 1.0 (StatsD client; `GitHub `)\n- `Graphite server`_ (docs_)\n- `Statsd server`_ (`blog post`_)\n\n\n.. _Django: https://pypi.python.org/pypi/Django/\n.. _statsd: https://pypi.python.org/pypi/statsd\n.. _Graphite server: http://graphite.wikidot.com\n.. _docs: https://graphite.readthedocs.org/en/latest/\n.. _Statsd server: https://github.com/etsy/statsd\n.. _blog post: http://codeascraft.etsy.com/2011/02/15/measure-anything-measure-everything/\n\n\nInstallation\n============\n\nInstall with `pip install django-zesty-metrics`.\n\nAlternately, clone `the git repository`_ and execute `python setup.py install` within.\n\n.. _the git repository: https://github.com/Crossway/django-zesty-metrics\n\n\nConfiguration\n=============\n\nIn your Django settings:\n\n- Add ``zesty_metrics`` to the ``INSTALLED_APPS``\n- Add ``zesty_metrics.middleware.MetricsMiddleware`` to ``MIDDLEWARE_CLASSES``\n- Set the following, as needed:\n - ``STATSD_HOST``, default ``localhost``\n - ``STATSD_PORT``, default ``8125``\n - ``STATSD_PREFIX``, default ``None``\n - ``ZESTY_TRACKING_CLASSES``, default ``('zesty_metrics.tracking.UserAccounts',)``\n- Run ``syncdb`` (or ``migrate`` if you use South).\n\nSet up a cron job to run the ``report_metrics`` django-admin.py\ncommand regularly. At least once a day, but you can update it as often\nas you want. This command reports metrics from the trackers that you\nconfigure in ``ZESTY_TRACKING_CLASSES``.\n\nIf you want to send metrics from the client-side, hook up the default URLs in\nyour ``urls.py``::\n\n urlpatterns = patterns(\n '',\n url(r'^metrics/', include('zesty_metrics.urls')),\n )\n\n\n\nAcknowledgements\n================\n\nLots of ideas were taken from `django-statsd`_ and `django-munin`_.\n\n.. _django-statsd: https://github.com/WoLpH/django-statsd\n.. _django-munin: https://github.com/ccnmtl/django-munin\n\n\nCHANGELOG\n=========\n\n- 0.3.1:\n - Added missing migrations and management commands.\n\n- 0.3:\n - Added tests! Many things that didn't work now work.\n - Added DailyActivityRecord for tracking daily activity.\n\n- 0.2: Added latency tracking, myriad bug-fixes.\n\n- 0.1.1: Fixed \"NO VALUE\" error in ``report_metrics`` command when values were\n pulled from the cache.\n\n- 0.1: Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Crossway/django-zesty-metrics", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-zesty-metrics", "package_url": "https://pypi.org/project/django-zesty-metrics/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-zesty-metrics/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Crossway/django-zesty-metrics" }, "release_url": "https://pypi.org/project/django-zesty-metrics/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "Zesty metrics collection and Statsd integration for Django.", "version": "0.3.1" }, "last_serial": 1623085, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6a0d83bedc9ff73e6fdc79abbd42d092", "sha256": "87db07f9e5fcf379f2fe1fa5ae5efbf9d1d089321961b48a2eb139e2fe7efc7d" }, "downloads": -1, "filename": "django-zesty-metrics-0.1.tar.gz", "has_sig": false, "md5_digest": "6a0d83bedc9ff73e6fdc79abbd42d092", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5481, "upload_time": "2013-04-25T14:34:03", "url": "https://files.pythonhosted.org/packages/49/a9/8ff29544dabb09d7aae195f4f7556d1551084fa736e8325fbf7089ba5306/django-zesty-metrics-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "338e1399c35bc0727acfe9697a5208b5", "sha256": "7871b9dea95b39eec253f9f7c7468f1a9babf60d01624087918e54b7413a5f5b" }, "downloads": -1, "filename": "django-zesty-metrics-0.1.1.tar.gz", "has_sig": false, "md5_digest": "338e1399c35bc0727acfe9697a5208b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6663, "upload_time": "2013-05-06T20:57:54", "url": "https://files.pythonhosted.org/packages/8b/07/bc5aea9cf6ea27cb3cb64928ab5bff81d6afb10c59ea2844eefaff7cd5fe/django-zesty-metrics-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "01b4ba38952c34ca2b01d6703646e0b9", "sha256": "bc2c53404436df8f231a012079c9f6c30bfa192ed9e0cbaac2f8b57f448508d2" }, "downloads": -1, "filename": "django-zesty-metrics-0.2.tar.gz", "has_sig": false, "md5_digest": "01b4ba38952c34ca2b01d6703646e0b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7926, "upload_time": "2014-08-06T19:48:18", "url": "https://files.pythonhosted.org/packages/be/fd/6630aeff96d4cbc0fc0e7e1a506e8a156b8ebd6e9801b8193aea0654b6af/django-zesty-metrics-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f59f5b242389c70b5990db262516467f", "sha256": "ccd457449d6915c444b09bed5a1958654ae91c4d8388d3de31a8ddf062db214e" }, "downloads": -1, "filename": "django-zesty-metrics-0.3.tar.gz", "has_sig": false, "md5_digest": "f59f5b242389c70b5990db262516467f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10430, "upload_time": "2015-07-06T20:38:34", "url": "https://files.pythonhosted.org/packages/47/f4/f665307d7a7f84bb2394247bf819f4d10728e0fd87dfda84b7850896d074/django-zesty-metrics-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "1ce370b1c9523841dc516435b9b32573", "sha256": "544c1b43cbc1b1648602f43c46a33f87b2b2c51aa705e1d1c71a09fd19e9c640" }, "downloads": -1, "filename": "django-zesty-metrics-0.3.1.tar.gz", "has_sig": false, "md5_digest": "1ce370b1c9523841dc516435b9b32573", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11889, "upload_time": "2015-07-07T19:03:28", "url": "https://files.pythonhosted.org/packages/7c/93/99eef52eba22541b829cd5d4b6218e9960b0fa3c07f03f93a7a9b11f585f/django-zesty-metrics-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1ce370b1c9523841dc516435b9b32573", "sha256": "544c1b43cbc1b1648602f43c46a33f87b2b2c51aa705e1d1c71a09fd19e9c640" }, "downloads": -1, "filename": "django-zesty-metrics-0.3.1.tar.gz", "has_sig": false, "md5_digest": "1ce370b1c9523841dc516435b9b32573", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11889, "upload_time": "2015-07-07T19:03:28", "url": "https://files.pythonhosted.org/packages/7c/93/99eef52eba22541b829cd5d4b6218e9960b0fa3c07f03f93a7a9b11f585f/django-zesty-metrics-0.3.1.tar.gz" } ] }