v1
latestSwagger 2.02026-07-17290378721.8 KBds
DataSource query metrics with expressions.
If you are running Grafana Enterprise and have Fine-grained access control enabled you need to have a permission with action: datasources:query.
post/ds/query
Request body
Example request
{
"from": "now-1h",
"queries": [
{
"datasource": {
"uid": "PD8C576611E62080A"
},
"format": "table",
"intervalMs": 86400000,
"maxDataPoints": 1092,
"rawSql": "SELECT 1 as valueOne, 2 as valueTwo",
"refId": "A"
}
],
"to": "now"
}Response
(empty)