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_ratio

    • The 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_10s
    • The 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的更多相关文章

  1. 聊聊flink的log.file配置

    本文主要研究一下flink的log.file配置 log4j.properties flink-release-1.6.2/flink-dist/src/main/flink-bin/conf/log ...

  2. 【Azure 环境】【Azure Developer】使用Python代码获取Azure 中的资源的Metrics定义及数据

    问题描述 使用Python SDK来获取Azure上的各种资源的Metrics的名称以及Metrics Data的示例 问题解答 通过 azure-monitor-query ,可以创建一个 metr ...

  3. Loki二进制命令帮助

    Usage of config-file-loader: -auth.enabled Set to false to disable auth. (default true) -azure.accou ...

  4. ES的Query、Filter、Metric、Bucketing使用详解

    由于笔者在实际项目仅仅将ES用作索引数据库,并没有深入研究过ES的搜索功能.而且鉴于笔者的搜索引擎知识有限,本文将仅仅介绍ES简单(非全文)的查询API. 笔者原本打算在本文中介绍聚合API的内容,但 ...

  5. 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 ...

  6. ATS 分级缓存

    理解缓存分级cache hierarchies 缓存分级是由彼此能够相互通信的各级缓存组成的,ATS支持几种类型的缓存分级.所有的缓存分级都有父子缓存概念. 父缓存位于缓存分级的较高级别,ATS能将请 ...

  7. Azure SQL Database (26) 使用Query Store对Azure SQL Database监控

    <Windows Azure Platform 系列文章目录> 我们在使用Azure SQL Database的时候,需要对数据库的性能进行监控,这时候就可以有两种方法: 1.第一种方法, ...

  8. open-falcon之query

    功能 query组件,提供统一的绘图数据查询入口.query组件接收查询请求,根据一致性哈希算法去相应的graph实例查询不同metric的数据,然后汇总拿到的数据,最后统一返回给用户. 配置文件 { ...

  9. ganglia监控自己定义metric实践

    Ganglia监控系统是UC Berkeley开源的一个项目,设计初衷就是要做好分布式集群的监控.监控层面包含资源层面和业务层面,资源层面包含cpu.memory.disk.IO.网络负载等,至于业务 ...

随机推荐

  1. jmeter 使用csv文件 注意项

    1.首先在jmeter 中导入csv文件时我们程序并不知道csv文件中有多少行 : >1.获取的时候 使用 循环控制器来获取csv文件中的所有数据 : 通过 ${__jexl3("${ ...

  2. 解决Ubuntu中vi命令的编辑模式下不能正常使用方向键和退格键的问题

    在Ubuntu中,进入vi命令的编辑模式,发现按方向键不能移动光标,而是会输出ABCD,以及退格键也不能正常删除字符.这是由于Ubuntu预装的是vim-tiny,而我们需要使用vim-full,解决 ...

  3. python常用命令和基础运算符

    基础运算符 http://www.cnblogs.com/alex3714/articles/5465198.html 身份运算符:is is not成员运算符:in not in ##in 判断元素 ...

  4. 【Spring】—— 自动装配

    一.Spring中装配bean的方式 1.在XML中显式配置 2.在Java中进行显式配置 3.隐士的bean发现机制和自动装配 二.自动装配示例 1.在需要装配到其他bean中的类中加入@Compo ...

  5. LODOP弹出对话框获取保存文件的路径

    通常一般不会让用户自己在文本框里填上路径,因为路径要输入字母字符等比较麻烦,而且用户硬盘里文件很多,也不知道要保存在哪里,LODOP可以弹出一个选择保存路径的弹窗,然后把返回选择的路径值.这样用户就可 ...

  6. JavaScript实现两小时倒计时

    [构思] 因为只需要的是两小时,所以时间直接写死,然后通过setInterval每1000ms对时间进行减1操作 前期未考虑到当时分秒小于10的状态,所以后面又加上了一个checkTime()来进行限 ...

  7. Python3网络爬虫(1):利用urllib进行简单的网页抓取

    1.开发环境 pycharm2017.3.3 python3.5 2.网络爬虫的定义 网络爬虫,也叫网络蜘蛛(web spider),如果把互联网比喻成一个蜘蛛网,spider就是一只在网上爬来爬去的 ...

  8. LOJ #6202. 叶氏筛法(min_25 筛)

    题意 求 \([L, R]\) 之间的素数之和 . \(L≤10^{10},2×10^{10} \le R \le 10^{11}\) 题解 一个有点裸的 min_25筛 ? 现在我只会筛素数的前缀和 ...

  9. Leetcode 237.删除链表中的节点 By Python

    请编写一个函数,使其可以删除某个链表中给定的(非末尾)节点,你将只被给定要求被删除的节点. 现有一个链表 -- head = [4,5,1,9],它可以表示为: 4 -> 5 -> 1 - ...

  10. 【转】IAR IDE for MSP430、8051、ARM等平台的结合使用

    IAR IDE for MSP430.8051.ARM等平台的结合使用 以前很长一段时间使用IAR作为MSP430的开发平台,前几天一个无线监控的项目用到了Zigbee(CC2530),于是开始使用I ...