elastic / cloud-on-k8s

Elastic Cloud on Kubernetes
Other
70 stars 708 forks source link

Disable telemetry in e2e tests #4067

Open pebrc opened 3 years ago

pebrc commented 3 years ago

We don't want to report telemetry data out of e2e test runs. Kibana has different settings depending on its version to achieve that:

When set to false Kibana stops reporting telemetry data and on newer version also stops serving the internal telemetry/v2/clusters/_stats route (tbd since which version)

The problem with disabling telemetry on older versions is that Kibana makes an optimise run which which leads to OOM as we don't run Kibana with enough resources to successfully complete the run.

A few options come to mind:

barkbay commented 3 years ago

I'm wondering if we could add an host alias to the podTemplate to force the telemetry server to be resolved as localhost :

  hostAliases:
  - ip: "127.0.0.1"
    hostnames:
    - "telemetry.elastic.co"
david-kow commented 3 years ago

Another option worth investigating is to try enabling sending telemetry data to staging cluster for E2E tests: https://github.com/elastic/kibana/blob/master/src/plugins/usage_collection/README.md#testing.