Commit 6180d06b authored by 胡凯旋's avatar 胡凯旋

fix

parent 7d9513f7
...@@ -70,7 +70,7 @@ class RDSCollector(object): ...@@ -70,7 +70,7 @@ class RDSCollector(object):
point['Average']/100.0, point['timestamp']/1000) point['Average']/100.0, point['timestamp']/1000)
max_metric_family.add_metric([rds_name, rds_type], max_metric_family.add_metric([rds_name, rds_type],
point['Maximum']/100.0, point['timestamp']/1000) point['Maximum']/100.0, point['timestamp']/1000)
with_factor_metric_family.add_metric([rds_name+'*'+rds_factor, rds_type], with_factor_metric_family.add_metric(['{}*{}'.format(rds_name,rds_factor), rds_type],
point['Average']*rds_factor/100.0, point['timestamp']/1000) point['Average']*rds_factor/100.0, point['timestamp']/1000)
metrics.extend([avg_metric_family, max_metric_family, metrics.extend([avg_metric_family, max_metric_family,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment