The Wayback Machine - https://web.archive.org/web/20201122150307/https://github.com/cybertec-postgresql/pgwatch2/issues/148
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation improvement ideas #148

Open
kmoppel opened this issue Mar 13, 2019 · 9 comments
Open

Documentation improvement ideas #148

kmoppel opened this issue Mar 13, 2019 · 9 comments
Labels

Comments

@kmoppel
Copy link
Contributor

@kmoppel kmoppel commented Mar 13, 2019

This ticket is meant to log user feedback on current documentation insufficiencies and ideas for improvements. All ideas welcome, please add a comment if you find something illogical or missing. Thank you!

@ALTELMA
Copy link

@ALTELMA ALTELMA commented Mar 15, 2019

How to edit grafana.ini when I use docker option? I try to search, but not found.
Please suggest to me.

@kmoppel
Copy link
Contributor Author

@kmoppel kmoppel commented Mar 18, 2019

How to edit grafana.ini when I use docker option? I try to search, but not found.
Please suggest to me.

Hi, Grafana config is in /etc/grafana/grafana.ini (mostly all at defaults)...so something like that

vim /etc/grafana/grafana.ini
/etc/init.d/grafana-server restart
@ALTELMA
Copy link

@ALTELMA ALTELMA commented Mar 21, 2019

I use docker if I did like you mention. It will disappear after run docker next time, right?

@kmoppel
Copy link
Contributor Author

@kmoppel kmoppel commented Mar 21, 2019

@ALTELMA it will persist on normal stop / restart...but when you want it to be really persistent, also when updating to a newer pgwatch2 Docker image, then yes you should declare an explicit volume yourself for the config file or set up Grafana without Docker.

@ALTELMA
Copy link

@ALTELMA ALTELMA commented Mar 21, 2019

OK, thank you :)

@atkaiser
Copy link

@atkaiser atkaiser commented Oct 21, 2020

Just want to note that /etc/init.d/grafana-server restart didn't work for me and I had to run supervisorctl restart grafana instead to get grafana to restart correctly

@rostamiani
Copy link

@rostamiani rostamiani commented Nov 7, 2020

When installing with Config DB, I had to add some other environments to the pgwatch2-webui.service to make it work:

[Service]
Environment="PW2_WEBPORT=8081"
Environment="PW2_PGHOST=localhost"
Environment="PW2_DATASTORE=postgres"
Environment="PW2_PG_METRIC_STORE_CONN_STR= dbname=pgwatch2_metrics user=pgwatch2"
Environment="PW2_PGPASSWORD=yourpass"

Beside that, there is no documentation about parameters like PW2_PGPASSWORD. I had to look in the code for this param.

@rostamiani
Copy link

@rostamiani rostamiani commented Nov 7, 2020

I didn't find any documentation for PGBouncer configuration.

@kmoppel
Copy link
Contributor Author

@kmoppel kmoppel commented Nov 10, 2020

@rostamiani Thanks for the input! It's sadly impossible to configure or document all possible different input parameter configurations as it's specific to used environment. But PW2_PGPASSWORD is actually listed in the ENV file - https://github.com/cybertec-postgresql/pgwatch2/blob/master/ENV_VARIABLES.md#web-ui

PgBouncer usage has some documentation lines here: https://pgwatch2.readthedocs.io/en/latest/advanced_features.html#pgbouncer-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.