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

How to provide the timestamp for submitting distribution? #231

Open
adamwrobel-ext-gd opened this issue Dec 7, 2023 · 1 comment
Open

Comments

@adamwrobel-ext-gd
Copy link

DataDog Web API for Distributions is like this:
https://docs.datadoghq.com/api/latest/metrics/#submit-distribution-points

points  [array]

Points relating to the distribution point metric. All points must be tuples with timestamp and a list of values (cannot be a string). Timestamps should be in POSIX time in seconds.

However, recordDistributionValue has no place for a timestamp kind of value. How can I do this?

@vickenty
Copy link
Contributor

Hi!

While it isn't possible to send distributions with a timestamp with statsd, you can do it using the Datadog API client library. You can find an example on the API page.

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

No branches or pull requests

2 participants