Commit 8b76e143 authored by 胡凯旋's avatar 胡凯旋

add connection/ipos usage metric

parent 65788d54
...@@ -19,8 +19,10 @@ class RDSCollector(object): ...@@ -19,8 +19,10 @@ class RDSCollector(object):
# 阿里云SDK查询字段与prometheus metric name的映射 # 阿里云SDK查询字段与prometheus metric name的映射
queryname_metricname = { queryname_metricname = {
'CpuUsage': 'rds_cpu_usage_ratio', 'CpuUsage': 'rds_cpu_usage_ratio',
'DiskUsage': 'rds_disk_usage_ratio', # 'DiskUsage': 'rds_disk_usage_ratio',
'MemoryUsage': 'rds_memory_usage_radio', 'MemoryUsage': 'rds_memory_usage_radio',
'ConnectionUsage': 'rds_connection_usage_radio',
'IOPSUsage': 'rds_iops_usage_radio',
} }
metrics_from_aliyun = {} metrics_from_aliyun = {}
all_rds_id = list(rds_instances.keys()) all_rds_id = list(rds_instances.keys())
......
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