-
Notifications
You must be signed in to change notification settings - Fork 1
Включение query monitoring для postres в инфраструктуре #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
4aba9eb
5381779
428862a
a122a45
4db1e65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,16 @@ services: | |
| retries: 10 | ||
| ports: | ||
| - 127.0.0.1:5432:5432 | ||
| volumes: | ||
| - ./postgres/docker-entrypoint-initdb.d/init-extensions.sql:/docker-entrypoint-initdb.d/init-extensions.sql:ro | ||
| command: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Изменение конфигурации Postrges для добавления расширения
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. стоит делать что-то вроде чтобы было понятно, что это относится к postgres
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Feo255 мы можем всю директорию |
||
| - "postgres" | ||
| - "-c" | ||
| - "shared_preload_libraries=pg_stat_statements" | ||
| - "-c" | ||
| - "pg_stat_statements.max=10000" | ||
| - "-c" | ||
| - "pg_stat_statements.track=all" | ||
|
Comment on lines
+40
to
+46
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Надо подумать, возможно есть какой-то ENV, который это все включает. или можно это в конфиг подложить. То, как сейчас сделано - это на крайний случай
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. пробовал и другие варианты. Заработал только этот, но посмотрю ещё.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. для справки - вот тут это описывается https://hub.docker.com/_/postgres#database-configuration |
||
| <<: *logging | ||
|
|
||
| redis: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| CREATE EXTENSION IF NOT EXISTS pg_stat_statements; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| CREATE EXTENSION IF NOT EXISTS pg_stat_statements; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Подключение скрипта для entrypoint