Created
March 2, 2020 13:43
-
-
Save jraddaoui/4b5d824cc787e1900337a96da5bc9384 to your computer and use it in GitHub Desktop.
AtoM Docker with PMM version 2
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
--- | |
version: "2" | |
volumes: | |
pmm_data: | |
services: | |
percona: | |
volumes: | |
- ./etc/mysql/pmm.cnf:/etc/my.cnf.d/pmm.cnf:ro | |
pmm_server: | |
image: percona/pmm-server:2 | |
volumes: | |
- pmm_data:/srv | |
ports: | |
- "127.0.0.1:63006:80" | |
pmm_client: | |
image: centos | |
command: > | |
bash -c " | |
yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm -y | |
percona-release disable all | |
percona-release enable original testing | |
yum update -y | |
yum install pmm2-client -y | |
pmm-agent setup --config-file=/usr/local/percona/pmm2/config/pmm-agent.yaml --server-address=pmm_server:443 --server-insecure-tls --server-username=admin --server-password=admin | |
nohup pmm-agent --config-file=/usr/local/percona/pmm2/config/pmm-agent.yaml & | |
sleep 60 | |
pmm-admin add mysql --username=root --password=my-secret-pw --query-source=perfschema atom_perfschema percona:3306 | |
tail -f /dev/null | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment