其他分享
首页 > 其他分享> > openTSDB API详解之stats

openTSDB API详解之stats

作者:互联网

openTSDB API详解之stats[统计]

这个命令与HTTP /api/stats命令像似,因为它将返回一个TSD stats列表,每行一个,使用put的格式。无论如何,这个命令没有修改TSD。

Request

命令格式如下:
stats

Response

关于运行TSD的一系列时间序列

Example

tsd.hbase.rpcs 1479600574 0 type=increment host=web01
tsd.hbase.rpcs 1479600574 0 type=delete host=web01
tsd.hbase.rpcs 1479600574 1 type=get host=web01
tsd.hbase.rpcs 1479600574 0 type=put host=web01
tsd.hbase.rpcs 1479600574 0 type=append host=web01
tsd.hbase.rpcs 1479600574 0 type=rowLock host=web01
tsd.hbase.rpcs 1479600574 0 type=openScanner host=web01
tsd.hbase.rpcs 1479600574 0 type=scan host=web01
tsd.hbase.rpcs.batched 1479600574 0 host=web01

以下是在笔者的电脑上的运行过程

[root@server4 conf]# telnet 192.168.211.4 4399
Trying 192.168.211.4...
Connected to 192.168.211.4.
Escape character is '^]'.
stats
tsd.connectionmgr.connections 1536234476 3 type=open host=server4
tsd.connectionmgr.connections 1536234476 0 type=rejected host=server4
tsd.connectionmgr.connections 1536234476 17 type=total host=server4
tsd.connectionmgr.exceptions 1536234476 0 type=closed host=server4
tsd.connectionmgr.exceptions 1536234476 0 type=reset host=server4
tsd.connectionmgr.exceptions 1536234476 0 type=timeout host=server4
tsd.connectionmgr.exceptions 1536234476 0 type=unknown host=server4
tsd.rpc.received 1536234476 20 type=telnet host=server4
tsd.rpc.received 1536234476 18725 type=http host=server4
tsd.rpc.received 1536234476 0 type=http_plugin host=server4
tsd.rpc.exceptions 1536234476 1 host=server4
tsd.http.latency_50pct 1536234476 2 type=all host=server4
tsd.http.latency_75pct 1536234476 2 type=all host=server4
tsd.http.latency_90pct 1536234476 2 type=all host=server4
tsd.http.latency_95pct 1536234476 2 type=all host=server4
tsd.http.latency_50pct 1536234476 28 type=graph host=server4
tsd.http.latency_75pct 1536234476 32 type=graph host=server4
tsd.http.latency_90pct 1536234476 42 type=graph host=server4
tsd.http.latency_95pct 1536234476 56 type=graph host=server4
tsd.http.latency_50pct 1536234476 22 type=gnuplot host=server4
tsd.http.latency_75pct 1536234476 24 type=gnuplot host=server4
tsd.http.latency_90pct 1536234476 26 type=gnuplot host=server4
tsd.http.latency_95pct 1536234476 32 type=gnuplot host=server4
tsd.http.graph.requests 1536234476 10808 cache=disk host=server4
tsd.http.graph.requests 1536234476 422 cache=miss host=server4
tsd.rpc.received 1536234476 7440 type=put host=server4
tsd.rpc.errors 1536234476 0 type=hbase_errors host=server4
tsd.rpc.errors 1536234476 0 type=invalid_values host=server4
tsd.rpc.errors 1536234476 0 type=illegal_arguments host=server4
tsd.rpc.errors 1536234476 0 type=unknown_metrics host=server4
tsd.rpc.errors 1536234476 0 type=socket_writes_blocked host=server4
tsd.http.query.invalid_requests 1536234476 0 host=server4
tsd.http.query.exceptions 1536234476 0 host=server4
tsd.http.query.success 1536234476 0 host=server4
tsd.jvm.thread.states 1536234476 0 state=new host=server4
tsd.jvm.thread.states 1536234476 8 state=runnable host=server4
tsd.jvm.thread.states 1536234476 0 state=blocked host=server4
tsd.jvm.thread.states 1536234476 3 state=waiting host=server4
tsd.jvm.thread.states 1536234476 0 state=terminated host=server4
tsd.jvm.thread.states 1536234476 3 state=timed_waiting host=server4
tsd.jvm.thread.count 1536234476 14 host=server4
tsd.uid.cache-hit 1536234476 8284 kind=metrics host=server4
tsd.uid.cache-miss 1536234476 1 kind=metrics host=server4
tsd.uid.cache-size 1536234476 2 kind=metrics host=server4
tsd.uid.random-collisions 1536234476 0 kind=metrics host=server4
tsd.uid.rejected-assignments 1536234476 0 kind=metrics host=server4
tsd.uid.ids-used 1536234476 3 kind=metrics host=server4
tsd.uid.ids-available 1536234476 16777212 kind=metrics host=server4
tsd.uid.cache-hit 1536234476 7861 kind=tagk host=server4
tsd.uid.cache-miss 1536234476 1 kind=tagk host=server4
tsd.uid.cache-size 1536234476 2 kind=tagk host=server4
tsd.uid.random-collisions 1536234476 0 kind=tagk host=server4
tsd.uid.rejected-assignments 1536234476 0 kind=tagk host=server4
tsd.uid.ids-used 1536234476 3 kind=tagk host=server4
tsd.uid.ids-available 1536234476 16777212 kind=tagk host=server4
tsd.uid.cache-hit 1536234476 7861 kind=tagv host=server4
tsd.uid.cache-miss 1536234476 1 kind=tagv host=server4
tsd.uid.cache-size 1536234476 2 kind=tagv host=server4
tsd.uid.random-collisions 1536234476 0 kind=tagv host=server4
tsd.uid.rejected-assignments 1536234476 0 kind=tagv host=server4
tsd.uid.ids-used 1536234476 5 kind=tagv host=server4
tsd.uid.ids-available 1536234476 16777210 kind=tagv host=server4
tsd.uid.filter.rejected 1536234476 0 kind=raw host=server4
tsd.uid.filter.rejected 1536234476 0 kind=aggregate host=server4
tsd.jvm.ramfree 1536234476 35190816 host=server4
tsd.jvm.ramused 1536234476 46661632 host=server4
tsd.hbase.latency_50pct 1536234476 0 method=put host=server4 class=IncomingDataPoints
tsd.hbase.latency_75pct 1536234476 0 method=put host=server4 class=IncomingDataPoints
tsd.hbase.latency_90pct 1536234476 0 method=put host=server4 class=IncomingDataPoints
tsd.hbase.latency_95pct 1536234476 0 method=put host=server4 class=IncomingDataPoints
tsd.datapoints.added 1536234476 7440 type=all host=server4 class=TSDB
tsd.hbase.latency_50pct 1536234476 4 method=scan host=server4 class=TsdbQuery
tsd.hbase.latency_75pct 1536234476 6 method=scan host=server4 class=TsdbQuery
tsd.hbase.latency_90pct 1536234476 12 method=scan host=server4 class=TsdbQuery
tsd.hbase.latency_95pct 1536234476 22 method=scan host=server4 class=TsdbQuery
tsd.hbase.root_lookups 1536234476 0 host=server4
tsd.hbase.meta_lookups 1536234476 4 type=uncontended host=server4
tsd.hbase.meta_lookups 1536234476 0 type=contended host=server4
tsd.hbase.rpcs 1536234476 0 type=increment host=server4
tsd.hbase.rpcs 1536234476 22 type=delete host=server4
tsd.hbase.rpcs 1536234476 5 type=get host=server4
tsd.hbase.rpcs 1536234476 7462 type=put host=server4
tsd.hbase.rpcs 1536234476 0 type=append host=server4
tsd.hbase.rpcs 1536234476 0 type=rowLock host=server4
tsd.hbase.rpcs 1536234476 423 type=openScanner host=server4
tsd.hbase.rpcs 1536234476 423 type=scan host=server4
tsd.hbase.rpcs.batched 1536234476 4 host=server4
tsd.hbase.flushes 1536234476 0 host=server4
tsd.hbase.connections.created 1536234476 4 host=server4
tsd.hbase.connections.idle_closed 1536234476 1 host=server4
tsd.hbase.nsre 1536234476 0 host=server4
tsd.hbase.nsre.rpcs_delayed 1536234476 0 host=server4
tsd.hbase.region_clients.open 1536234476 2 host=server4
tsd.hbase.region_clients.idle_closed 1536234476 1 host=server4
tsd.compaction.count 1536234476 19024 host=server4
tsd.compaction.duplicates 1536234476 60 type=identical host=server4
tsd.compaction.duplicates 1536234476 0 type=variant host=server4
tsd.compaction.queue.size 1536234476 23 host=server4
tsd.compaction.errors 1536234476 0 rpc=read host=server4
tsd.compaction.errors 1536234476 0 rpc=put host=server4
tsd.compaction.errors 1536234476 0 rpc=delete host=server4
tsd.compaction.writes 1536234476 22 host=server4
tsd.compaction.deletes 1536234476 1285 host=server4

标签:stats,1536234476,server4,tsd,host,API,openTSDB,hbase,type
来源: https://blog.51cto.com/lawsonabs/3011531