PMM Client Credentials in Helm Chart

How to configure PMM Client credentials in Percona Mongodb Chart in a way that PMM Server can list all backups, storages, etc?

Custom sidecar?

Hi @Rodrigo_Junior_de_As,
You need to create a Service Account in PMM, and then put that token in a Secret which you reference in the helm chart.

cat <<EOF | kubectl create -f -
apiVersion: v1
kind: Secret
metadata:
  name: mongodb-80-secrets
data:
  PMM_SERVER_TOKEN: Z2xzYV9oV3hWOFhQeVl5NzQ2bUFwaWF0d21ld2hHdEdFekxYVF9jZjk3M2JjMw==
EOF

Then:

helm install percona-mongodb-80 percona/psmdb-db \
...
  --set secrets.users=percona-mongodb-80-secrets \
  --set pmm.enabled=true \
  --set pmm.image.tag=3.5.0 \
  --set pmm.customClusterName=percona-mongodb-80 \
...

The PMM sidecar will launch automatically to each Mongo pod and register itself with PMM, assuming you launched PMM in your K8S too.

Hey Matthew.

Sorry, I didn’t explain it correctly.

I currently have a PSMDB ReplicaSet up and running with PMM client and PBM enabled. The metrics and MongoDB PBM Details are showing up in PMM Server fine.

However, I expected that the storages and tasks I configured in the Helm Chart would automatically appear in PMM Server Backup UI, but currently they do not.

Is this integration supported?

Gotcha. I’m unsure of the integration. I’ll forward this post to the Mongo operators team.

1 Like

Hi @Rodrigo_Junior_de_As, As far as I know, PMM currently does not support monitoring Kubernetes objects. You are welcome to create a feature request for this in the PMM project on JIRA.

@Rodrigo_Junior_de_As Even though this is not supported out of the box by the PMM client, you can achieve the same result using VictoriaMetrics.

Please refer to our official documentation for step-by-step instructions on how to configure it:

@Slava_Sarzhan I’ll try it.

Thank you!

PS: sorry about the late response.