Commit db8b4350 authored by Fiona Neill's avatar Fiona Neill Committed by Marcel Amirault

Fix code block formatting service ping

parent 689edd97
...@@ -474,20 +474,34 @@ To generate Service Ping, use [Teleport](https://goteleport.com/docs/) or a deta ...@@ -474,20 +474,34 @@ To generate Service Ping, use [Teleport](https://goteleport.com/docs/) or a deta
1. Connect to bastion with agent forwarding: 1. Connect to bastion with agent forwarding:
`$ ssh -A lb-bastion.gprd.gitlab.com`. ```shell
ssh -A lb-bastion.gprd.gitlab.com
```
1. Create named screen: 1. Create named screen:
`$ screen -S <username>_usage_ping_<date>`. ```shell
screen -S <username>_usage_ping_<date>
```
1. Connect to console host: 1. Connect to console host:
```shell
ssh $USER-rails@console-01-sv-gprd.c.gitlab-production.internal
```
`$ ssh $USER-rails@console-01-sv-gprd.c.gitlab-production.internal`. 1. Run:
1. Run `ServicePing::SubmitService.new.execute`
1. Detach from screen:
`ctrl + a, ctrl + d` ```shell
1. Exit from bastion: ServicePing::SubmitService.new.execute
```
`$ exit` 1. To detach from screen, press `ctrl + A`, `ctrl + D`.
1. Exit from bastion:
```shell
exit
```
### Verification (After approx 30 hours) ### Verification (After approx 30 hours)
...@@ -501,28 +515,49 @@ To generate Service Ping, use [Teleport](https://goteleport.com/docs/) or a deta ...@@ -501,28 +515,49 @@ To generate Service Ping, use [Teleport](https://goteleport.com/docs/) or a deta
1. Reconnect to bastion: 1. Reconnect to bastion:
`$ ssh -A lb-bastion.gprd.gitlab.com` ```shell
ssh -A lb-bastion.gprd.gitlab.com
```
1. Find your screen session: 1. Find your screen session:
`$ screen -ls` ```shell
screen -ls
```
1. Attach to your screen session: 1. Attach to your screen session:
`$ screen -x 14226.mwawrzyniak_usage_ping_2021_01_22` ```shell
1. Check the last payload in `raw_usage_data` table: `RawUsageData.last.payload` screen -x 14226.mwawrzyniak_usage_ping_2021_01_22
1. Check the when the payload was sent: `RawUsageData.last.sent_at` ```
1. Check the last payload in `raw_usage_data` table:
```shell
RawUsageData.last.payload
```
1. Check the when the payload was sent:
```shell
RawUsageData.last.sent_at
```
### Skip database write operations ### Skip database write operations
To skip database write operations, DevOps report creation, and storage of usage data payload, you can pass an optional argument `skip_db_write`: To skip database write operations, DevOps report creation, and storage of usage data payload, pass an optional argument:
`ServicePing::SubmitService.new(skip_db_write: true).execute` ```shell
skip_db_write:
ServicePing::SubmitService.new(skip_db_write: true).execute
```
## Troubleshooting ## Troubleshooting
### Cannot disable Service Ping using the configuration file ### Cannot disable Service Ping using the configuration file
The method to disable Service Ping using the GitLab configuration file does not work in The method to disable Service Ping using the GitLab configuration file does not work in
GitLab versions 9.3.0 to 13.12.3. To disable it, you need to use the Admin Area in GitLab versions 9.3.0 to 13.12.3. To disable it, you must use the Admin Area in
the GitLab UI instead. For more information, see the GitLab UI instead. For more information, see
[this issue](https://gitlab.com/gitlab-org/gitlab/-/issues/333269). [this issue](https://gitlab.com/gitlab-org/gitlab/-/issues/333269).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment