Description:
Hi team,
I’m using the Percona Operator for MongoDB and have successfully enabled PMM integration across my clusters. All MongoDB metrics are working well. However, I’ve noticed that the PMM agent does not monitor disk usage for the PVC mounted at /data/db, which is the main data directory for mongod. Instead, it monitors the node’s root disk and other mounted paths like configuration volumes (e.g., SSL certs, keys), which are not helpful for tracking actual database storage usage.
Here is the list of devices that PMM cought:
"device": "/dev/nvme1n1p1",
"device": "/dev/nvme1n1p1",
"device": "/dev/nvme1n1p1",
"device": "/dev/root",
"device": "tmpfs",
"device": "tmpfs",
"device": "tmpfs",
"device": "/dev/nvme1n1p1",
"device": "/dev/nvme1n1p1",
"device": "/dev/nvme1n1p1",
"device": "/dev/root",
"device": "tmpfs",
"device": "tmpfs",
"device": "tmpfs",
"device": "/dev/nvme1n1p1",
"device": "/dev/nvme1n1p1",
"device": "/dev/nvme1n1p1",
"device": "/dev/root",
"device": "tmpfs",
"device": "tmpfs",
"device": "tmpfs",
What I need monitored is this volume:
/dev/nvme7n1 30G 13G 17G 43% /data/db
PMM config:
pmm:
enabled: true
image: percona/pmm-client:2.43.1
serverHost: pmm.domain.xyz
mongodParams: --environment=sandbox --cluster=mycluster --replication-set=mycluster-rs0
Version:
PMM server and clients: 2.43.1
Percona Operator for MongoDB: 1.20.1
Percona server for MongoDB: 7.0.18
Questions:
-
Is there a supported way to configure PMM (via the Operator or otherwise) to monitor PVC disk usage?
-
How to monitor the k8s PVCs?
-
Are there any best practices or recommended workarounds for this scenario?
Any guidance or examples would be greatly appreciated!