Open amandahla opened 2 weeks ago
Hi, @amandahla, the set-password
and get-password
actions should work with the monitoring user as well.
Cool, I thought would be only for the operator user, thanks! I think this issue can be closed then unless you prefer to keep it open for investigating why the monitoring user has a different password at some point.
Hi @amandahla , thank you for the bugreport!
Regarding set-password
you can check https://charmhub.io/postgresql/docs/e-users
I never saw such an issue. I am not sure, how can we fix something here without steps to reproduce. Is it a fresh setup or a long running system? Did metrics gone, or never existed?
From the discourse post:
content:
monitoring-password: password
operator-password: aaa
It looks like the monitoring password was not set (in Juju secrets), do you see some ERRORS in the debug log for those units?
Tnx!
Steps to reproduce
There were no PostgreSQL metrics so I saw these errors in one of the units:
Expected behavior
Grafana dashboard with all metrics.
Actual behavior
Only OS metrics.
Versions
Operating system:
Juju CLI: 3.5.1
Juju agent: 3.1.8
Charm revision: 14/edge 405
LXD:
Log output
Juju debug log:
Additional context
I was able to fix it by setting the monitoring user password again. (Canonical-only) I wrote a how to: https://discourse.canonical.com/t/how-to-fix-postgresql-charm-not-sending-metrics/3801
Maybe it could be considered adding an action to do this.