Skip to content

Commit

Permalink
chore: rename aliyun metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
xzchaoo committed Nov 16, 2023
1 parent 060ade2 commit 834f746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pipeline/integration/alibabacloud/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ func (p *Pipeline) collectOneMetric(traceId string, ams *alibabacloud.AliyunMetr
// 遍历每种聚合方式 (一般只有一个, 比如 average)
for _, aggregation := range conf.metricConf.Aggregations {
convertedName := fmt.Sprintf("%s_%s_%s_%s", prefix, //
strings.ReplaceAll(conf.namespaceMetrics.Name, "-", "_"), //
conf.metricConf.ConvertedMetricName, aggregation) //
strings.ReplaceAll(conf.namespaceMetrics.Namespace, "-", "_"), //
conf.metricConf.ConvertedMetricName, aggregation) //
for _, aliyunMetric := range aliyunMetrics {
aggregationValue, ok := aliyunMetric.Value[aggregation]
if !ok {
Expand Down

0 comments on commit 834f746

Please sign in to comment.