# Monitoring not working with XtraDB Cluster

**URL:** <https://forums.percona.com/t/monitoring-not-working-with-xtradb-cluster/9073>\
**Category:** PMM 2.x\
**Created:** [February 3, 2021, 12:15pm UTC](https://forums.percona.com/t/monitoring-not-working-with-xtradb-cluster/9073 "2021-02-03T12:15:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashankft9](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shashankft9/32/2776_2.png) [@Shashankft9](https://forums.percona.com/u/Shashankft9)\
**Post date:** [February 3, 2021, 12:15pm UTC](https://forums.percona.com/t/monitoring-not-working-with-xtradb-cluster/9073/1 "2021-02-03T12:15:21Z")

</div>

Hey, can someone help me with setting up monitoring for the xtradb cluster?  
I am following the documentation for using PMM: [Using Percona Kubernetes Operators with Percona Monitoring and Management - Percona Database Performance Blog](https://www.percona.com/blog/2020/07/23/using-percona-kubernetes-operators-with-percona-monitoring-and-management/)

I have deployed the server using: helm install monitoring percona/pmm-server --set platform=kubernetes --version 2.7.0 --set “credentials.password=supa|^|pazz”

- the server is deployed correctly.
- but when I enable pmm in deploy/cr.yaml, all the pxc pods come up with 1/2 ready state, getting this error in pmm-client:  
`Invalid PMM Server URL "https://admin:supa||pazz@monitoring-service/": parse [https://admin:supa](https://admin:supa/)||pazz@monitoring-service/: net/url: invalid userinfo.`  
OR  
SRC\_ADDR=x.x.x.x
  - CLIENT\_NAME=cluster1-pxc-1  
++ curl -k -s -o /dev/null -w ‘%{http\_code}’ ‘[https://admin:supa|^|pazz@monitoring-service/v1/readyz](https://admin:supa%7C%5E%7Cpazz@monitoring-service/v1/readyz)’
  - SERVER\_RESPONSE\_CODE=000

- I do have the monitoring-service in pxc namespace, and I can even curl to it:  
`curl https://<monitoring-service-ip>/v1/readyz -k -vvv`, it gives me a 200 response.

one question:  
Is there any way, I could simply get the prometheus metrics, and instead of using the PMM, use my own grafana instance?

---

<div class="post-metadata">

**Author:** ![vadimtk](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadimtk/32/9528_2.png) [@vadimtk](https://forums.percona.com/u/vadimtk)\
**Post date:** [February 3, 2021, 8:37pm UTC](https://forums.percona.com/t/monitoring-not-working-with-xtradb-cluster/9073/2 "2021-02-03T20:37:14Z")

</div>

We do not expose prometheus metrics.  
As a recommendation you may try our new recently releases PXC Operator 1.7.0, which has full support for PMM 2.0. It should be much easier to get it running.

---

<div class="post-metadata">

**Author:** ![Shashankft9](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shashankft9/32/2776_2.png) [@Shashankft9](https://forums.percona.com/u/Shashankft9)\
**Post date:** [February 4, 2021, 4:59am UTC](https://forums.percona.com/t/monitoring-not-working-with-xtradb-cluster/9073/3 "2021-02-04T04:59:17Z")

</div>

I just removed the 1.6 version, and started fresh with the v1.7  
I deploy the PMM server using this:  
`helm install monitoring percona/pmm-server --set platform=kubernetes --version 2.7.0 --set "credentials.password=supa|^|pazz"`  
I then manually change the password through GUI to “newpass”.  
Now while installing the xtradb cluster, I am changing the secret to look like this:  
apiVersion: v1  
kind: Secret  
metadata:  
name: my-cluster-secrets  
type: Opaque  
stringData:  
root: root\_password  
xtrabackup: backup\_password  
monitor: monitory  
clustercheck: clustercheckpassword  
proxyadmin: admin\_password  
pmmserver: newpass  
operator: operatoradmin  
.  
I changed the cr.yaml to have the `serverUser` as “admin”. I create the cr, and I am still getting errors in the pmm-client:  
Checking local pmm-agent status…  
pmm-agent is not running.  
Registering pmm-agent on PMM Server…  
Failed to register pmm-agent on PMM Server: Invalid username or password.  
Please check username and password.  
pmm-agent setup exited with 1.

Note that, I can login with admin/newpass as credentials on the pmm server.

---

<div class="post-metadata">

**Author:** ![Shashankft9](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shashankft9/32/2776_2.png) [@Shashankft9](https://forums.percona.com/u/Shashankft9)\
**Post date:** [February 4, 2021, 5:15am UTC](https://forums.percona.com/t/monitoring-not-working-with-xtradb-cluster/9073/4 "2021-02-04T05:15:54Z")

</div>

and when I switch the image of the pmm server statefulset to `percona/pmm-server:2.0` I get following error:  
pmm-agent is not running.  
Registering pmm-agent on PMM Server…  
Failed to register pmm-agent on PMM Server: Internal server error…  
pmm-agent setup exited with 1.

Can you please try to reproduce on a kubernetes cluster.
