Track version of Elasticsearch server used by self hosted clients
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"
}
...
}
Useful links
- https://docs.gitlab.com/ee/development/service_ping
- https://docs.gitlab.com/ee/development/service_ping/implement.html
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
- Checkout the branch of this MR
- Enable Advanced Search if it's not configured
- Execute this command in the console:
Gitlab::UsageData.data[:advanced_search]
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #338726 (closed)
Edited by Dmitry Gruzd