No preset configurations in management web ui
I failed to understand how to enable same dashboard metrics, as in example.
By default, I have not presets at localhost:15433/dbs and I have no idea of what to write in custom config.
So, localhost:15434/dashboard/db/db-overview?orgId=1 yields N/A.
From what I understood, when new entry is added in management ui, it will be possible to select this entry in dashboard.
Please, provide me with custom config example, or teach where to get presets.
docker-compose.yml
pw2:
container_name: pw2
image: cybertec/pgwatch2
ports:
- 15433:8080 #Management
- 15434:3000 #Dashboard
environment:
NOTESTDB: 1
PW2_PGHOST: psql-master
PW2_PGPORT: 5432
PW2_PGDATABASE: dev
PW2_PGUSER: pgwatch2
PW2_PGPASSWORD: 12345
psql-master:
container_name: psql-master
hostname: psql-master
image: postgres:9.3-alpine
ports:
- 5433:5432
volumes:
...
environment:
PGDATA: /var/lib/postgresql/data
POSTGRES_DB: dev
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 12345
Started raw container, without environment, to check if presets are available.
Yes, they are!
pw2:
container_name: pw2
image: cybertec/pgwatch2
ports:
- 15433:8080 #Management
- 15434:3000 #Dashboard
@gram7gram so all good, can close the issue?
You can close the issue, but your container will become a better container with some commits.
The best way is to have the presets either way: on raw container and with existing database.
Well yes to plug in to an existing DB one needs to roll out the schema, maybe the documentation can be improved on that. A PR would be very welcome there:)