diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-24 09:09:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-24 09:09:16 +0300 |
commit | f1d39f5bea74d84c38b4713f66cfcc9fdbcd1c57 (patch) | |
tree | 2c43f91d951a7465535d6e3b328a12e5f93aa1e1 /doc/development | |
parent | 93b0b77287acb1cf1a6a408b3a4e9587bedc9364 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development')
-rw-r--r-- | doc/development/sql.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/development/sql.md b/doc/development/sql.md index 8726c1331e8..1053abf5c02 100644 --- a/doc/development/sql.md +++ b/doc/development/sql.md @@ -367,3 +367,12 @@ retries if it were to fail because of an To be able to use this method, make sure the model you want to use this on inherits from `ApplicationRecord`. + +## Monitor SQL queries in production + +GitLab team members can monitor slow or canceled queries on GitLab.com +using the PostgreSQL logs, which are indexed in Elasticsearch and +searchable using Kibana. + +See [the runbook](https://gitlab.com/gitlab-com/runbooks/-/blob/master/docs/patroni/pg_collect_query_data.md#searching-postgresql-logs-with-kibanaelasticsearch) +for more details. |