-
Notifications
You must be signed in to change notification settings - Fork 518
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 a _doc_count field for single-histogram metricsets #4647
Conversation
If a metricset is published with a single histogram, add a _doc_count field which is the sum of the histogram's counts.
c33483c
to
a846590
Compare
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
Codecov Report
@@ Coverage Diff @@
## master #4647 +/- ##
==========================================
- Coverage 76.10% 76.06% -0.05%
==========================================
Files 161 161
Lines 9892 9896 +4
==========================================
- Hits 7528 7527 -1
- Misses 2364 2369 +5
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good and I tested the change - everything works as expected against ES master
.
Since _doc_count
support was recently introduced, I also tested behavior against 7.9
ES. Writing the docs works fine, but running aggregations doesn't take the values into account. Since this impacts histogram functionality, I assume that Kibana would need to check for the ES version/indices when aggregating?
@simitt Kibana is only expected to work against ES versions of the same minor/major, so it's not expected to support ES 7.9 when running Kibana 7.12. As transaction histograms are experimental we don't need to worry about backwards compatibility either (AFAIK). |
Right! Perfectly fine then. |
6fa841f
to
2e355ff
Compare
Sorry about the force-push, forgot I was working on a non-draft PR. About to merge anyway. |
jenkins run the tests please |
1 similar comment
jenkins run the tests please |
* model: _doc_count for single histogram metricsets If a metricset is published with a single histogram, add a _doc_count field which is the sum of the histogram's counts. * systemtest: check _doc_count in txmetrics docs # Conflicts: # changelogs/head.asciidoc
[7.x] Add a _doc_count field for single-histogram metricsets (#4647)
Motivation/summary
If a metricset is published with a single histogram, add a
_doc_count
field which is the sum of the histogram's counts. This will enable us to remove somevalue_count
aggregations in the UI to determine the transaction count.Checklist
How to test these changes
_doc_count
in themtransaction.name
), and check that thedoc_count
value in each bucket matches the number of transaction events aggregated.Related issues
Closes #4474