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

[APM] Add filter to /has_data api #173382

Merged
merged 5 commits into from Dec 18, 2023

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Dec 14, 2023

Closes #154997

This PR adds a data tier filter to the /has_data api, thus limitting the number of shards being hit by the request.

@sorenlouv sorenlouv requested a review from a team as a code owner December 14, 2023 13:43
@botelastic botelastic bot added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Dec 14, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM, just a small comment.

@sorenlouv sorenlouv force-pushed the add-time-range-to-has-data-api branch 2 times, most recently from 5000f50 to 222099d Compare December 14, 2023 17:14
@sorenlouv sorenlouv changed the title [APM] Add timerange to /has_data api [APM] Add filter to /has_data api Dec 14, 2023
@sorenlouv sorenlouv force-pushed the add-time-range-to-has-data-api branch from 222099d to 8678a39 Compare December 14, 2023 22:47
Closes elastic#154997

Remove console.log

Fix

Use data_tier instead of timestamp

Improve naming

Undo change
@sorenlouv sorenlouv force-pushed the add-time-range-to-has-data-api branch from 0fd48bf to 437b17f Compare December 17, 2023 22:06
@achyutjhunjhunwala
Copy link
Contributor

achyutjhunjhunwala commented Dec 18, 2023

@sqren Can you please also backport this PR to 8.10
As it will solve - https://github.com/elastic/sdh-kibana/issues/4256#issuecomment-1858611918

Though we will have to ask the customer who is on 8.8 to upgrade. Still

@sorenlouv
Copy link
Member Author

sorenlouv commented Dec 18, 2023

@sqren Can you please also backport this PR to 8.10 As it will solve - elastic/sdh-kibana#4256 (comment)

Though we will have to ask the customer who is on 8.8 to upgrade. Still

No new releases are planned for 8.10.x afaict

@achyutjhunjhunwala
Copy link
Contributor

No new releases are planned for 8.10.x afaict

Ah true, then 8.12 atleast

@sorenlouv sorenlouv merged commit e7593c0 into elastic:main Dec 18, 2023
39 of 40 checks passed
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 18, 2023
Closes elastic#154997

This PR adds a data tier filter to the `/has_data` api, thus limitting
the number of shards being hit by the request.

(cherry picked from commit e7593c0)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.10 Backport failed because of merge conflicts
8.11 Backport failed because of merge conflicts
8.12

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 173382

Questions ?

Please refer to the Backport tool documentation

@sorenlouv sorenlouv deleted the add-time-range-to-has-data-api branch December 18, 2023 19:39
kibanamachine added a commit that referenced this pull request Dec 18, 2023
# Backport

This will backport the following commits from `main` to `8.12`:
- [[APM] Add filter to `/has_data` api
(#173382)](#173382)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Søren
Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2023-12-18T18:18:03Z","message":"[APM]
Add filter to `/has_data` api (#173382)\n\nCloses
#154997 PR adds a
data tier filter to the `/has_data` api, thus limitting\r\nthe number of
shards being hit by the
request.","sha":"e7593c0e46f1ce707c1b951f8d013e722ac79353","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v8.12.0","v8.10.5","Team:obs-ux-infra_services","v8.13.0","v8.11.4"],"number":173382,"url":"#173382
Add filter to `/has_data` api (#173382)\n\nCloses
#154997 PR adds a
data tier filter to the `/has_data` api, thus limitting\r\nthe number of
shards being hit by the
request.","sha":"e7593c0e46f1ce707c1b951f8d013e722ac79353"}},"sourceBranch":"main","suggestedTargetBranches":["8.12","8.10","8.11"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.10","label":"v8.10.5","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"#173382
Add filter to `/has_data` api (#173382)\n\nCloses
#154997 PR adds a
data tier filter to the `/has_data` api, thus limitting\r\nthe number of
shards being hit by the
request.","sha":"e7593c0e46f1ce707c1b951f8d013e722ac79353"}},{"branch":"8.11","label":"v8.11.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:fix Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.10.5 v8.11.4 v8.12.0 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Improve performance of GET /internal/apm/has_data
8 participants