{ "info": { "author": "Chris Heisel", "author_email": "cheisel@kabbage.com", "bugtrack_url": null, "classifiers": [], "description": "# Django Datadog\n\n* A simple Django middleware for submitting timings and exceptions to Datadog.\n* A helper class, Stats, that creates an API and Statsd connection to Datadog from Django settings\n\n## Installation\n\nDownload the code into your project and install it.\n\n```bash\ngit clone git://github.com/conorbranagan/django-datadog.git\ncd django-datadog\npython setup.py install\n```\n\nAdd `djdatadog` to your list of installed apps.\n\n```python\nINSTALLED_APPS += ('djdatadog')\n```\n\nAdd the following configuration to your projects' `settings.py` file:\n\n```python\nDATADOG_API_KEY = \"apikey\"\nDATADOG_APP_KEY = \"appkey\"\nDATADOG_APP_NAME = \"appname\" #name your metrics will be tagged with\nDATADOG_HOST = \"yourddhost\" #for statsd metrics\nDATADOG_PORT = \"8125\" #for statsd metrics\n```\n\nThe API and app keys can be found at https://app.datadoghq.com/account/settings#api\n\nAdd the Datadog request handler to your middleware in `settings.py`.\n\n```python\nMIDDLEWARE_CLASSES += ('djdatadog.middleware.DatadogMiddleware')\n```\n\n## Usage\n\n### Stats class\n\n```\nfrom djdatadog.helpers import Stats\n\ns = Stats()\ns.increment(\"my_other_metric\", 4, [\"tag1\", \"tag2\"])\n```\n\nFor information on the statsd interface, see the [Datadog Python Client documentation](http://datadogpy.readthedocs.org/en/latest/#datadog-dogstatsd-module)\n\n### Middleware\nOnce the middlewhere installed, you'll start receiving events in your Datadog\nstream in the case of an app exception. Here's an example:\n\n![example django exception](https://dl.dropbox.com/u/126553/django-datadog.png)\n\nYou will also have new timing metrics available:\n\n- `my_app.request_time.{avg,max,min}`\n- `my_app.errors.500`\n- `my_app.errors.404`\n- `my_app.errors.403`\n- `my_app.errors.405`\n- `my_app.errors.410`\n\n\nMetrics are tagged with `path:/path/to/view`\n\nNote: `my_app` will be replaced by whatever value you give for `DATADOG_APP_NAME`.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-datadog", "package_url": "https://pypi.org/project/django-datadog/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-datadog/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/django-datadog/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "simple Django middleware for submitting timings and exceptions to Datadog.", "version": "1.0.1" }, "last_serial": 1652331, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "592b1348e75572763d4cb5e7436c5ebe", "sha256": "3adce28e42494a07427cd3cfca6c44a576264c821d7e4a65b96b261e6fbd57e6" }, "downloads": -1, "filename": "django-datadog-1.0.tar.gz", "has_sig": false, "md5_digest": "592b1348e75572763d4cb5e7436c5ebe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3599, "upload_time": "2015-07-27T21:10:17", "url": "https://files.pythonhosted.org/packages/fb/55/96baf57493752d34cd10bba439eee75a608bfddc43f7abc8f2b3d4823b39/django-datadog-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e85ad049ddc232f9257e6607616b762d", "sha256": "c54afd562b0e7fa0cc41896f9f209b1e18b5a73aa21b8a5565e48c33c1e6be1a" }, "downloads": -1, "filename": "django-datadog-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e85ad049ddc232f9257e6607616b762d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3804, "upload_time": "2015-07-27T21:32:08", "url": "https://files.pythonhosted.org/packages/6f/bb/ca4c4990093de73488d2f557ed0cc4439c06dd3b22c981cedd643cdd0d73/django-datadog-1.0.1.tar.gz" } ], "1.0.1rc1": [ { "comment_text": "", "digests": { "md5": "82596373094908de26a92dd8b44bb43e", "sha256": "a6d77849ebf8e5f86bfadf5fbca85bbcf4e641d5c408ef9f6888781f08791f26" }, "downloads": -1, "filename": "django-datadog-1.0.1rc1.tar.gz", "has_sig": false, "md5_digest": "82596373094908de26a92dd8b44bb43e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3821, "upload_time": "2015-07-27T21:30:12", "url": "https://files.pythonhosted.org/packages/f1/08/f7a8a04909ae41f384d6ae4d9559b8c072a61f9e5674c5045354ac2a8c52/django-datadog-1.0.1rc1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e85ad049ddc232f9257e6607616b762d", "sha256": "c54afd562b0e7fa0cc41896f9f209b1e18b5a73aa21b8a5565e48c33c1e6be1a" }, "downloads": -1, "filename": "django-datadog-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e85ad049ddc232f9257e6607616b762d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3804, "upload_time": "2015-07-27T21:32:08", "url": "https://files.pythonhosted.org/packages/6f/bb/ca4c4990093de73488d2f557ed0cc4439c06dd3b22c981cedd643cdd0d73/django-datadog-1.0.1.tar.gz" } ] }