Commit b6f7e122 authored by 胡凯旋's avatar 胡凯旋

add max

parent e9754af8
...@@ -48,7 +48,7 @@ class RDSCollector(object): ...@@ -48,7 +48,7 @@ class RDSCollector(object):
avg_metric_family.add_metric([rds_name], point['Average']/100, point['timestamp']/1000) avg_metric_family.add_metric([rds_name], point['Average']/100, point['timestamp']/1000)
max_metric_family.add_metric([rds_name], point['Maximum']/100, point['timestamp']/1000) max_metric_family.add_metric([rds_name], point['Maximum']/100, point['timestamp']/1000)
metrics.append(avg_metric_family) metrics.append(avg_metric_family, max_metric_family)
for m in metrics: for m in metrics:
yield m yield m
......
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