-
Notifications
You must be signed in to change notification settings - Fork 201
PMM-14887 Provide a Docker Compose file for community #5212
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7b9bffd
PMM-14887 Restructure Makefiles
ademidoff b0b93ed
PMM-14887 Move the dev Docker compose back to the root
ademidoff 0c48eb4
PMM-14887 Merge dev/Makefile into the root, fix targets
ademidoff 6612647
PMM-14887 Revert envars in api-test workflow
ademidoff b559b15
PMM-14887 Fix a wrong link
ademidoff 6edbf0c
PMM-14887 Remove deprecated env variables
ademidoff b73ee56
PMM-14887 Update the root Docker compose, modernize sysbench workflow
ademidoff e6f0a28
PMM-14887 Deprecate spell-check workflow
ademidoff 9804d42
PMM-14887 Drop the deprecated Platform key
ademidoff 4e45a77
PMM-14887 Provide a suite of compose files
ademidoff acce7ca
PMM-14887 Fix the path to agents.md
ademidoff 7c8a578
Update Makefile
ademidoff c555198
PMM-14887 Add a BIN target
ademidoff d9e0c4e
PMM-14887 Follow-up on review
ademidoff ade1074
PMM-14887 Follow-up on review
ademidoff ccae344
PMM-14887 Follow-up on review
ademidoff b30241f
PMM-14887 Follow-up on review
ademidoff 91adc1a
PMM-14887 Final updates and fixes
ademidoff 9ce6b0a
PMM-14887 Fix environment variable handling in parser
ademidoff ab9e9cb
Merge branch 'v3' into PMM-14887-restructure-project-makefiles
ademidoff 8d16436
Merge branch 'PMM-14887-restructure-project-makefiles' of ssh://githu…
ademidoff 3056e36
PMM-14887 More envvar updates to docker compose
ademidoff ca01656
PMM-14887 Fix an external URL
ademidoff 1e3f874
PMM-14887 More envvar updates to docker compose.dev
ademidoff e8f8a03
PMM-14887 Remove the trailing dot from log messages
ademidoff 545c609
PMM-14887 Follow-up on review
ademidoff 2a678f4
PMM-14887 Follow-up on review
ademidoff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,78 @@ | ||
| # Percona PMM dev container | ||
| #PMM_CONTAINER=perconalab/pmm-server:3-dev-container | ||
| # This is a sample file with environment variables for PMM Server. | ||
| # You can copy it to .env and modify the values as needed: `cp .env.example .env`. | ||
| # Uncomment and set the environment variables below to configure PMM Server. | ||
|
|
||
| CH_IMAGE=clickhouse/clickhouse-server:22.6.9.11-alpine | ||
| CH_PORT=9000 | ||
| CH_HOSTNAME=ch | ||
| # The latest PMM Server image is alsways published as percona/pmm-server:3. | ||
| # A specific version can be used by changing the tag, e.g., percona/pmm-server:3.7.0. | ||
| PMM_SERVER_IMAGE=percona/pmm-server:3 | ||
| # Label-based access control for PMM Server. Set to 1 to enable. | ||
| PMM_ENABLE_ACCESS_CONTROL=1 | ||
| # Good for development, but not recommended for production environments. | ||
| PMM_ENABLE_INTERNAL_PG_QAN=1 | ||
| # Enable Nomad integration for PMM Server. | ||
| PMM_ENABLE_NOMAD=0 | ||
| # Controls the log verbosity of PMM Server. Set to 1 to enable debug logging, which can be helpful for troubleshooting. | ||
| PMM_DEBUG=0 | ||
| # Https port for PMM Server API and UI. | ||
| PMM_PORT_HTTPS=443 | ||
| # Set the admin username for PMM Server. | ||
| GF_SECURITY_ADMIN_USER=admin | ||
| # Set a strong admin password for PMM Server in production environments. | ||
| GF_SECURITY_ADMIN_PASSWORD=admin | ||
| # Public address for PMM Server, required by Nomad integration. | ||
| PMM_PUBLIC_ADDRESS=localhost | ||
| # Https port for PMM Server API and UI. Web UI: https://localhost:443 | ||
| PMM_PORT_HTTPS=443 | ||
|
|
||
| # Use an external ClickHouse database | ||
| # PMM_CLICKHOUSE_ADDR=127.0.0.1:9000 | ||
| # PMM_CLICKHOUSE_DATABASE=pmm | ||
| # PMM_CLICKHOUSE_USER=default | ||
| # PMM_CLICKHOUSE_PASSWORD=<password> | ||
| # PMM_CLICKHOUSE_IS_CLUSTER=1 | ||
| # PMM_CLICKHOUSE_CLUSTER_NAME=pmmclickhouse | ||
| # PMM_DISABLE_BUILTIN_CLICKHOUSE=1 | ||
|
|
||
| # Use an external PostgreSQL database | ||
| # PMM_POSTGRES_ADDR=pg:5432 | ||
| # PMM_POSTGRES_DBNAME=pmm-managed | ||
| # PMM_POSTGRES_USERNAME=pmm-managed | ||
| # PMM_POSTGRES_DBPASSWORD=<password> | ||
| # PMM_POSTGRES_SSL_MODE=verify-full | ||
| # PMM_POSTGRES_SSL_CA_PATH=/tmp/certs/root.crt | ||
| # PMM_POSTGRES_SSL_KEY_PATH=/tmp/certs/pmm-managed.key | ||
| # PMM_POSTGRES_SSL_CERT_PATH=/tmp/certs/pmm-managed.crt | ||
| # PMM_DISABLE_BUILTIN_POSTGRES=1 | ||
|
|
||
| # Use SSL certificates for PMM Server's internal database connection (PostgreSQL) | ||
| # GF_DATABASE_SSL_MODE=verify-full | ||
| # GF_DATABASE_CA_CERT_PATH=/tmp/certs/root.crt | ||
| # GF_DATABASE_CLIENT_KEY_PATH=/tmp/certs/grafana.key | ||
| # GF_DATABASE_CLIENT_CERT_PATH=/tmp/certs/grafana.crt | ||
|
|
||
| # Specify a custom file with Advisor checks for development purposes. | ||
| # PMM_DEV_ADVISOR_CHECKS_FILE=/srv/checks/local-checks.yml | ||
|
|
||
| # Configure SMTP settings for Grafana to enable email notifications. | ||
| # --profile=mail-server must be enabled in docker-compose.dev.yml for these settings to take effect. | ||
maxkondr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # GF_EMAILS_WELCOME_EMAIL_ON_SIGN_UP=1 | ||
| # GF_SMTP_ENABLED=1 | ||
| # GF_SMTP_HOST=mail-server:1025 | ||
| # GF_SMTP_FROM_NAME=Percona | ||
| # GF_SMTP_FROM_ADDRESS=admin@percona.com | ||
|
|
||
| # Watchtower configuration for automatic updates of PMM Server and its components. | ||
| # --profile=watchtower must be enabled in docker-compose.dev.yml for these settings to take effect. | ||
| # WATCHTOWER_IMAGE=perconalab/watchtower | ||
| # PMM_WATCHTOWER_HOST=http://watchtower:8080 | ||
| # PMM_WATCHTOWER_TOKEN=INSECURE_TOKEN | ||
| # PMM_DEV_UPDATE_DOCKER_IMAGE=percona/pmm-server:3 | ||
| # WATCHTOWER_HTTP_LISTEN_PORT=8080 | ||
| # WATCHTOWER_HTTP_API_UPDATE=1 | ||
| # WATCHTOWER_NO_RESTART=0 | ||
| # WATCHTOWER_DOCKER_PATH=/var/run/docker.sock | ||
|
|
||
| # Grafana Image Renderer configuration for rendering Grafana panels as images. | ||
| # --profile=renderer must be enabled in docker-compose.dev.yml for these settings to take effect | ||
| # GF_RENDERING_SERVER_URL=http://renderer:8081/render | ||
| # GF_RENDERING_CALLBACK_URL=https://pmm-server:8443/graph/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,21 +131,8 @@ jobs: | |
| go env | sort | ||
| git status | ||
|
|
||
|
|
||
| spell-check: | ||
|
Member
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. Practically no value from this, better use AI, e.g. Copilot reviews. |
||
| name: Spell check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Check spelling of md files | ||
| uses: crate-ci/typos@02ea592e44b3a53c302f697cddca7641cd051c3d # v1.45.0 | ||
| with: | ||
| files: "**/*.md ./documentation/**/*.md" | ||
|
|
||
| merge-gatekeeper: | ||
| needs: [ check, spell-check ] | ||
| needs: [ check ] | ||
| name: Merge Gatekeeper | ||
| if: ${{ always() }} | ||
| runs-on: ubuntu-22.04 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| CREATE EXTENSION IF NOT EXISTS pg_stat_statements; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| [mysqld] | ||
| slow_query_log = ON | ||
| slow_query_log_file = /var/log/mysql/mysql-slow.log | ||
| slow_query_log_always_write_time = 0 | ||
| long_query_time = 0 | ||
| log_slow_admin_statements = ON | ||
| log_slow_extra = ON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /var/log/mysql/mysql-slow.log { | ||
| daily | ||
| missingok | ||
| rotate 7 | ||
| compress | ||
| delaycompress | ||
| notifempty | ||
| sharedscripts | ||
| postrotate | ||
| if [ -f /var/run/mysqld/mysqld.pid ]; then | ||
| kill -HUP $(cat /var/run/mysqld/mysqld.pid) | ||
| fi | ||
| endscript | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/usr/bin/env bash | ||
| set -o xtrace | ||
|
|
||
| sysbench \ | ||
| --db-driver=mysql \ | ||
| --mysql-host=ps \ | ||
| --mysql-port=3306 \ | ||
| --mysql-user=root \ | ||
| --mysql-password=secret \ | ||
| --mysql-db=sbtest \ | ||
| --table-size=1000000 \ | ||
| oltp_read_write \ | ||
| prepare | ||
|
|
||
| sysbench \ | ||
| --rate=200 \ | ||
| --threads=64 \ | ||
| --report-interval=10 \ | ||
| --time=0 \ | ||
| --events=0 \ | ||
| --rand-type=pareto \ | ||
| --db-driver=mysql \ | ||
| --mysql-host=ps \ | ||
| --mysql-port=3306 \ | ||
| --mysql-user=root \ | ||
| --mysql-password=secret \ | ||
| --mysql-db=sbtest \ | ||
| --table-size=1000000 \ | ||
| oltp_read_only \ | ||
| run |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.