Add some missing cluster metrics to usage data
What does this MR do?
Adds the following new metrics to usage data:
- Instance level clusters enabled
- Instance level clusters disabled
- Clusters with a management project associated
Query plans
Enabled instance clusters (no date restriction):
- Full query: https://explain.depesz.com/s/J7EU
- Min ID: https://explain.depesz.com/s/tMkE
- Max ID: https://explain.depesz.com/s/bfQt
- Batch count: https://explain.depesz.com/s/4bph
Enabled instance clusters (with date restriction):
- Full query: https://explain.depesz.com/s/doWe
- Min ID: https://explain.depesz.com/s/py6d
- Max ID: https://explain.depesz.com/s/jIzB
- Batch count: https://explain.depesz.com/s/NaE2
Disabled instance clusters:
(identical to the above)
Clusters with management project (no date restriction)
- Full query: https://explain.depesz.com/s/liaQ
- Min ID: https://explain.depesz.com/s/pqR2
- Max ID: https://explain.depesz.com/s/KEg3
- Batch count: https://explain.depesz.com/s/pIsA
Clusters with management project (with date restriction)
- Full query: https://explain.depesz.com/s/LPTZ
- Min ID: https://explain.depesz.com/s/UTjn
- Max ID: https://explain.depesz.com/s/K75n
- Batch count: https://explain.depesz.com/s/HtSy
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. - [-] Tested in all supported browsers
- [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
- [-] Label as security and @ mention
@gitlab-com/gl-security/appsec
- [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
- [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖