Skip to content

Commit 5b84272

Browse files
committed
Smartquery: Fix querying PostgreSQL with Grafana 11
1 parent 7d868b3 commit 5b84272

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CHANGELOG
22

33
## unreleased
4+
- Smartquery: Fixed querying PostgreSQL with Grafana 11. Thanks, @hbaghar.
45

56
## 4.2.3 (2025-01-26)
67
- Smartquery: Fix querying Prometheus by adding `hide` parameter.

grafana_client/knowledge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def datasource_factory(datasource: DatasourceModel) -> DatasourceModel:
9797
datasource.secureJsonData = {
9898
"password": "root",
9999
}
100-
elif datasource.type == "postgres":
100+
elif datasource.type in ["postgres", "grafana-postgresql-datasource"]:
101101
datasource.user = "postgres"
102102
datasource.jsonData = {
103103
"postgresVersion": 1200,

0 commit comments

Comments
 (0)