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

Authentication error in provisioning with Grafana #8

Open
lokasoft opened this issue May 15, 2024 · 1 comment
Open

Authentication error in provisioning with Grafana #8

lokasoft opened this issue May 15, 2024 · 1 comment

Comments

@lokasoft
Copy link

I have installed pgsail using the docker-compose file on Ubuntu 20.04, overall it works but the grafana provisioning does not seem to work.
In the job_run_details I see the following errors:

ERROR: plpy.Error: ('Error grafana add vessel org %', {'extra': None, 'message': 'Unauthorized', 'messageId': 'auth.unauthorized', 'statusCode': 401, 'traceID': ''})
CONTEXT: Traceback (most recent call last):
PL/Python function "grafana_py_fn", line 41, in
plpy.error('Error grafana add vessel org %', r.json())
PL/Python function "grafana_py_fn"
SQL statement "SELECT grafana_py_fn(data_rec.name, data_rec.vessel_id, data_rec.owner_email, app_settings)"
PL/pgSQL function cron_process_grafana_fn() line 25 at PERFORM

Looking the the "gafana_py_fn" I don't see how the authentication with the grafana api is done, do I need to add a specific user in grafana ?

The servers are running behing haproxy, I have configured the public external urls in the app_settings.app_grafana_admin_uri and app.url.

In the .env file I have configured al the passwords as in the documentation.

Is there something I am missing?

Lex

@xbgmsharp
Copy link
Owner

Hello,
Thanks for using PostgSail. Very good point, there is no provisioning grafana as it is single user. You can directly connect to grafana as admin to create your own dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants