Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom DISTRIBUTION metric #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dnlserrano
Copy link

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

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 lexmag#46
@dnlserrano
Copy link
Author

Can you please review @lexmag? 🙏 Thanks for the library, btw. 😄

@keathley
Copy link

@dnlserrano I've incorporated this PR into my fork here: https://github.com/keathley/statix. I'm planning on maintaining that fork going forward.

@dnlserrano
Copy link
Author

Great news, thanks @keathley! 🥳

@mtrudel
Copy link

mtrudel commented Mar 13, 2024

Any chance to have this integrated & released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom metric types (e.g. datadog "distributions")
3 participants