summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2019-01-08 10:33:29 +0600
committerzhengchao <[email protected]>2019-01-08 10:33:29 +0600
commit39610dfdf9cb3187644caede4f5cd40d2b1bd7fa (patch)
tree4fb6cbcb7db1a07d3788e8a9fc53aa154cf6460c /readme.md
parenta3827e1c6481ad9bc759c8a2e00c688604976354 (diff)
改用counter输出status的current值。
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index 168bfb0..39c6328 100644
--- a/readme.md
+++ b/readme.md
@@ -34,9 +34,9 @@ status_00: 100 status_01: 10
​ 输出前值(FS_CALC_CURRENT)时,StatsD输出会采用Histogram类型,以便telegraf对其进行聚合。例如下面的grafana查询语句:
-`SELECT sum("sum_sum") / 5 FROM "[tango_cache]SESSION_REDIS" WHERE $timeFilter GROUP BY time(10s) fill(linear)`
+`SELECT sum("value_sum") / 5 FROM "[tango_cache]SESSION_REDIS" WHERE $timeFilter GROUP BY time(10s) fill(linear)`
-​ 该语句在聚合多个节点上SESSION_REDIS的总数,group by 的时间为10s,因为FieldStat的输出间隔为2s(通过`STAT_CYCLE`参数),所以sum("sum_sum") 的值要再除以5。
+​ 该语句在聚合多个节点上SESSION_REDIS的总数,group by 的时间为10s,因为FieldStat的输出间隔为2秒(初始化时由`STAT_CYCLE`参数设置,默认2s),所以sum("value_sum") 的值要再除以5。
​ 注意:在使用多个FieldStat实例时,`STAT_CYCLE`必须设定为相同的值。