-
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
[Logs Data Telemetry] Report telemetry events to telemetry service #192868
[Logs Data Telemetry] Report telemetry events to telemetry service #192868
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
c0a2903
to
ff34311
Compare
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
…2-report-events-to-telemetry # Conflicts: # x-pack/plugins/observability_solution/dataset_quality/server/services/data_telemetry/constants.ts
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.
Telemetry changes LGTM
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
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11063638207 |
…lastic#192868) Define the schema and register the [Usage Collector](https://docs.elastic.dev/telemetry/collection/snapshot-telemetry#creating-and-registering-usage-collector) to report Logs Data telemetry events introduced in elastic#189380. This introduces a telemetry [subsection](https://docs.elastic.dev/telemetry/kibana-snapshot-subsections) under `stats.stack_stats.kibana.plugins.logs_data`. (cherry picked from commit 5f49cb8)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ice (#192868) (#194244) # Backport This will backport the following commits from `main` to `8.x`: - [[Logs Data Telemetry] Report telemetry events to telemetry service (#192868)](#192868) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Abdul Wahab Zahid","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-27T02:47:02Z","message":"[Logs Data Telemetry] Report telemetry events to telemetry service (#192868)\n\nDefine the schema and register the [Usage\r\nCollector](https://docs.elastic.dev/telemetry/collection/snapshot-telemetry#creating-and-registering-usage-collector)\r\nto report Logs Data telemetry events introduced in\r\nhttps://github.com//pull/189380.\r\n\r\nThis introduces a telemetry\r\n[subsection](https://docs.elastic.dev/telemetry/kibana-snapshot-subsections)\r\nunder `stats.stack_stats.kibana.plugins.logs_data`.","sha":"5f49cb897281bdd729e25873875c9f57aa492a47","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-logs"],"title":"[Logs Data Telemetry] Report telemetry events to telemetry service","number":192868,"url":"https://github.com/elastic/kibana/pull/192868","mergeCommit":{"message":"[Logs Data Telemetry] Report telemetry events to telemetry service (#192868)\n\nDefine the schema and register the [Usage\r\nCollector](https://docs.elastic.dev/telemetry/collection/snapshot-telemetry#creating-and-registering-usage-collector)\r\nto report Logs Data telemetry events introduced in\r\nhttps://github.com//pull/189380.\r\n\r\nThis introduces a telemetry\r\n[subsection](https://docs.elastic.dev/telemetry/kibana-snapshot-subsections)\r\nunder `stats.stack_stats.kibana.plugins.logs_data`.","sha":"5f49cb897281bdd729e25873875c9f57aa492a47"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192868","number":192868,"mergeCommit":{"message":"[Logs Data Telemetry] Report telemetry events to telemetry service (#192868)\n\nDefine the schema and register the [Usage\r\nCollector](https://docs.elastic.dev/telemetry/collection/snapshot-telemetry#creating-and-registering-usage-collector)\r\nto report Logs Data telemetry events introduced in\r\nhttps://github.com//pull/189380.\r\n\r\nThis introduces a telemetry\r\n[subsection](https://docs.elastic.dev/telemetry/kibana-snapshot-subsections)\r\nunder `stats.stack_stats.kibana.plugins.logs_data`.","sha":"5f49cb897281bdd729e25873875c9f57aa492a47"}}]}] BACKPORT--> Co-authored-by: Abdul Wahab Zahid <[email protected]>
Summary
The PR defines the schema and registers the Usage Collector to report Logs Data telemetry events introduced in #189380.
This will introduce a telemetry subsection under
stats.stack_stats.kibana.plugins.logs_data
. This may likely be promoted tostats.logs_data
given the nature of the data and as the schema matures.How to test
logs-data-telemetry:collect-and-report-task
) has been run at least once.TELEMETRY_TASK_INTERVAL
can be changed e.g. to 1 minutes to run it immediately.[0].stats.stack_stats.kibana.plugins.logs_data
:Once the task (task id:
logs-data-telemetry:collect-and-report-task
) is run, the captured telemetry data can also be viewed in UI under Kibana -> Advanced Settings -> Global Settings -> Usage collection -> click "cluster data".