Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

stats: add option for percentiles to be emitted by client for distribution metrics #41

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

bbassingthwaite
Copy link

Datadog doesn't support Distribution metrics at the API layer, this PR introduces the ability for each client to calculate the percentiles locally and emit them as a gauge metric. This PR also adds an option to disable emitting Counts Per Buckets which for us is not useful and is quite expensive due to the number of tags that are emitted.

Fixes #17

Braden Bassingthwaite added 2 commits May 9, 2019 12:30
- Add option to control which percentiles for distribution metrics are calculated on the the client and to be emitted as a gauge

Fixes DataDog#17
@gbbr gbbr added the stats label May 13, 2019
@gbbr gbbr changed the title Add option for percentiles to be emitted by client for distribution metrics stats: add option for percentiles to be emitted by client for distribution metrics May 13, 2019
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I'm sure it will be well received. Someone from our metrics team should hopefully review this more thoroughly soon.

datadog.go Outdated Show resolved Hide resolved
stats_test.go Outdated Show resolved Hide resolved
@gbbr
Copy link
Contributor

gbbr commented May 14, 2019

@bbassingthwaite-va thank you for addressing those comments. We'll have to wait for someone from the metrics team to do a proper review of the functionality. I have notified the team and hopefully someone will do that soon. If not, feel free to ping me again and I'm happy to ping it forward :)

datadog.go Outdated Show resolved Hide resolved
datadog.go Outdated Show resolved Hide resolved
datadog_test.go Outdated Show resolved Hide resolved
stats_test.go Outdated Show resolved Hide resolved
- Change how percentiles are configured
- Change metric suffix
datadog.go Outdated Show resolved Hide resolved
Braden Bassingthwaite added 2 commits May 21, 2019 09:51
- Configure using strings to remain consistent with other datadog
config apis
- Change standard deviation to 1 and change comparison of expected and got to be within
a given threshold
- Link to the cumulative standard table to verify tests
@AlexandreYang
Copy link
Member

Thanks again for what has been in this PR. This feature has been discussed with our teams but we need some further explorations about this feature. So, at the moment, this PR will be set on hold, but we will to provide an update as soon as possible.

@codesuki
Copy link

@AlexandreYang hi, is there any progress on this feature? this is a blocker for us. what does datadog propose as a workaround for this issue #17 ?

@AlexandreYang
Copy link
Member

@codesuki Apologies for late reply. This is among the things we are going to work on in the coming days. Will post here progress on the topic.

@AlexandreYang
Copy link
Member

AlexandreYang commented Sep 26, 2019

There is a separate PR for disabling Counts Per Buckets: #52

cc @btbernheim

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

Successfully merging this pull request may close these issues.

How to Utilize Distribution Metrics in Datadog?
4 participants