Hi, I’m new to PMM and trying to monitor some Postgresql databases. I have installed PMM agents and ran “pmm-admin config …” on 2 Postgresql nodes. One of them was monitored successfully. One of them was not, only node metrics were collected. Prometheus targets were showing that it got time out error when scraping the postgresql exporter.
After trying one more time, from the server, it got a reply after 4m39.916s. I guess that’s why Prometheus always timed out when trying to scrape the node. That’s very slow. Do you have any idea what can be the cause?
It’s hard to say what’s going on there without any additional information. Are you able to fetch exporter metrics directly on the node by a curl command?
I can’t because I don’t know the APIs. I got that curl link from the prometheus dashboard. Can you help me how to fetch the exporter’s metrics? and while at it, is it possible to change the prometheus’s scrape interval & timeout configs without being replaced by pmm-managed?
Please use the next command. It has to be used Agent ID of postgres_exporter as a password. curl -s -u pmm:<Agent ID of exporter> http://localhost:42000/metrics