Commit 14822712 authored by Thorsten Simons's avatar Thorsten Simons

1.3.0 - docu fix

parent 8aaca294
......@@ -6,19 +6,28 @@ Built-in queries
**hcprequestanalytics** comes with a set of pre-defined queries::
$ hcprequestanalytics.py -d hcp72 showqueries
$ hcprequestanalytics showqueries
available queries:
clientip per-clientIP analysis
clientip_httpcode httpcode-per-clientIP analysis
clientip_request_httpcode httpcode-per-request-per-clientIP analysis
count count all records
latency_worst_100 the 100 recs with the worst latency
node per-node analysis
node_req node-per-request analysis
node_req_httpcode node-per-request-per-httpcode analysis
req per-request analysis
req_httpcode httpcode-per-request analysis
req_httpcode_node node-per-httpcode-per-request analysis
500_highest_throughput The 500 records with the highest throughput (KB/sec) for objects >= 1 Byte
500_largest The records with the 500 largest requests
500_worst_latency The records with the 500 worst latencies
clientip No. of records per client IP address
clientip_httpcode No. of records per http code per client IP address
clientip_request_httpcode No. of records per http code per request per client IP address
count No. of records, overall
day No. of records per day
day_hour No. of records per hour per day
day_hour_req No. of records per request per hour per day
day_req No. of records per request per day
day_req_httpcode No. of records per http code per request per day
node No. of records per node
node_req No. of records per request per node
node_req_httpcode No. of records per http code per request per node
percentile_req No. of records per request analysis, including percentiles for size and latency
percentile_throughput_kb No. of records per request, with percentiles on throughput (KB/sec) for objects >= 10MB
req No. of records per request
req_httpcode No. of records per http code per request
req_httpcode_node No. of records per node per http code per request
.. Tip::
......@@ -32,15 +41,16 @@ If additional queries are wanted, **hcprequestanalytics** can be easily extended
by creating a query file and adding it to the call::
$ cat addqueries
[a_count]
[add_count]
comment = count all records
query = SELECT count(*) FROM logrecs
[a_req_count]
[add_req_count]
comment = count records per request
query = SELECT request, count(*) FROM logrecs GROUP BY request
freeze pane : C3
[a_node_req_http]
[add_node_req_http]
comment = node-per-request-per-httpcode analysis
query = SELECT node, request, httpcode, count(*),
min(size), avg(size), max(size),
......@@ -59,25 +69,35 @@ by creating a query file and adding it to the call::
percentile(latency, 90), percentile(latency, 95),
percentile(latency, 99), percentile(latency, 99.9)
FROM logrecs GROUP BY node, request, httpcode
freeze pane : E3
You can check the available queries, including the additional ones::
$ hcprequestanalytics -d dbfile.db -a addqueries showqueries
available queries:
a_count count all records
a_node_req_http node-per-request-per-httpcode analysis
a_req_count count records per request
clientip per-clientIP analysis
clientip_httpcode httpcode-per-clientIP analysis
clientip_request_httpcode httpcode-per-request-per-clientIP analysis
count count all records
latency_worst_100 the 100 recs with the worst latency
node per-node analysis
node_req node-per-request analysis
node_req_httpcode node-per-request-per-httpcode analysis
req per-request analysis
req_httpcode httpcode-per-request analysis
req_httpcode_node node-per-httpcode-per-request analysis
500_highest_throughput The 500 records with the highest throughput (KB/sec) for objects >= 1 Byte
500_largest The records with the 500 largest requests
500_worst_latency The records with the 500 worst latencies
add_count count all records
add_node_req_http node-per-request-per-httpcode analysis
add_req_count count records per request
clientip No. of records per client IP address
clientip_httpcode No. of records per http code per client IP address
clientip_request_httpcode No. of records per http code per request per client IP address
count No. of records, overall
day No. of records per day
day_hour No. of records per hour per day
day_hour_req No. of records per request per hour per day
day_req No. of records per request per day
day_req_httpcode No. of records per http code per request per day
node No. of records per node
node_req No. of records per request per node
node_req_httpcode No. of records per http code per request per node
percentile_req No. of records per request analysis, including percentiles for size and latency
percentile_throughput_kb No. of records per request, with percentiles on throughput (KB/sec) for objects >= 10MB
req No. of records per request
req_httpcode No. of records per http code per request
req_httpcode_node No. of records per node per http code per request
Rules:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment