Commit 403f9a01 authored by Stan Hu's avatar Stan Hu Committed by Evan Read

Link how to monitor SQL logs in production

This came out of documentation added in the runbooks:

1. https://gitlab.com/gitlab-com/runbooks/-/merge_requests/3361
2. https://gitlab.com/gitlab-com/runbooks/-/merge_requests/3365
parent 856ce98e
...@@ -367,3 +367,12 @@ retries if it were to fail because of an ...@@ -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 To be able to use this method, make sure the model you want to use
this on inherits from `ApplicationRecord`. 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.
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