-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Telemetry] Use GET /
to fetch the Cluster UUID
#145536
[Telemetry] Use GET /
to fetch the Cluster UUID
#145536
Conversation
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
Pinging @elastic/kibana-core (Team:Core) |
const body = await esClient.info({ filter_path: 'cluster_uuid' }); | ||
return [{ clusterUuid: body.cluster_uuid }]; |
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.
Seems quite better, performance-wise 😅
(cherry picked from commit 5a2c45e)
(cherry picked from commit 5a2c45e)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…45710) # Backport This will backport the following commits from `main` to `8.5`: - [[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)](#145536) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2022-11-18T10:55:51Z","message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Feature:Telemetry","release_note:skip","backport:all-open","v8.7.0"],"number":145536,"url":"https://github.com/elastic/kibana/pull/145536","mergeCommit":{"message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145536","number":145536,"mergeCommit":{"message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…45711) # Backport This will backport the following commits from `main` to `8.6`: - [[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)](#145536) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2022-11-18T10:55:51Z","message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Feature:Telemetry","release_note:skip","backport:all-open","v8.7.0"],"number":145536,"url":"https://github.com/elastic/kibana/pull/145536","mergeCommit":{"message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145536","number":145536,"mergeCommit":{"message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
…145723) # Backport This will backport the following commits from `main` to `7.17`: - [[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)](#145536) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2022-11-18T10:55:51Z","message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Feature:Telemetry","release_note:skip","backport:all-open","v8.7.0","v8.5.2"],"number":145536,"url":"https://github.com/elastic/kibana/pull/145536","mergeCommit":{"message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145536","number":145536,"mergeCommit":{"message":"[Telemetry] Use `GET /` to fetch the Cluster UUID (#145536)","sha":"5a2c45ea9e282b88a0ca971a35a865401b7523cd"}},{"branch":"8.5","label":"v8.5.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/145710","number":145710,"state":"MERGED","mergeCommit":{"sha":"9178ee9ffe33c7549c9854fc3aaca6170a211312","message":"[8.5] [Telemetry] Use `GET /` to fetch the Cluster UUID (#145536) (#145710)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.5`:\n- [[Telemetry] Use `GET /` to fetch the Cluster UUID\n(#145536)](https://github.com/elastic/kibana/pull/145536)\n\n<!--- Backport version: 8.9.7 -->\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT [{\"author\":{\"name\":\"Alejandro Fernández\nHaro\",\"email\":\"alejandro.haro@elastic.co\"},\"sourceCommit\":{\"committedDate\":\"2022-11-18T10:55:51Z\",\"message\":\"[Telemetry]\nUse `GET /` to fetch the Cluster UUID\n(#145536)\",\"sha\":\"5a2c45ea9e282b88a0ca971a35a865401b7523cd\",\"branchLabelMapping\":{\"^v8.7.0$\":\"main\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"Team:Core\",\"Feature:Telemetry\",\"release_note:skip\",\"backport:all-open\",\"v8.7.0\"],\"number\":145536,\"url\":\"https://github.com/elastic/kibana/pull/145536\",\"mergeCommit\":{\"message\":\"[Telemetry]\nUse `GET /` to fetch the Cluster UUID\n(#145536)\",\"sha\":\"5a2c45ea9e282b88a0ca971a35a865401b7523cd\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v8.7.0\",\"labelRegex\":\"^v8.7.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/145536\",\"number\":145536,\"mergeCommit\":{\"message\":\"[Telemetry]\nUse `GET /` to fetch the Cluster UUID\n(#145536)\",\"sha\":\"5a2c45ea9e282b88a0ca971a35a865401b7523cd\"}}]}]\nBACKPORT-->\n\nCo-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>"}},{"url":"https://github.com/elastic/kibana/pull/145711","number":145711,"branch":"8.6","state":"OPEN"}]}] BACKPORT-->
Summary
Resolves #145528.
When backporting to 7.17, we need to intercept the PR (it'll likely fail anyway) and change the
const body
withconst { body }
For maintainers