diff --git a/public/app/plugins/datasource/prometheus/result_transformer.ts b/public/app/plugins/datasource/prometheus/result_transformer.ts index db6553f1056..32d7e7fd05f 100644 --- a/public/app/plugins/datasource/prometheus/result_transformer.ts +++ b/public/app/plugins/datasource/prometheus/result_transformer.ts @@ -43,8 +43,11 @@ interface TimeAndValue { } const isTableResult = (dataFrame: DataFrame, options: DataQueryRequest): boolean => { - // We want to process instant results in Explore as table - if ((options.app === CoreApp.Explore && dataFrame.meta?.custom?.resultType) === 'vector') { + // We want to process vector and scalar results in Explore as table + if ( + options.app === CoreApp.Explore && + (dataFrame.meta?.custom?.resultType === 'vector' || dataFrame.meta?.custom?.resultType === 'scalar') + ) { return true; }