Hello.
I’m trying to deploy a Percona server in a brand new project, but I’m getting a problem with the node registry.
I’ve deploy pmm-server in a docker. Then registered a node with sudo pmm-admin config --server-insecure-tls --server-url=https://admin:admin@127.0.0.1:443. I’ve installed the pmm-client at same machine that is my docker server.
When I add a new postgre to get metrics, the “Home” dashboard shows a new “DB instance monitored”. The number get increased.
But I just cant find the postgre in any node overview, the new service donst appear in service dropdown at postgres summary page.
I follow the docs to deploy everything. Is there some mistake?
and@pmm-apalache-dev:~$ pmm-admin status
Agent ID: /agent_id/2eb448e2-96bc-4ec1-8b34-df9614e2649a
Node ID : /node_id/eebdbaa6-11cc-463f-b528-643501c96f99
I have found something, but dont know how to fix.
My list at https://localhost/prometheus/targets dont grow up when I add new services.
Is there a mistake during pmm-node register?
Hi
I have my node running in the host machine, and I can ping my pmm-server.
I have registered my node using this command: sudo pmm-admin config --server-insecure-tls --server-url=https://admin:admin@127.0.0.1:443 172.17.0.1 generic Postgre1
I have added this node, and registered a postgre to monitor. sudo pmm-admin add postgresql --username=pmm --password=pmm2021 --service-name=postgre1-dev Postgre1 172.18.0.2:5432
But in addres https://localhost/prometheus/targets my new target does not appear.
Here are shown targets in pull mode.
The mode (push/pull) is controlled by the --metrics-mode flag for the pmm-admin config and pmm-admin add commands. Push mode is used by default.
You may check used port in an output of command pmm-admin list
When I try to run pmm-admin list inside server container, I’ve go
t this:
I tryed to deploy a pmm-client in a docker container, registered a new node and then added a postgre to monitoring, still dont getting any metrics, and also the node with a postgres db dont show on Postgres Overview
This DB was previously with SSL Only Conections, but Percona dont work whit this. Then I have open it to all conection type, but GCP “looks like” keep forcing the conection trough SSL.
PS: Used flags --tls --tls-skip-verify but keep bloking in SSL.
How do I proceed withing percona side?
Are you able to directly connect to the postgresql service in SSL mode from pmm-client host? yes sir.
I cant conect to a Cloud SQL DB in GCP, pg_hba.conf was refusing my conection with pmm_user.
found in error line, percona trying to conect to cloudsqladmin db…
In comand line to create an agent pmm add postgre, so my conection was going to cloudsqladmin, the “default” by google.
Its happening because I’ve used CREATE EXTENSION pg_stat_statements; with my db-admin acount, and GCP dont swith defaultness to this extension.
To solve this problem, CREATE EXTENSION pg_stat_statements; should run with postgres user for GCP.
But know I’m facing a new challenge:
How can I set pmm-admin to ignore the database cloudsqladmin?
db=cloudsqladmin,user=wiser_pmm_user FATAL: pg_hba.conf rejects connection for host "XXX.XXX.XXX.XXX"
Whats the necessary roles for pmm user in CloudSQL?