fix: Filter out values not supported by Explore yet #15281

This commit is contained in:
Johannes Schill 2019-02-19 16:43:39 +01:00
parent 8876d17dc0
commit 6f9edf4a22

View File

@ -396,6 +396,10 @@ export class PrometheusDatasource implements DataSourceApi<PromQuery> {
const expandedQueries = queries.map(query => ({
...query,
expr: this.templateSrv.replace(query.expr, {}, this.interpolateQueryExpr),
// null out values we don't support in Explore yet
legendFormat: null,
step: null,
}));
state = {
...state,