diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-14 12:09:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-14 12:09:25 +0300 |
commit | 3438be0998953aa87854371f42df3c1f47bc2544 (patch) | |
tree | 0a7ff932c9b0ddd62da8f72fb24bd657f02777de /doc/development/service_ping/metrics_dictionary.md | |
parent | ca1dcb848f19e854d2022587436fa5bc5f8ef933 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/service_ping/metrics_dictionary.md')
-rw-r--r-- | doc/development/service_ping/metrics_dictionary.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/development/service_ping/metrics_dictionary.md b/doc/development/service_ping/metrics_dictionary.md index 58cf95d12c3..f5975276cd8 100644 --- a/doc/development/service_ping/metrics_dictionary.md +++ b/doc/development/service_ping/metrics_dictionary.md @@ -265,7 +265,9 @@ The [Redis HLL metrics](implement.md#known-events-are-added-automatically-in-ser A YAML metric definition is required for each metric. A dedicated generator is provided to create metric definitions for Redis HLL events. -The generator takes `category` and `event` arguments, as the root key is `redis_hll_counters`, and creates two metric definitions for weekly and monthly time frames: +The generator takes `category` and `events` arguments, as the root key is `redis_hll_counters`, and creates two metric definitions for each of the events (for weekly and monthly time frames): + +**Single metric example** ```shell bundle exec rails generate gitlab:usage_metric_definition:redis_hll issues count_users_closing_issues @@ -273,6 +275,16 @@ create config/metrics/counts_7d/count_users_closing_issues_weekly.yml create config/metrics/counts_28d/count_users_closing_issues_monthly.yml ``` +**Multiple metrics example** + +```shell +bundle exec rails generate gitlab:usage_metric_definition:redis_hll issues count_users_closing_issues count_users_reopening_issues +create config/metrics/counts_7d/count_users_closing_issues_weekly.yml +create config/metrics/counts_28d/count_users_closing_issues_monthly.yml +create config/metrics/counts_7d/count_users_reopening_issues_weekly.yml +create config/metrics/counts_28d/count_users_reopening_issues_monthly.yml +``` + To create a metric definition used in EE, add the `--ee` flag. ```shell |