I’ve turned on P_S and I created the pmm mysql user.
But when I go to the next command:
sudo pmm-admin add mysql:metrics --host …
And of course there is no pmm-admin software. I installed it on the host server of the docker container and tried again.
pmm-admin add …
I’m told to run pmm-admin config.
I have verified the server is running and I can see the OS metrics for the pmm-server. But I can not configure the RDS. They are in the same vpc and vpc subnet.
I’ve done from another ec2, pmm-server docker container and pmm-server that holds the docker container:
curl http:///prometheus/ Found.
It’s just not clear how I tell the pmm-server to take metrics on an RDS server…
SERVICE TYPE NAME REMOTE ENDPOINT STATUS HTTPS/TLS PASSWORD
mysql:metrics mydb1.rds X.X.X.X:42002 DOWN YES -
mysql:metrics mydb2.rds X.X.X.X:42003 DOWN YES -
mysql:metrics mydb3.rds X.X.X.X:42004 DOWN YES -
When an endpoint is down it may indicate that the corresponding service is stopped (run ‘pmm-admin list’ to verify).
If it’s running, check out the logs /var/log/pmm-*.log
When all endpoints are down but ‘pmm-admin list’ shows they are up and no errors in the logs,
check the firewall settings whether this system allows incoming connections from server to address:port in question.
I rebooted the instance, started the docker container and metrics are back. It may be that the instance was too small for 3 RDS servers (two were very small) I removed all but the most important and purged the other data. I did this for BOTH mysql:metrics and mysql:queries. However the queries still show up for the 2 dbs I removed. Now the prometheus/targets are showing up for the one db I want & down for the other two. (not sure how to remove them?)
Turns out the old PC standard worked. REBOOT, restart.