-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Grafana Database Tables inside PostgreSQL Schema #18714
Comments
@gopalakrishnan-subramani Looking at the code it seems like this is not possible, as the only thing configurable is the database name. But let me verify that with @marefr. Marcus, is there any workaround fur such case? |
not yet |
Think using a custom search_path in the postgres database should work. We fixed a bug earlier that shown that users we're using a custom schema with Postgres and Grafana, see #17357 for reference. |
I came across a similar issue where I wanted the ability to configure the database schema name for the postgres connection. Are there any plans for implementing such a thing? |
@ocherfas use a custom search_path as I refer to in #18714 (comment) |
@marefr I tried to use a custom search_path but I get an error on grafana initialization: Any suggestions? |
It seems that the problem was that I had leftovers from previous grafana initialization on the public schema, and even through I changed the search_path for grafana user it still somehow found the previous migration_log table and failed. |
One of our customer uses grafana, they have a requirement to keep the grafana tables used for users, org, roles, dashboards etc inside their database with a postgresql schema like "grafana.user".
I see the grafana table structures, I don't see grafana has option to use schema for the tables.
Is it possible to achieve this without code change in go language.
The text was updated successfully, but these errors were encountered: