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

[ResponseOps] add parallel number arrays to task manager metric histograms #176881

Merged
merged 3 commits into from
Apr 1, 2024

Conversation

pmuellr
Copy link
Member

@pmuellr pmuellr commented Feb 14, 2024

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.

@pmuellr
Copy link
Member Author

pmuellr commented Feb 14, 2024

/ci

@pmuellr pmuellr force-pushed the alerting/ro-team-151-non-histogram branch from 6929e32 to ccda136 Compare February 20, 2024 14:04
@pmuellr pmuellr added the ci:cloud-deploy Create or update a Cloud deployment label Feb 20, 2024
@pmuellr
Copy link
Member Author

pmuellr commented Feb 20, 2024

/ci

1 similar comment
@pmuellr
Copy link
Member Author

pmuellr commented Feb 20, 2024

/ci

@pmuellr pmuellr added the ci:project-deploy-elasticsearch Create an Elasticsearch Serverless project label Feb 21, 2024
@pmuellr
Copy link
Member Author

pmuellr commented Feb 21, 2024

/ci

1 similar comment
@pmuellr
Copy link
Member Author

pmuellr commented Feb 21, 2024

/ci

@pmuellr
Copy link
Member Author

pmuellr commented Feb 21, 2024

/ci

@pmuellr pmuellr removed the ci:cloud-deploy Create or update a Cloud deployment label Feb 21, 2024
@pmuellr
Copy link
Member Author

pmuellr commented Feb 21, 2024

/ci

1 similar comment
@pmuellr
Copy link
Member Author

pmuellr commented Feb 22, 2024

/ci

@pmuellr pmuellr added ci:project-deploy-observability Create an Observability project ci:project-persist-deployment Persist project deployment indefinitely and removed ci:project-deploy-elasticsearch Create an Elasticsearch Serverless project labels Feb 22, 2024
@pmuellr
Copy link
Member Author

pmuellr commented Feb 22, 2024

/ci

@pmuellr pmuellr closed this Feb 22, 2024
@pmuellr pmuellr reopened this Feb 22, 2024
@pmuellr pmuellr force-pushed the alerting/ro-team-151-non-histogram branch from 0dff653 to f3697f3 Compare February 22, 2024 22:48
@pmuellr
Copy link
Member Author

pmuellr commented Feb 23, 2024

/ci

1 similar comment
@pmuellr
Copy link
Member Author

pmuellr commented Feb 23, 2024

/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.
@pmuellr pmuellr force-pushed the alerting/ro-team-151-non-histogram branch from f3697f3 to 425a808 Compare March 11, 2024 21:57
@pmuellr pmuellr added ci:build-cloud-image ci:build-serverless-image and removed ci:project-deploy-observability Create an Observability project ci:project-persist-deployment Persist project deployment indefinitely labels Mar 12, 2024
@pmuellr
Copy link
Member Author

pmuellr commented Mar 12, 2024

/ci

@@ -23,6 +23,7 @@ export class SimpleHistogram {
private maxValue: number;
private bucketSize: number;
private histogramBuckets: Bucket[] = [];
private allValues: number[] = [];
Copy link
Member Author

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.

@pmuellr pmuellr marked this pull request as ready for review March 14, 2024 21:09
@pmuellr pmuellr requested a review from a team as a code owner March 14, 2024 21:09
@pmuellr pmuellr added Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.14.0 labels Mar 14, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

Copy link
Contributor

@ymao1 ymao1 left a 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

@pmuellr pmuellr requested review from adcoelho and ersin-erdal and removed request for adcoelho March 19, 2024 21:38
@pmuellr
Copy link
Member Author

pmuellr commented Mar 29, 2024

@elasticmachine merge upstream

@pmuellr
Copy link
Member Author

pmuellr commented Apr 1, 2024

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

kibana-ci commented Apr 1, 2024

💚 Build Succeeded

  • Buildkite Build
  • Commit: 7744b49
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-176881-7744b492b6cd

Metrics [docs]

Canvas Sharable Runtime

The Canvas "shareable runtime" is an bundle produced to enable running Canvas workpads outside of Kibana. This bundle is included in third-party webpages that embed canvas and therefor should be as slim as possible.

id before after diff
module count - 5827 +5827
total size - 6.5MB +6.5MB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@pmuellr pmuellr merged commit b94d718 into elastic:main Apr 1, 2024
35 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:build-cloud-image ci:build-serverless-image Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants