mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #12026 from zhaoxiangchun/automated-cherry-pick-of-#12024-upstream-release-3.7
Automated cherry pick of #12024: feat(cloudmon): support HuaweiCloudStack rds metric
This commit is contained in:
@@ -120,7 +120,6 @@ func (self *SHwCloudReport) collectRegionMetricOfRds(region cloudprovider.ICloud
|
||||
servers []jsonutils.JSONObject) error {
|
||||
dataList := make([]influxdb.SMetricData, 0)
|
||||
|
||||
hwReg := region.(*huawei.SRegion)
|
||||
since, until, err := common.TimeRangeFromArgs(self.Args)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -159,9 +158,10 @@ func (self *SHwCloudReport) collectRegionMetricOfRds(region cloudprovider.ICloud
|
||||
if tmp > len(metas) {
|
||||
tmp = len(metas)
|
||||
}
|
||||
metricDatas, err := hwReg.GetMetricsData(metas[index:tmp], since, until)
|
||||
metricDatas, err := self.GetMetricData(region, metas[index:tmp], since, until)
|
||||
if err != nil {
|
||||
return err
|
||||
log.Errorln(err)
|
||||
continue
|
||||
}
|
||||
if len(metricDatas) > 0 {
|
||||
for _, metricData := range metricDatas {
|
||||
|
||||
Reference in New Issue
Block a user