Skip to content

Commit 05ddd1e

Browse files
committed
Smartquery: Fix querying PostgreSQL with Grafana 11
1 parent 8756601 commit 05ddd1e

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
@@ -2,6 +2,7 @@
22

33
## unreleased
44
- Chore: Removed nonsense function `update_rule_group_interval`. Thanks, @vbichov.
5+
- Smartquery: Fixed querying PostgreSQL with Grafana 11. Thanks, @hbaghar.
56

67
## 4.2.3 (2025-01-26)
78
- 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)