mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
Explore: Includes context parameter when invoking getExploreState() from Prometheus datasource (#17569)
Closes #17457
This commit is contained in:
parent
c59f308414
commit
e11edf3fc2
@ -581,6 +581,7 @@ export class PrometheusDatasource extends DataSourceApi<PromQuery, PromOptions>
|
|||||||
const expandedQueries = queries.map(query => ({
|
const expandedQueries = queries.map(query => ({
|
||||||
...query,
|
...query,
|
||||||
expr: this.templateSrv.replace(query.expr, {}, this.interpolateQueryExpr),
|
expr: this.templateSrv.replace(query.expr, {}, this.interpolateQueryExpr),
|
||||||
|
context: 'explore',
|
||||||
|
|
||||||
// null out values we don't support in Explore yet
|
// null out values we don't support in Explore yet
|
||||||
legendFormat: null,
|
legendFormat: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user