From 924b62d301c69a2918ffdbcb8e22df214ccae833 Mon Sep 17 00:00:00 2001 From: congxi Date: Fri, 23 Aug 2024 14:37:53 +0800 Subject: [PATCH] [feature] flame graph units update **Phenomenon and reproduction steps** **Root cause and solution** **Impactions** **Test method** * master **Affected branch(es)** * main **Checklist** - [ ] Dependencies update required - [ ] Common bug (similar problem in other repo) --- deepflow-querier-datasource/pkg/plugin/datasource.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deepflow-querier-datasource/pkg/plugin/datasource.go b/deepflow-querier-datasource/pkg/plugin/datasource.go index 89d5a7c..2b1bb59 100644 --- a/deepflow-querier-datasource/pkg/plugin/datasource.go +++ b/deepflow-querier-datasource/pkg/plugin/datasource.go @@ -311,6 +311,9 @@ func (d *Datasource) query(ctx context.Context, pCtx backend.PluginContext, quer return response, fmt.Errorf("unexpected type for %v, assertion failed for float64, type %T", subValue[j], subValue[j]) } + if column != "level" { + floatValue *= 1000 + } dataAll[filed_name] = append(slice, floatValue) } else { return response, fmt.Errorf("unexpected type for %v, assertion failed, type %T", subValue[j], subValue[j])