-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ResponseOps] add parallel number arrays to task manager metric histograms #176881
[ResponseOps] add parallel number arrays to task manager metric histograms #176881
Conversation
/ci |
6929e32
to
ccda136
Compare
/ci |
1 similar comment
/ci |
/ci |
1 similar comment
/ci |
9fe23ba
to
0dff653
Compare
/ci |
/ci |
1 similar comment
/ci |
/ci |
0dff653
to
f3697f3
Compare
/ci |
1 similar comment
/ci |
…grams towards: elastic/response-ops-team#151 As we've found the elasticsearch histogram mapping type to be difficult to use in practice, we're switching to an "array of numbers" approach as well. We'll eventually remove the histograms, once we ensure they aren't being used.
f3697f3
to
425a808
Compare
/ci |
@@ -23,6 +23,7 @@ export class SimpleHistogram { | |||
private maxValue: number; | |||
private bucketSize: number; | |||
private histogramBuckets: Bucket[] = []; | |||
private allValues: number[] = []; |
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.
To track the actual values, we just changed the SimpleHistogram class we use to create histogram shapes, to also track each value passed in. And add getAllValues()
to return it.
Pinging @elastic/response-ops (Team:ResponseOps) |
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.
LGTM! Ran locally and was able to see the raw histogram values in /api/task_manager/metrics
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Canvas Sharable Runtime
History
To update your PR or re-run it, just comment with: |
towards: https://github.com/elastic/response-ops-team/issues/151
Summary
As we've found the elasticsearch histogram mapping type to be difficult to use in practice, we're switching to an "array of numbers" approach - keeping the histograms for now. We'll eventually remove the histograms, once we ensure they aren't being used.