ATS metric query
ATS metric query
proxy.node.cache_hit_mem_ratio
proxy.node.cache_hit_mem_ratio_avg_10s #查询当前内存命中率 proxy.node.cache_hit_ratio
proxy.node.cache_hit_ratio_avg_10s #查询当前缓存(cache.db)命中率 proxy.node.bandwidth_hit_ratio
proxy.node.bandwidth_hit_ratio_avg_10s #查询当前带宽命中率 proxy.node.current_cache_connections #前端用户到cache.db链接数 proxy.node.cache.percent_free #Cache Percent Free(cache.db空闲空间百分比) proxy.node.current_client_connections #前端用户到ATS的连接数 proxy.node.current_server_connections #到后端源站的连接数 proxy.node.user_agent_xacts_per_second #平均每秒处理的客户端并发数 proxy.node.client_throughput_out #当前ATS输出到前端的带宽流量(单位Mbps) proxy.node.current_cache_connections 等价于 proxy.node.http.cache_current_connections_count proxy.node.current_client_connections 等价于 proxy.node.http.user_agent_current_connections_count proxy.node.current_server_connections 等价于 proxy.node.http.origin_server_current_connections_count
关于带宽命中率参考: Bandwidth and Transfer
proxy.node.bandwidth_hit_ratioThe difference of proxy.node.user_agent_total_bytes and proxy.node.origin_server_total_bytes, divided by proxy.node.user_agent_total_bytes.Represents the ratio of bytes served to user agents which were satisfied by cache hits, since statistics collection began.
proxy.node.bandwidth_hit_ratio_avg_10sThe difference of proxy.node.user_agent_total_bytes_avg_10s and proxy.node.origin_server_total_bytes_avg_10s, divided by proxy.node.user_agent_total_bytes_avg_10s.Represents the ratio of bytes served to user agents which were satisfied by cache hits, over the previous 10 seconds.
带宽命中率可由下面计算得来:
[root@~]# /opt/soft/ats/bin/traffic_ctl metric match total_bytes_avg_10s
proxy.node.user_agent_total_bytes_avg_10s 2161301760.000000
proxy.node.origin_server_total_bytes_avg_10s 176160640.000000
proxy.cluster.user_agent_total_bytes_avg_10s 1325454080.000000
proxy.cluster.origin_server_total_bytes_avg_10s 1294467072.000000
[root@~]#
[root@~]# /opt/soft/ats/bin/traffic_ctl metric get proxy.node.bandwidth_hit_ratio_avg_10s
proxy.node.bandwidth_hit_ratio_avg_10s 0.918493
[root@~]#
[root@~]# awk 'BEGIN{print (2161301760-176160640)/2161301760}'
0.918493
[root@~]#
关于ATS向前端输出的带宽值
proxy.node.http.throughput
10秒内的响应客户端的输出带宽值,单位是
bytes
proxy.node.http.throughput
Collection: global
Type: gauge
Units: bytes
Datatype: integer
The throughput of responses to user agents over the previous 10 seconds, in bytes.
proxy.node.client_throughput_out
10秒内的响应客户端的输出带宽值,单位是
megabits
proxy.node.client_throughput_out
Collection: global
Type: gauge
Units: mbits
Datatype: float
The value of proxy.node.http.throughput represented in megabits.
Code:
integer 'proxy.node.http.throughput' [[
local self = ... return rate_of_10s(self,
function() return proxy.node.http.user_agent_total_response_bytes end
)
]]
ATS metric query的更多相关文章
- 聊聊flink的log.file配置
本文主要研究一下flink的log.file配置 log4j.properties flink-release-1.6.2/flink-dist/src/main/flink-bin/conf/log ...
- 【Azure 环境】【Azure Developer】使用Python代码获取Azure 中的资源的Metrics定义及数据
问题描述 使用Python SDK来获取Azure上的各种资源的Metrics的名称以及Metrics Data的示例 问题解答 通过 azure-monitor-query ,可以创建一个 metr ...
- Loki二进制命令帮助
Usage of config-file-loader: -auth.enabled Set to false to disable auth. (default true) -azure.accou ...
- ES的Query、Filter、Metric、Bucketing使用详解
由于笔者在实际项目仅仅将ES用作索引数据库,并没有深入研究过ES的搜索功能.而且鉴于笔者的搜索引擎知识有限,本文将仅仅介绍ES简单(非全文)的查询API. 笔者原本打算在本文中介绍聚合API的内容,但 ...
- iOS9 白名单问题 -canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
[iOS开发]-canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query fo ...
- ATS 分级缓存
理解缓存分级cache hierarchies 缓存分级是由彼此能够相互通信的各级缓存组成的,ATS支持几种类型的缓存分级.所有的缓存分级都有父子缓存概念. 父缓存位于缓存分级的较高级别,ATS能将请 ...
- Azure SQL Database (26) 使用Query Store对Azure SQL Database监控
<Windows Azure Platform 系列文章目录> 我们在使用Azure SQL Database的时候,需要对数据库的性能进行监控,这时候就可以有两种方法: 1.第一种方法, ...
- open-falcon之query
功能 query组件,提供统一的绘图数据查询入口.query组件接收查询请求,根据一致性哈希算法去相应的graph实例查询不同metric的数据,然后汇总拿到的数据,最后统一返回给用户. 配置文件 { ...
- ganglia监控自己定义metric实践
Ganglia监控系统是UC Berkeley开源的一个项目,设计初衷就是要做好分布式集群的监控.监控层面包含资源层面和业务层面,资源层面包含cpu.memory.disk.IO.网络负载等,至于业务 ...
随机推荐
- jquery 語法
基本形式: $(selector).action() 文檔加載函數: $(document).Ready{ function(){ //將所有的函數寫到文檔加載函數里,可以防止頁面未加載完全,就執行j ...
- Java中的浮点型(Double&Float)计算问题
在刚刚做完的一个项目中,遇到了double型计算不精确的问题.到网上查找后,问题得到解决.经验共享,在这里总结一下. Java中的浮点数类型float和double不能够进行精确运算.这个问题有时候非 ...
- ceph 安装ceph问题汇总
1.在不同节点安装ceph时,出现以下异常: 参考这里 ceph deploy RuntimeError: NoSectionError: No section: 'ceph' 解决方法: 在报错的机 ...
- BZOJ1926[Sdoi2010]粟粟的书架——二分答案+主席树
题目描述 幸福幼儿园 B29 班的粟粟是一个聪明机灵.乖巧可爱的小朋友,她的爱好是画画和读书,尤其喜欢 Thomas H. Co rmen 的文章.粟粟家中有一个 R行C 列的巨型书架,书架的每一个位 ...
- BZOJ4785 ZJOI2017树状数组(概率+二维线段树)
可以发现这个写挂的树状数组求的是后缀和.find(r)-find(l-1)在模2意义下实际上查询的是l-1~r-1的和,而本来要查询的是l~r的和.也就是说,若结果正确,则a[l-1]=a[r](mo ...
- JavaScript利用递归和循环实现阶乘
[实现方法] 1.利用while循环来做,当然for循环也可以. 2.递归 [代码内容] 偷懒,直接用onkeyup事件来限制来页面的输入 循环代码: //第一种方法 while循环 oCount.o ...
- 自学Linux Shell11.6-退出shell
点击返回 自学Linux命令行与Shell脚本之路 11.6-退出shell shell运行的每一个命令都是使用 退出状态码 告诉shell它已经运行完毕.退出状态码是一个0~255的整数值,在命令结 ...
- [luogu4868]Preprefix sum
https://www.luogu.org/problemnew/show/P4868 题目大意 单点修改,查询前缀前缀和. 分析 遇到了单点修改,前缀和,很明显是要树状数组维护解决问题. 请看以下我 ...
- 洛谷 P2680 运输计划 解题报告
P2680 运输计划 题目背景 公元2044年,人类进入了宇宙纪元. 题目描述 公元2044年,人类进入了宇宙纪元. \(L\)国有\(n\)个星球,还有\(n-1\)条双向航道,每条航道建立在两个星 ...
- wordcloud词云
借鉴别人的一个小例子,快速生成词云的代码: from wordcloud import WordCloud f = open(u'txt/AliceEN.txt','r').read() wordcl ...