pgwatch2 icon indicating copy to clipboard operation
pgwatch2 copied to clipboard

No preset configurations in management web ui

Open gram7gram opened this issue 9 years ago • 4 comments

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

gram7gram avatar Oct 20 '17 14:10 gram7gram

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 avatar Oct 23 '17 09:10 gram7gram

@gram7gram so all good, can close the issue?

kmoppel avatar Oct 23 '17 15:10 kmoppel

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.

gram7gram avatar Oct 23 '17 16:10 gram7gram

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:)

kmoppel avatar Oct 24 '17 06:10 kmoppel