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

[Telemetry] Report the Application Usage (time of usage + number of clicks) #57893

Closed

Conversation

afharo
Copy link
Member

@afharo afharo commented Feb 18, 2020

Summary

Add a plugin that retrieves the time (in minutes) and the number of clicks on each application inside Kibana and report it via telemetry.

It uses its own index to store the grouped events in the form of { timestamp, appId, numberOfClicks, minutesOfScreenTime }. Rolling up the information to saved objects for the entries older than 90 days (because the required reported data has 3 levels of aggregation: 30 days, 90 days and total).

The finally reported information to our telemetry service looks like below:

    "stack_stats": {
      "kibana": {
        "plugins": {
           ...
           "application_usage": {
             "logs": {
                 "clicks_total": 1000,
                 "clicks_30_days": 10,
                 "clicks_90_days": 100,
                 "minutes_on_screen_total": 58.93,
                 "minutes_on_screen_30_days": 10.23,
                 "minutes_on_screen_90_days": 30.0,
             },
             "apm": { ...},
             ...
           }
           ...
       }
  }

Fixes #52737

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

Pinging @elastic/pulse (Team:Pulse)

@afharo
Copy link
Member Author

afharo commented Feb 18, 2020

I'm pending some unit tests and I'll release it from the draft status

@afharo afharo force-pushed the telemetry/application-usage-plugin branch from 8f04bb7 to 0eaf763 Compare February 19, 2020 18:15
@afharo afharo marked this pull request as ready for review February 20, 2020 14:20
@afharo
Copy link
Member Author

afharo commented Feb 21, 2020

@elasticmachine merge upstream

@afharo afharo requested a review from Bamieh February 21, 2020 11:51
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@afharo
Copy link
Member Author

afharo commented Feb 21, 2020

After speaking with @Bamieh, we agreed it's better to make use of the UI-Metrics reporter. So I'll be migrating some of this logic there and will push an update.

@afharo
Copy link
Member Author

afharo commented Feb 28, 2020

Closing in favour of #58401

@afharo afharo closed this Feb 28, 2020
@afharo afharo deleted the telemetry/application-usage-plugin branch February 28, 2020 10:05
@lukeelmers lukeelmers added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Oct 1, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Telemetry release_note:enhancement Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add telemetry for application usage
4 participants