Skip to content

Commit c85f687

Browse files
committed
Smartquery: Fix querying PostgreSQL with Grafana 11
1 parent 39bfa3c commit c85f687

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, @MatthewMarsee.
45

56
## 4.3.1 (2025-02-22)
67
- Fixed `update_dashboard` to also handle `folderUid` well. Thanks, @CantankerousBullMoose.

grafana_client/knowledge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def query_factory(datasource, model: Optional[dict] = None, expression: Optional
259259
elif datasource_type == "opentsdb":
260260
query = {}
261261

262-
elif datasource_type in ("postgres", "mssql", "mysql"):
262+
elif datasource_type in ("postgres", "mssql", "mysql", "grafana-postgresql-datasource"):
263263
query = {
264264
"datasource": {
265265
"type": datasource["type"],

0 commit comments

Comments
 (0)