URI | /v2/service/statistics/${task_id}.json?start_date=XX&end_date=XX |
Method | GET |
参数说明 | task_id: 服务监控项目id start_date:开始时间(选填 2016-03-03) end_date:结束时间(选填2016-03-03) 默认返回当天全部数据 |
结果(json) | Apache: { "apache": { "list": [ { "check_date": "", //日期 "rps_min": "", //最小吞吐率 "rps_avg": "", //平均吞吐率 "rps_max": "", //最大吞吐率 "curr_reqs_min": "", //最小连接数 "curr_reqs_avg": """", //平均连接数 "curr_reqs_max": "" //最大连接数 }, …… ], "statistic": { "rps_avg": "0.00", //平均吞吐率 "rps_max": "0.00", //最大吞吐率 "curr_reqs_avg": "0.00", //平均并发连接数 "curr_reqs_max": "0.00" //最大并发连接数 } } } Nginx: { "nginx": { "list": [ { "check_date": "", //日期 "rps_min": "", //最小吞吐率 "rps_avg": "", //平均吞吐率 "rps_max": "", //最大吞吐率 "curr_reqs_min": "", //最小连接数 "curr_reqs_avg": """", //平均连接数 "curr_reqs_max": "" //最大连接数 }, …… ], "statistic": { "rps_avg": "0.00", //平均吞吐率 "rps_max": "0.00", //最大吞吐率 "curr_reqs_avg": "0.00", //平均并发连接数 "curr_reqs_max": "0.00" //最大并发连接数 } } } Lighttpd: { "lighttpd": { "list": [ { "check_date": "", //日期 "rps_min": "", //最小吞吐率 "rps_avg": "", //平均吞吐率 "rps_max": "", //最大吞吐率 "curr_reqs_min": "", //最小连接数 "curr_reqs_avg": """", //平均连接数 "curr_reqs_max": "" //最大连接数 }, …… ], "statistic": { "rps_avg": "0.00", //平均吞吐率 "rps_max": "0.00", //最大吞吐率 "curr_reqs_avg": "0.00", //平均并发连接数 "curr_reqs_max": "0.00" //最大并发连接数 } } } Memcache: { "memcache": { "list": [ { "check_date": "", //日期 "curr_connections_min": "", //最小连接数 "curr_connections_avg": """", //平均连接数 "curr_connections_max": "" //最大连接数 "bytes_min": "", //最小内存消耗 "bytes_avg": """", //平均内存消耗 "bytes_max": "" //最大内存消耗 "keyspace_ratio_min": "", //最小命中率 "keyspace_ratio_avg": """", //平均命中率 "keyspace_ratio_max": "" //最大命中率 "curr_items_min": "", //最小缓存数量 "curr_items_avg": """", //平均缓存数量 "curr_items_max": "" //最大缓存数量 "mem_ratio_min": "", //最小空间使用率 "mem_ratio_avg": """", //平均空间使用率 "mem_ratio_max": "" //最大空间使用率 }, …… ], "statistic": { "version": "1.4.4", //运行版本 "uptime ": "114.96", //连续运行天数 "limit_maxbytes": "1024.00", //最大内存使用量 "keyspace_ratio_avg": "", //平均命中率 "keyspace_ratio_max": "", //最大命中率 "bytes_avg": "", //平均消耗内存数 "bytes_max": "", //最大消耗内存数 "curr_connections_avg": "", //平均连接数 "curr_connections_max": "", //最大连接数 "connected_sec_avg": "", //平均每秒链接数 "connected_sec_max": "", //最大每秒链接数 " curr_items_avg": "", //平均缓存数 " curr_items_max ": "", //最大缓存数 "read_sec_avg": "", //每秒平均读 "read_sec_max": "", //每秒最大读 "write_sec_avg": "", //每秒平均写 "write_sec_max": "", //每秒最大写 "mem_ratio_avg": "", //平均空间使用率 "mem_ratio_max": "", //最大空间使用率
} } } MongoDB: { "mongodb": { "list": [ { "check_date": "", //日期 "connections_current_min": "", //最小连接数 "connections_current_avg": """", //平均连接数 "connections_current_max": "", //最大连接数 "globalLock_ratio_min": "", //最小锁定时间比例 "globalLock_ratio_avg": """", //平均锁定时间比例 "globalLock_ratio_max": "", //最大锁定时间比例 "page_faults_sec_min": "", //最小分页次数 "page_faults_sec_avg": """", //平均分页次数 "page_faults_sec_max": "", //最大分页次数 "indexCounters_missRatio_min": "", //最小命中率 "indexCounters_missRatio_avg": """", //平均命中率 "indexCounters_missRatio_max": "", //最大命中率 "indexCounters_btree_accesses_sec_min": "", //最小索引访问次数 "indexCounters_btree_accesses_sec_avg": """", //平均索引访问次数 "indexCounters_btree_accesses_sec_max": "" //最大索引访问次数 }, ……
], "statistic": { "version ": "", //运行版本 "host": "", //主机名与端口 "uptime": "", //连续运行时间 " mongodb_connections_current ": { " connections_current_avg ": "0.00", //平均连接数 " connections_current_max ": "0.00", //最大连接数 }, } } } MySQL: { "mysql": { "list": [ { "check_date": "", //日期 "Connections_min": "", //最小吞吐率 "Connections_avg": """", //平均吞吐率 "Connections_max": "", //最大吞吐率 "Bytes_received_min": "", //最小速率(流入) "Bytes_received_avg": """", //平均最小速率(流入) "Bytes_received_max": "", //最大最小速率(流入) "Bytes_sent_min": "", //最小速率(流出) "Bytes_sent_avg": """", //平均速率(流出) "Bytes_sent_max": "", //最大速率(流出) "Threads_connected_min": "", //最小(并发连接数) "Threads_connected_avg": """", //平均(并发连接数) "Threads_connected_max": "", //最大(并发连接数) }, …… ], "statistic": { " mysql_query_detail ": { //查询吞吐率 " Com_change_db_avg ": "0.00", //changedb " Com_change_db_max ": "0.00", " Com_select_avg ": "0.00", //select " Com_select_max ": "0.00", " Com_update_avg ": "0.00", //update " Com_update_max ": "0.00", " Com_insert_avg ": "0.00", //insert " Com_insert_max ": "0.00", " Com_delete_avg ": "0.00", //delete " Com_delete_max ": "0.00", }, "mysql_qcache_querysum ": { //查询缓存 " query_cache_size ": "0.00", //查询缓存空间大小 " query_cache_limit ": "0.00", //查询缓存最大查询数据集大小
}, " mysql_kcache_querysum ": { //索引缓存 " key_buffer_size ": "0.00", //索引缓存空间大小 }, " mysql_connps ": { //连接 " Connections_avg ": "0.00", //每秒连接次数 " Connections_max ": "0.00", " Threads_created_avg ": "0.00", //每秒实际创建连接数 " Threads_created_max ": "0.00", " thread_cache_size ": "0.00", //连接缓存大小 " max_connections ": "0.00", //最大允许连接数 }, " mysql_traffic ": { //网络流量 " Bytes_received_avg ": "0.00", //流入速率 " Bytes_received_max ": "0.00", " Bytes_sent_avg ": "0.00", //流出速率 " Bytes_sent_max ": "0.00", }, } } } Redis: { "redis": { "list": [ { "check_date": "", //日期 "connected_sec_min": "", //最小连接数 "connected_sec_avg": "", // 平均连接数 "connected_sec_max": "", //最大连接数 "keyspace_ratio_min": "", //最小命中率 "keyspace_ratio_avg": "", //平均命中率 "keyspace_ratio_max": "", //最大命中率 "used_memory_min": "", //最小已使用内存 "used_memory_avg": "", //平均已使用内存 "used_memory_max": "", //最大已使用内存 "connected_clients_min": "", //最小链接客户数 "connected_clients_avg": "", //平均链接客户数 "connected_clients_max": "", //最大链接客户数 "blocked_clients_min": "", //最小阻塞客户数 "blocked_clients_avg": "", //平均阻塞客户数 "blocked_clients_max": "", //最大阻塞客户数 "pubsub_channels_min": "", //最小Pub/Sub通道数 "pubsub_channels_avg": "", //平均Pub/Sub通道数 "pubsub_channels_max": "", //最大Pub/Sub通道数 "pubsub_patterns_min": "", //最小Pub/Sub模式数 "pubsub_patterns_avg": "", //平均Pub/Sub模式数 "pubsub_patterns_max": "" //最大Pub/Sub模式数 }, ……
], "statistic": { "redis_version ": "", //运行版本 "uptime_in_days": "", //连续运行时间 "changes_since_last_save": "", //最新变更数 "used_memory_avg": "", //平均使用内存 "used_memory_max": "", //最大使用内存 "commands_sec_avg": "", //每分钟平均执行命令数 "commands_sec_max": "", //每分钟最大执行命令数 "keyspace_ratio_avg": "", //平均命中率 "keyspace_ratio_max": "", //最大命中率 "connected_clients_avg": "", //平均链接客户数 "connected_clients_max": "", //最大链接客户数 "connected_sec_avg": "", //平均每分钟连接数 "connected_sec_max": "", //最大每分钟连接数 "blocked_clients_avg": "", //平均阻塞客户数 "blocked_clients_max": "", //最大阻塞客户数 "pubsub_channels_avg": "", //平均Pub/Sub通道数 "pubsub_channels_max": "", //最大Pub/Sub通道数 "pubsub_patterns_avg": "", //平均Pub/Sub模式数 "pubsub_patterns_max": "", //最大Pub/Sub模式数 } } } Tomcat: { "tomcat": { "list": [ { "check_date": "", //日期 "free_memory_min": "", //最小JVM可使用内存 "free_memory_avg": """", //平均JVM可使用内存 "free_memory_max": "", //最大JVM可使用内存 "total_memory_min": "", //最小JVM所有使用内存 "total_memory_avg": """", //平均VM所有使用内存 "total_memory_max": "", //最大JVM所有使用内存 "max_memory_min": "", //最小已使用内存 "max_memory_avg": """", //平均已使用内存 "max_memory_max": "", //最大已使用内存 "processing_time_sec_min": "", //最小Tomcat处理时间 "processing_time_sec_avg": """", //平均Tomcat处理时间 "processing_time_sec_max": "", //最大Tomcat处理时间 "request_count_sec_min": "", //最小Tomcat请求数 "request_count_sec_avg": """", //平均Tomcat请求数 "request_count_sec_max": "" //最大Tomcat请求数 "bytes_received_sec_min": "", //最小入流量 "bytes_received_sec_avg": """", //平均入流量 "bytes_received_sec_max": "" //最大入流量 "bytes_sent_sec_min": "", //最小出流量 "bytes_sent_sec_avg": """", //平均出流量 "bytes_sent_sec_max": "" //最大出流量 }, ……
], "statistic": { "tomcat_ver ": "", //tomcat运行版本 "jvm_ver": "", //jvm版本 "os_ver": "", //OS版本 "appname": "", //监控服务名 "total_memory": "", //JVM最大已使用内存 "max_memory": "", //JVM最大可使用内存 "max_processing_time": "", //请求最大处理时间 } } }
IIS: { "iis": { "list": [ { "check_date": "", //日期 "total_requestRate_min": "", //最小请求频率 "total_requestRate_avg": "", //平均请求频率 "total_requestRate_max": "", //最大请求频率 "total_resptime_min": "", //最小响应时间 "total_resptime_avg": """", //平均响应时间 "total_resptime_max": "" //最大响应时间 }, ……
], "statistic": { "clock ": "", //处理器速度 "processors": "", //核数 "architecture": "", //平台 "total_requestRate_avg ": "", //平均请求频率 " total_requestRate_max": "", //最大请求频率 " total_resptime_avg ": "", //平均响应时间 " total_resptime_max": "", //最大相应时间 } } }
SQLServer: { "sqlserver": { "list": [ //每日统计 { "check_date": "", //日期 "connections_min": "", //最小连接数 "connections_avg": "", //平均连接数 "connections_max": "", //最大连接数 "req_m_min": "", //最小请求频率 "req_m_avg": "", //平均请求频率 "req_m_max": "", //最大请求频率 "total_server_memory_min": "", //最小消耗物理内存数 "total_server_memory_avg": "", //平均消耗物理内存数 "total_server_memory_max": "" //最大消耗物理内存数 }, …… ], "statistic": { "cpu_count ": "", //cpu频率 "hyperthread_ratio": "", //超线程 "scheduler_count": "", //cpu核数 "physical_memory_mb": "", //物理内存 "virtual_memory_mb": "", //虚拟内存 "database_name": "", //数据库名称 " connections ": { " connections_avg ": "", //平均连接数 " connections_max ": "", //最大连接数 }, " request_rates ": { " req_m_avg ": "", //平均请求频率 " req_m_max ": "", //最大请求频率 }, } } }
Oracle: { "oracle": { "list": [ { "check_date": "", //日期 "Logical_read_min":"", //最小每秒逻辑读 "Logical_read_avg": "", //平均每秒逻辑读 "Logical_read_max":"", //最大每秒逻辑读 "iops_min": "", // 最小IOPS "iops_avg": "", // 平均IOPS "iops_max": "", // 最大IOPS "mbps_min": "", // 最小MBPS "mbps_avg": "", // 平均MBPS "mbps_max": "", // 最大MBPS "Ph_read_min": "", //最小物理读 "Ph_read_avg": "", //平均物理读 "Ph_read_max": "", //最大物理读 "Ph_write_min": "", //最小物理读 "Ph_write_avg": "", //平均物理读 "Ph_write_max": "" //最大物理读 }, …… ], "statistic": { "db_name": "", //数据库名 "db_id": "", //数据库id "db_instance": "", //实例名 "db_inst_num": "", //实例号 "F_IO": { //空间变化 "EXAMPLE": { "name": "EXAMPLE", //名称 "used": "", //已使用大小(MB) "total": "", //总大小(GB) "used_rate": "", //已使用率(%) "day_add": "" //日增长(MB) }, ...... }, "Read_": { //TOP SQL 逻辑读 "71k5024zn7c9a": { "SQL ID": "", "SQL Text": "", "Elapsed Time(s)": "", "cpu time(s)": "", "executions": " ", "Elap/Exec(s)": "", "db time": "" }, ...... }, "El_T": { //TOP SQL 消耗时间 "7vgmvmy8vvb9s": { "SQL ID": "", "SQL Text": "", "cpu time(s)": "", "Elapsed time(s)": "", "Executions": "", "cpu time/Exec(s)": "", "db time": "" }, ...... }, "CPU_T": { //TOP SQL CPU时间 "bunssq950snhf": { "SQL ID": "", "SQL Text": "", "Physical Reads": "", "Executions": "", "Reads/Exec": "", "cpu Time(s)": " ", "Elapsed Time(s)": "" }, ...... } } } } |