Greetings,
We use PMM 1.17 container-based Server to monitor MySQL DBs/hosts.
PMM Server has been installed in a Centos 7.5 container.
Currently that PMM Server is monitoring just one PMM Client host - with Centos 6.8 and MySQL 5.6.26 running there.
It seems that the PMM Server’s container is using more and more disk space.
We tried to limit the size of collected and kept data.
The server/container has been run with parameters of keeping history (retention) of 8 days and with 5 seconds pooling interval , as :
docker run -d
-p 80:80
–volumes-from pmm-data
–name pmm-server
–restart always
-e metrics_retention=192h -e queries_retention=8 -e metrics_resolution=5s
percona/pmm-server:1.17.0
While observing the PMM collected data - it seems that the QAN data indeed can be drilled-down over the last 8 days (while still presenting high-level graphs of 30 last days). However, the MySQL collected information (for example, “MySQL Overview”) can be drilled down for the last 30 days, and not only the 8 days as expected. So it seems that our retention parameters does not work as expected.
So, a few questions :
- What is the proper way to limit PMM collected information (namely QAN and MySQL oriented) to be kept for last N days, and not as set by the default ?
- Where/how is set/configured the total PMM Server’s container disk space storage ? Because it can be seen that after some threshold of 42G-43G has been reached - the disk storage stops to grow.
- Is it a proper way to define the “retention” parameters in the “docker run” command - or there is a better way ?
Best regards and looking forward your assistance,
Avi Vainshtein