From 3df62c28bb0598b0b2e21ba061bb118b197f5714 Mon Sep 17 00:00:00 2001 From: Andrew Hackmann <5140848+bossinc@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:05:15 -0500 Subject: [PATCH] InfluxDB: Add Influx to check if series need to be fixed labels (#93299) add influx to check if series need to be fixed labels --- pkg/expr/converter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/expr/converter.go b/pkg/expr/converter.go index e2c8539d4c3..1eae19a972d 100644 --- a/pkg/expr/converter.go +++ b/pkg/expr/converter.go @@ -299,7 +299,7 @@ func WideToMany(frame *data.Frame, fixSeries func(series mathexp.Series, valueFi // NOTE: applicable only to some datas ources (datasources.DS_GRAPHITE, datasources.DS_TESTDATA, etc.); a more general solution should be investigated // returns a function that patches the mathexp.Series with information from data.Field from which it was created if the all series need to be fixed. Otherwise, returns nil func checkIfSeriesNeedToBeFixed(frames []*data.Frame, datasourceType string) func(series mathexp.Series, valueField *data.Field) { - supportedDatasources := []string{datasources.DS_GRAPHITE, datasources.DS_TESTDATA, datasources.DS_DYNATRACE} + supportedDatasources := []string{datasources.DS_GRAPHITE, datasources.DS_TESTDATA, datasources.DS_DYNATRACE, datasources.DS_INFLUXDB} checkdatasourceType := func(ds string) bool { return datasourceType == ds }