mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(monitor): inject ResType (#21625)
This commit is contained in:
@@ -561,7 +561,9 @@ func (c *QueryCondition) setResType() {
|
||||
}
|
||||
} */
|
||||
if c.Query.Model.Database == monitor.METRIC_DATABASE_TELE {
|
||||
c.ResType = resType
|
||||
if c.ResType == "" {
|
||||
c.ResType = resType
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,6 @@ func (e *InfluxdbExecutor) Query(ctx context.Context, dsInfo *tsdb.DataSource, t
|
||||
return nil, errors.Wrap(err, "GetRawQuery")
|
||||
}
|
||||
|
||||
log.Debugf("sql: %s", rawQuery)
|
||||
db := dsInfo.Database
|
||||
if db == "" {
|
||||
db = tsdbQuery.Queries[0].Database
|
||||
|
||||
Reference in New Issue
Block a user