cli icon indicating copy to clipboard operation
cli copied to clipboard

Telemetry: measure user behaviour when using Kyma CLI

Open tobiscr opened this issue 3 years ago • 3 comments

Description

We have to gain more information how customers are using the KYma CLI to get a better understanding how the CLI is primarily used. For measuring the user behaviour, a simple telemetry feature is required.

When the Kyma CLI gets installed, the customer will be asked once whether we want to transfer his user behaviour to a central Kyma CLI telemetry service.

AC:

  • Customer has the option to decide whether we wants to participate in the telemetry measuring or not. He has to make this decision just once and it's stored in his local Kyma CLI configuration.
    • If non-interactive mode is chosen and no persistent configuration for the CLI can be found, the telemetry is per default disabled
  • If telemetry is enabled, the CLI has to send a request to a central telemetry service which tracks the kind of command the user was calling. Following information have to me tracked:
    • Timestamp when the command was called
    • CLI version
    • Name of the executed command
    • Name of the used parameter flag
  • If the telemetry service has any technical issues or slow response times, the CLI command should not be delayed (calls to telemetry service have to happen completely asynchronously with well defined HTTP- and connection-timeouts)
  • No person data have to be tracked (e.g. no IP-address)
  • A telemetry service has to be implemented which includes following features
    • Service is public accessible
    • Exposes simple REST API which allows tracking the above mentione data and stores it in a database
    • Stored data have a retention time of 14 days
    • Rate Limiting has to be configured so that max 150 requests per IP address are accepted per day and max 10.000 requests at all per day.

Reasons

Gain statistics how the Kyma CLI is used.

Attachments

tobiscr avatar Jul 15 '22 09:07 tobiscr

If there is any problem with the request to the server, the actual command execution should never be influenced, no delay or crash

a-thaler avatar Jul 15 '22 09:07 a-thaler

This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions.

kyma-stale-bot[bot] avatar Sep 24 '22 09:09 kyma-stale-bot[bot]

This issue has been automatically closed due to the lack of recent activity. /lifecycle rotten

kyma-stale-bot[bot] avatar Oct 01 '22 10:10 kyma-stale-bot[bot]

This issue or PR has been automatically marked as stale due to the lack of recent activity. Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Close this issue or PR with /close

If you think that I work incorrectly, kindly raise an issue with the problem.

/lifecycle stale

kyma-bot avatar Dec 25 '22 09:12 kyma-bot

This issue or PR has been automatically closed due to the lack of activity. Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle stale

If you think that I work incorrectly, kindly raise an issue with the problem.

/close

kyma-bot avatar Jan 01 '23 09:01 kyma-bot

@kyma-bot: Closing this issue.

In response to this:

This issue or PR has been automatically closed due to the lack of activity. Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle stale

If you think that I work incorrectly, kindly raise an issue with the problem.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

kyma-bot avatar Jan 01 '23 09:01 kyma-bot

This issue or PR has been automatically marked as stale due to the lack of recent activity. Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Close this issue or PR with /close

If you think that I work incorrectly, kindly raise an issue with the problem.

/lifecycle stale

kyma-bot avatar Mar 10 '23 09:03 kyma-bot

This issue or PR has been automatically closed due to the lack of activity. Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle stale

If you think that I work incorrectly, kindly raise an issue with the problem.

/close

kyma-bot avatar Mar 17 '23 09:03 kyma-bot

@kyma-bot: Closing this issue.

In response to this:

This issue or PR has been automatically closed due to the lack of activity. Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle stale

If you think that I work incorrectly, kindly raise an issue with the problem.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

kyma-bot avatar Mar 17 '23 09:03 kyma-bot

We've decided to not implement this feature for now. The effort would be high and I'd say the gains are not worth it at this point.

Perhaps it will be nice to have that in the future when the adoption for the Modularization part is much higher.

janmedrek avatar Apr 18 '23 11:04 janmedrek