Skip to content

Track version of Elasticsearch server used by self hosted clients

Dmitry Gruzd requested to merge 338726-add-es-version-tracking into master

What does this MR do and why?

This MR adds an EE-only top-level usage data key called advanced_search:

{
  ...
  "advanced_search": {
    "distribution": "elasticsearch",
    "version": "7.9.3",
    "build_type": "docker",
    "lucene_version": "8.6.2"
  }
  ...
}

#338726 (closed)

Useful links

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

  1. Checkout the branch of this MR
  2. Enable Advanced Search if it's not configured
  3. Execute this command in the console:
    Gitlab::UsageData.data[:advanced_search]
  4. Ensure that it returns correct information about your elasticsearch cluster that looks like:
    => {:distribution=>"elasticsearch", :version=>"7.9.3", :build_type=>"docker", :lucene_version=>"8.6.2"}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #338726 (closed)

Edited by Dmitry Gruzd

Merge request reports