{"id":13509472,"url":"https://github.com/adamkittelson/dogstatsd-elixir","last_synced_at":"2025-10-21T18:54:39.090Z","repository":{"id":22977172,"uuid":"26327307","full_name":"adamkittelson/dogstatsd-elixir","owner":"adamkittelson","description":"An Elixir client for DogStatsd  https://www.datadoghq.com/","archived":false,"fork":false,"pushed_at":"2023-01-19T00:52:12.000Z","size":31,"stargazers_count":40,"open_issues_count":6,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-21T18:54:24.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/adamkittelson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-07T16:16:41.000Z","updated_at":"2025-01-27T19:12:43.000Z","dependencies_parsed_at":"2023-02-10T19:15:20.271Z","dependency_job_id":null,"html_url":"https://github.com/adamkittelson/dogstatsd-elixir","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/adamkittelson/dogstatsd-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamkittelson%2Fdogstatsd-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamkittelson%2Fdogstatsd-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamkittelson%2Fdogstatsd-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamkittelson%2Fdogstatsd-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamkittelson","download_url":"https://codeload.github.com/adamkittelson/dogstatsd-elixir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamkittelson%2Fdogstatsd-elixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280317282,"owners_count":26309997,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-01T02:01:08.283Z","updated_at":"2025-10-21T18:54:39.050Z","avatar_url":"https://github.com/adamkittelson.png","language":"Elixir","funding_links":[],"categories":["Third Party APIs"],"sub_categories":[],"readme":"\ndogstatsd-elixir\n==============\n\nA client for DogStatsd, an extension of the StatsD metric server for Datadog.\n\n[![Build Status](https://travis-ci.org/adamkittelson/dogstatsd-elixir.svg?branch=master)](https://travis-ci.org/adamkittelson/dogstatsd-elixir)\n[![Coverage Status](https://coveralls.io/repos/adamkittelson/dogstatsd-elixir/badge.png?branch=master)](https://coveralls.io/r/adamkittelson/dogstatsd-elixir?branch=master)\n\nQuick Start Guide\n-----------------\n\nFirst install the library:\n\n  1. Add dogstatsd to your `mix.exs` dependencies:\n\n      ```elixir\n      def deps do\n        [\n          {:dogstatsd, \"0.0.3\"}\n        ]\n      end\n      ```\n\n  2. Add `:dogstatsd` to your application dependencies:\n\n      ```elixir\n      def application do\n        [applications: [:dogstatsd]]\n      end\n      ```\n\nThen start instrumenting your code:\n\n``` elixir\n# Require the dogstatsd module.\nrequire DogStatsd\n\n# Configure DogStatsd.\n{:ok, statsd} = DogStatsd.new(\"localhost\", 8125)\n\n# Increment a counter.\nDogStatsd.increment(statsd, \"page.views\")\n\n# Record a gauge 50% of the time.\nDogStatsd.gauge(statsd, \"users.online\", 123, %{sample_rate: 0.5})\n\n# Sample a histogram\nDogStatsd.histogram(statsd, \"file.upload.size\", 1234)\n\n# Time a block of code\nDogStatsd.time(statsd, \"page.render\") do\n  render_page('home.html')\nend\n\n# Send several metrics at the same time\n# All metrics will be buffered and sent in one packet when the block completes\nDogStatsd.batch(statsd, fn(s) -\u003e\n  s.increment(statsd, \"page.views\")\n  s.gauge(statsd, \"users.online\", 123)\nend)\n\n# Tag a metric.\nDogStatsd.histogram(statsd, \"query.time\", 10, %{tags: [\"version:1\"]})\n```\n\nYou can also post events to your stream. You can tag them, set priority and even aggregate them with other events.\n\nAggregation in the stream is made on hostname/event_type/source_type/aggregation_key.\n\n``` elixir\n# Post a simple message\nDogStatsd.event(statsd, \"There might be a storm tomorrow\", \"A friend warned me earlier.\")\n\n# Cry for help\nDogStatsd.event(statsd, \"SO MUCH SNOW\", \"Started yesterday and it won't stop !!\", %{alert_type: \"error\", tags: [\"urgent\", \"endoftheworld\"]})\n```\n\n\nFeedback\n--------\n\nTo suggest a feature, report a bug, or general discussion, head over\n[here](http://github.com/adamkittelson/dogstatsd-elixir/issues/).\n\n\nChange Log\n----------\n\n- 0.0.1\n    - Initial release.\n\n\nCredits\n-------\n\ndogstatsd-elixir is a port of the [Ruby DogStatsd client](https://github.com/DataDog/dogstatsd-ruby)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamkittelson%2Fdogstatsd-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamkittelson%2Fdogstatsd-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamkittelson%2Fdogstatsd-elixir/lists"}