Percona Monitoring and Management (PMM) Server Deployment Overview¶
Prerequisites¶
The following conditions are required for the application to function correctly:
-
Operating System: Ubuntu.
-
Access Rights:
rootprivileges are required to install system packages and manage Docker. -
Ports: Port
443must be open (port8443is used inside the container).
FQDN of the final panel on hostkey.in domain¶
| Parameter | Value |
|---|---|
| Prefix | percona |
| Domain | hostkey.in |
| Full Template | percona{Server_ID_from_Invapi}.hostkey.in |
Docker Containers and Execution¶
A single main container is deployed in the system to run the management panel.
| Parameter | Value |
|---|---|
| Image Name | percona/pmm-server:3 |
| Container Name | pmm-server |
| Ports (host:container) | 443:8443 |
| Volumes | pmm-data:/srv |
| Environment Variables | PMM_CLICKHOUSE_CONFIG=low-memory, PMM_ENABLE_UPDATES=0 |
| Restart Policy | always |
Application Update¶
Updates are performed via pull and container restart. To update, you must pull the latest image and restart the service:
Permissions Settings¶
After deploying certificates inside the container, the following file permissions are set for files in the /srv/nginx/ directory:
| File | Permissions | Owner |
|---|---|---|
certificate.crt | 0644 | pmm:root |
ca-certs.pem | 0644 | pmm:root |
dhparam.pem | 0644 | pmm:root |
certificate.key | 0600 | pmm:root |
Configuration Files and Data Location¶
-
Application Data: Stored in the Docker volume named
pmm-data. -
Certificates (on host):
/etc/letsencrypt/live/{prefix}{server_id}.{zone}/ -
Certificates (in container):
/srv/nginx/
Available Connection Ports¶
| Port | Protocol | Purpose |
|---|---|---|
443 | HTTPS | PMM Web Interface Access |
Starting and Stopping the Application¶
The container is managed using the following commands:
-
Start:
docker start pmm-server -
Stop:
docker stop pmm-server -
Restart:
docker restart pmm-server