diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-24 03:09:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-24 03:09:11 +0300 |
commit | 9e26af2dd956087e2a7cdcf47ef5f7824e13854f (patch) | |
tree | 611c07155be1a700af521ffe5e88f689f572a061 /doc/development/service_ping/troubleshooting.md | |
parent | 331cdcceef7bd3a5be9792a53131193d61329098 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/service_ping/troubleshooting.md')
-rw-r--r-- | doc/development/service_ping/troubleshooting.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/development/service_ping/troubleshooting.md b/doc/development/service_ping/troubleshooting.md index 201d6a385eb..f8fd45e6062 100644 --- a/doc/development/service_ping/troubleshooting.md +++ b/doc/development/service_ping/troubleshooting.md @@ -120,3 +120,45 @@ To work around this bug, you have two options: 1. Expand **Usage Statistics**. 1. Clear the **Enable Service Ping** checkbox. 1. Select **Save Changes**. + +## Generate Service Ping + +### Generate or get the cached Service Ping in rails console + +Use the following method in the [rails console](../../administration/operations/rails_console.md#starting-a-rails-console-session). + +```ruby +Gitlab::Usage::ServicePingReport.for(output: :all_metrics_values, cached: true) +``` + +### Generate a fresh new Service Ping + +Use the following method in the [rails console](../../administration/operations/rails_console.md#starting-a-rails-console-session). + +This also refreshes the cached Service Ping displayed in the Admin Area. + +```ruby +Gitlab::Usage::ServicePingReport.for(output: :all_metrics_values) +``` + +### Generate and print + +Generates Service Ping data in JSON format. + +```shell +gitlab-rake gitlab:usage_data:generate +``` + +Generates Service Ping data in YAML format: + +```shell +gitlab-rake gitlab:usage_data:dump_sql_in_yaml +``` + +### Generate and send Service Ping + +Prints the metrics saved in `conversational_development_index_metrics`. + +```shell +gitlab-rake gitlab:usage_data:generate_and_send +``` |