lexmag / statix

Fast and reliable Elixir client for StatsD-compatible servers
https://hexdocs.pm/statix
ISC License
275 stars 82 forks source link

Add support for custom DISTRIBUTION metric #62

Closed tenitski closed 3 years ago

tenitski commented 3 years ago

Example of usage follows:

iex> MyApp.Statix.distribution("rendering", 12, [])
:ok

From the Datadog documentation:

Unlike the HISTOGRAM metric type, which aggregates on the Agent during a given time interval, a DISTRIBUTION metric sends all the raw data during a time interval to Datadog, and aggregations occur server-side. Because the underlying data structure represents raw, unaggregated data, distributions provide two major features:

  • Calculation of percentile aggregations
  • Customization of tagging

https://docs.datadoghq.com/developers/metrics/types/?tab=distribution#definition

Closes #46

tenitski commented 3 years ago

Ops pushed it by accident here