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

Direct DB Connection for postgres fails in grafana 10.2.3 (works in 10.2.2) #1764

Closed
Dennisik opened this issue Dec 25, 2023 · 10 comments · Fixed by #1771
Closed

Direct DB Connection for postgres fails in grafana 10.2.3 (works in 10.2.2) #1764

Dennisik opened this issue Dec 25, 2023 · 10 comments · Fixed by #1771
Assignees

Comments

@Dennisik
Copy link

After updating Grafana from version 10.1.6 to 10.2.3, there is no option to select a PSQL source in Direct DB Connection.
On versions 10.1.x everything works as it should, but on version 10.2.x it does not work.

image
image

Grafana Zabbix Grafana-Zabbix Plugin
10.2.3 6.4.5 4.4.1
@rohanrajnv
Copy link

I am also facing the same issue

@reldred
Copy link

reldred commented Dec 27, 2023

Yeap. Just migrated my grafana from a standalone docker server to my new production swarm cluster which pulled a fresh grafana docker image and I've lost the ability to talk to PostGres. Keen to hear what the go is :-D

@Glafkon
Copy link

Glafkon commented Dec 27, 2023

Same issue. Updating Grafana to 10.2.3 from 10.2.2 and get the error "Could not connect to given url" - if "Enable Direct DB Connection" is activating.

Grafana Zabbix Grafana-Zabbix Plugin
10.2.3 6.4.10 4.4.4

@javivu
Copy link

javivu commented Dec 27, 2023

Same issue in my side.

Grafana Zabbix Grafana-Zabbix Plugin
10.2.3 6.4.10 4.4.4

In my case, with Grafana PostgreSQL Data Source.

@kaellego
Copy link

kaellego commented Dec 28, 2023

I have the same problem. Here my environment is

Grafana Zabbix Grafana-Zabbix Plugin
10.2.3 6.4.10 4.4.4

only MySQL appears, but I need the PostgreSQL Data Source

from what i understand, the datasource type in postgres plugin changed its name to grafana-postgresql-datasource. In the sqlConnector.ts file on line 34 it uses the type to determine whether to use mysql or postgres , as the default is mysql it ends up performing all queries.

it causes error 400 after the update

@GustelDE
Copy link

Same here, the PostgresDB-Data-Source shows simply not up in the list and if already selected "Could not connect to given url".

Grafana: 10.2.3
Zabbix: 6.4.10
Grafana-Zabbix Plugin: 4.3.1 and 4.4.4

@daFlo
Copy link

daFlo commented Jan 8, 2024

+1

Grafana: 10.2.3
Zabbix: 6.4.10
Grafana-Zabbix Plugin: 4.4.4

@EYEVO
Copy link

EYEVO commented Jan 8, 2024

Same here

Grafana: 10.2.3
Zabbix: 6.4.10
Grafana-Zabbix Plugin: 4.4.4

@gabor
Copy link
Contributor

gabor commented Jan 8, 2024

summary of the probable cause:

@gabor gabor changed the title Direct DB Connection Direct DB Connection for postgres fails in grafana 10.2.3 (works in 10.2.2) Jan 8, 2024
@gabor gabor self-assigned this Jan 8, 2024
@gabor
Copy link
Contributor

gabor commented Jan 15, 2024

the fix is live in the newest zabbix release (4.4.5)

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

Successfully merging a pull request may close this issue.

10 participants