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 upper_bound tag for the total count when collecting histograms buckets #3777

Merged
merged 2 commits into from
May 22, 2019

Conversation

mfpierre
Copy link
Contributor

What does this PR do?

When send_histograms_buckets is activated buckets are send adding upper_bound tag to the *.count metrics. The issue is the total count which does not include any tag is not queryable.

This PR add the tag upper_bound:none to properly query it along with buckets.

Motivation

Fix querying the total count on Datadog when collecting buckets

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached
  • Feature or bugfix must have tests
  • Git history must be clean
  • If PR adds a configuration option, it must be added to the configuration file.

@mfpierre mfpierre requested a review from a team May 16, 2019 14:24
@mfpierre mfpierre requested review from a team as code owners May 16, 2019 14:24
@mfpierre mfpierre changed the title Add upper_bound tag for the total count when collecting histograms bucket Add upper_bound tag for the total count when collecting histograms buckets May 16, 2019
@codecov
Copy link

codecov bot commented May 16, 2019

Codecov Report

Merging #3777 into master will decrease coverage by 2.68%.
The diff coverage is 50%.

@@            Coverage Diff            @@
##           master   #3777      +/-   ##
=========================================
- Coverage   86.79%   84.1%   -2.69%     
=========================================
  Files         729      62     -667     
  Lines       37019    4826   -32193     
  Branches     4325     590    -3735     
=========================================
- Hits        32129    4059   -28070     
+ Misses       3736     638    -3098     
+ Partials     1154     129    -1025

1 similar comment
@codecov
Copy link

codecov bot commented May 16, 2019

Codecov Report

Merging #3777 into master will decrease coverage by 2.68%.
The diff coverage is 50%.

@@            Coverage Diff            @@
##           master   #3777      +/-   ##
=========================================
- Coverage   86.79%   84.1%   -2.69%     
=========================================
  Files         729      62     -667     
  Lines       37019    4826   -32193     
  Branches     4325     590    -3735     
=========================================
- Hits        32129    4059   -28070     
+ Misses       3736     638    -3098     
+ Partials     1154     129    -1025

@codecov
Copy link

codecov bot commented May 16, 2019

Codecov Report

Merging #3777 into master will decrease coverage by 2.37%.
The diff coverage is 50%.

@@            Coverage Diff            @@
##           master   #3777      +/-   ##
=========================================
- Coverage   86.48%   84.1%   -2.38%     
=========================================
  Files         730      62     -668     
  Lines       37833    4826   -33007     
  Branches     4521     590    -3931     
=========================================
- Hits        32720    4059   -28661     
+ Misses       3877     638    -3239     
+ Partials     1236     129    -1107

@xlucas xlucas requested review from xlucas and removed request for a team May 16, 2019 17:17
@mfpierre mfpierre force-pushed the mfpierre/fix-total-histogram-count branch 2 times, most recently from 3751ecf to 450db5a Compare May 17, 2019 16:23
@mfpierre mfpierre force-pushed the mfpierre/fix-total-histogram-count branch from 450db5a to ace0b50 Compare May 20, 2019 09:58
@hkaj hkaj merged commit dbec73a into master May 22, 2019
@hkaj hkaj deleted the mfpierre/fix-total-histogram-count branch May 22, 2019 15:11
@hkaj hkaj restored the mfpierre/fix-total-histogram-count branch May 23, 2019 10:29
mfpierre added a commit that referenced this pull request May 31, 2019
…ckets (#3777)

* Add upper_bound tag for the total count when collecting histograms bucket

* Use append instead of + operator
@l0k0ms l0k0ms deleted the mfpierre/fix-total-histogram-count branch June 19, 2019 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants