{"id":13705538,"url":"https://github.com/saabeilin/sanic-statsd","last_synced_at":"2025-12-30T09:06:59.563Z","repository":{"id":57463868,"uuid":"124351553","full_name":"saabeilin/sanic-statsd","owner":"saabeilin","description":"A simple statsd plugin for Sanic","archived":false,"fork":false,"pushed_at":"2022-09-15T17:54:26.000Z","size":12,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T09:46:59.329Z","etag":null,"topics":["datadog","metrics","sanic","statsd"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saabeilin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-08T07:07:32.000Z","updated_at":"2023-07-27T06:54:03.000Z","dependencies_parsed_at":"2022-09-05T07:30:29.575Z","dependency_job_id":null,"html_url":"https://github.com/saabeilin/sanic-statsd","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saabeilin%2Fsanic-statsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saabeilin%2Fsanic-statsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saabeilin%2Fsanic-statsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saabeilin%2Fsanic-statsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saabeilin","download_url":"https://codeload.github.com/saabeilin/sanic-statsd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252534036,"owners_count":21763709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datadog","metrics","sanic","statsd"],"created_at":"2024-08-02T22:00:43.166Z","updated_at":"2025-12-30T09:06:54.517Z","avatar_url":"https://github.com/saabeilin.png","language":"Python","funding_links":[],"categories":["Extensions"],"sub_categories":["Monitoring"],"readme":"Gotta get get some metrics!\n===========================\n\nWe've gotta go fast, but sure we want to measure _how_ fast, right?\n\nThe common way to get the metrics is collect them via StatsD protocol\nto Grafana or DataDog. It's relatively easy to measure every endpoint\nby decorating it with `@statsd.timed()`, but why not automate it?\n\nSo once you've configured your statsd client, just pass it to this\nextension and get the generic metrics automagically.\n\n\n## Usage example\n\n\n```python\nfrom sanic import Sanic\nfrom sanic.response import text\n\nfrom sanic_statsd import SanicStatsD\n\nfrom yourapp.stats import configured_statsd_client as statsd\n\napp = Sanic()\nSanicStatsD(app, statsd=statsd, tags=['app:{}'.format(__name__)])\n\n\n@app.route(\"/\")\nasync def index(request):\n    return text(\"Ok\")\n\nif __name__ == \"__main__\":\n    app.run(host=\"0.0.0.0\", port=8000, debug=True)\n```\n\nAnd that's, basically, it!\n\n\n-----\n\nTODO:\n\n [ ] Document init parameters and implement examples of using of \n \n [ ] Implement support for statsd\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaabeilin%2Fsanic-statsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaabeilin%2Fsanic-statsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaabeilin%2Fsanic-statsd/lists"}