Commit 2a5cb571 authored by Thorsten Simons's avatar Thorsten Simons

1.4.4 - added some more queries

parent de987e47
Release History
===============
**1.4.4 2019-01-14**
* added some more queries
**1.4.3 2019-01-13**
* removed unnecessary debug output
......
......@@ -9,6 +9,9 @@ Built-in queries
$ hcprequestanalytics showqueries
available queries:
500_highest_throughput The 500 records with the highest throughput (Bytes/sec)
500_httpcode_409 The 500 newest records with http code 409
500_httpcode_413 The 500 newest records with http code 413
500_httpcode_503 The 500 newest records with http code 503
500_largest_req_httpcode_node The records with the 500 largest requests by req, httpcode, node
500_largest_size The records with the 500 largest requests sorted by size
500_worst_latency The records with the 500 worst latencies
......@@ -29,6 +32,7 @@ Built-in queries
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
ten_ns_proto_clientip_httpcode No. of records per Tenant / Namespace / protocol / client IP address / http code
ten_ns_proto_httpcode No. of records per Tenant / Namespace / protocol / http code
ten_ns_proto_percentile_req No. of records per Tenant / Namespace / protocol, including percentiles for size and latency
ten_ns_proto_user_httpcode No. of records per Tenant / Namespace / protocol / user / http code
......
......@@ -312,6 +312,17 @@ query : SELECT getTenant(namespace) as Tenant,
getProtocol(namespace), user, httpcode
freeze pane : E5
[ten_ns_proto_clientip_httpcode]
comment : No. of records per Tenant / Namespace / protocol / client IP address / http code
query : SELECT getTenant(namespace) as Tenant,
getNamespace(path, namespace) as Namespace,
getProtocol(namespace) as Protocol, clientip, httpcode,
count(*)
FROM logrecs GROUP BY getTenant(namespace),
getNamespace(path, namespace),
getProtocol(namespace), clientip, httpcode
freeze pane : E5
[ten_proto_httpcode]
comment : No. of records per Tenant / protocol / http code
query : SELECT getTenant(namespace) as Tenant,
......@@ -321,3 +332,20 @@ query : SELECT getTenant(namespace) as Tenant,
getProtocol(namespace), httpcode
freeze pane : C5
[500_httpcode_409]
comment : The 500 newest records with http code 409
query : SELECT *
FROM logrecs WHERE httpcode = '409' ORDER BY timestamp DESC LIMIT 500
freeze pane : A5
[500_httpcode_413]
comment : The 500 newest records with http code 413
query : SELECT *
FROM logrecs WHERE httpcode = '413' ORDER BY timestamp DESC LIMIT 500
freeze pane : A5
[500_httpcode_503]
comment : The 500 newest records with http code 503
query : SELECT *
FROM logrecs WHERE httpcode = '503' ORDER BY timestamp DESC LIMIT 500
freeze pane : A5
\ No newline at end of file
......@@ -27,8 +27,8 @@ class Gvars:
"""
# version control
s_version = "1.4.3"
s_builddate = '2019-01-13'
s_version = "1.4.4"
s_builddate = '2019-01-14'
s_build = "{}/Sm".format(s_builddate)
s_minPython = "3.5"
s_description = "hcprequestanalytics"
......
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