[UI] Can't add Postgres instances without postgres DB to PMM
General
Escalation
General
Escalation
Description
How to test
None
How to document
None
Attachments
3
clones
Smart Checklist
Activity
Show:

Former user November 19, 2021 at 2:50 PMEdited
I was able to add a remote instance via UI but have no metrics on dashboards or QAN.
1. Used this docker-compose:
2. Dropped the postgres db:
3. When trying to add it as remote instance and leaving Database field blank, I'm getting error "Connection check failed: pq: database "postgres" does not exist." as expected. When using pmm-agent as Database, the instance is added;
but no metrics are collected.
Can you please check what could be wrong?

AM October 10, 2021 at 8:09 PM
Please see PR
Done
Details
Details
Assignee

Reporter
Priority
Components
Labels
Needs QA
Yes
Fix versions
Story Points
1
Sprint
None
Affects versions
Smart Checklist
Open Smart Checklist
Smart Checklist

Open Smart Checklist
Created March 9, 2021 at 9:46 PM
Updated March 6, 2024 at 3:04 AM
Resolved November 30, 2021 at 3:46 PM
The API and
PMM Add Instance
dashboard both assume that the Postgres instance to be added has a database calledpostgres
. This is not alway true. For example, DigitalOcean DBaaS instances are created with adefaultdb
database instead. The AddPostgreSQLService endpoint and thePMM Add Instance
dashboard should both allow the user to specify the database name when adding a Postgres instance.User impact:
If user dont have database called postgres then you can get broken exporter.
STR:
Start posgresql which doesnt have database called "postgres"
Try add this postgresql with pmm-admin
Exporter doesnt work.
Suggested implementation:
TBD