Commit bc3ece23 authored by Thorsten Simons's avatar Thorsten Simons

1.4.5 - added a query that list users accessing HCP

parent 2a5cb571
......@@ -47,3 +47,4 @@ docs/_build/
test/
.DS_Store
ubuntu-xenial-16.04-cloudimg-console.log
Release History
===============
**1.4.5 2019-01-23**
* added a query that list users accessing HCP
**1.4.4 2019-01-14**
* added some more queries
......
......@@ -23,12 +23,12 @@
[count]
comment : No. of records, overall
query : SELECT count(*) FROM logrecs
query : SELECT count(*) as count FROM logrecs
freeze pane : A5
[clientip]
comment : No. of records per client IP address
query : SELECT clientip, count(*),
query : SELECT clientip, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -37,7 +37,7 @@ freeze pane : C5
[clientip_httpcode]
comment : No. of records per http code per client IP address
query : SELECT clientip, httpcode, count(*),
query : SELECT clientip, httpcode, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -46,7 +46,7 @@ freeze pane : D5
[clientip_request_httpcode]
comment : No. of records per http code per request per client IP address
query : SELECT clientip, request, httpcode, count(*),
query : SELECT clientip, request, httpcode, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -55,7 +55,7 @@ freeze pane : E5
[req]
comment : No. of records per request
query : SELECT request, count(*),
query : SELECT request, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -64,7 +64,7 @@ freeze pane : C5
[req_httpcode]
comment : No. of records per http code per request
query : SELECT request, httpcode, count(*),
query : SELECT request, httpcode, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -73,7 +73,7 @@ freeze pane : C5
[req_httpcode_node]
comment : No. of records per node per http code per request
query : SELECT request, httpcode, node, count(*),
query : SELECT request, httpcode, node, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -82,7 +82,7 @@ freeze pane : E5
[node]
comment : No. of records per node
query : SELECT node, count(*),
query : SELECT node, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -91,7 +91,7 @@ freeze pane : C5
[node_req]
comment : No. of records per request per node
query : SELECT node, request, count(*),
query : SELECT node, request, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -100,7 +100,7 @@ freeze pane : D5
[node_req_httpcode]
comment : No. of records per http code per request per node
query : SELECT node, request, httpcode, count(*),
query : SELECT node, request, httpcode, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -111,7 +111,7 @@ freeze pane : E5
comment : No. of records per day
query : SELECT printf("%%s/%%s", substr(timestampstr, 4, 3),
substr(timestampstr, 1, 2)) AS day,
count(*),
count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -122,7 +122,7 @@ freeze pane : C5
comment : No. of records per request per day
query : SELECT printf("%%s/%%s", substr(timestampstr, 4, 3),
substr(timestampstr, 1, 2)) AS day,
request, count(*),
request, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -134,7 +134,7 @@ comment : No. of records per hour per day
query : SELECT printf("%%s/%%s", substr(timestampstr, 4, 3),
substr(timestampstr, 1, 2)) AS day,
printf("%%s", substr(timestampstr, 13, 2)) AS hour,
count(*),
count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -146,7 +146,7 @@ comment : No. of records per request per hour per day
query : SELECT printf("%%s/%%s", substr(timestampstr, 4, 3),
substr(timestampstr, 1, 2)) AS day,
printf("%%s", substr(timestampstr, 13, 2)) AS hour,
request, count(*),
request, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -157,7 +157,7 @@ freeze pane : E5
comment : No. of records per http code per request per day
query : SELECT printf("%%s/%%s", substr(timestampstr, 4, 3),
substr(timestampstr, 1, 2)) AS day,
request, httpcode, count(*),
request, httpcode, count(*) as count,
min(size), avg(size), max(size),
min(latency), avg(latency),
max(latency)
......@@ -192,7 +192,7 @@ freeze pane : C5
[percentile_req]
comment : No. of records per request analysis, including percentiles for size and latency
query : SELECT request, count(*),
query : SELECT request, count(*) as count,
min(size), avg(size), max(size),
percentile(size, 10) as 'pctl-10 (size)',
percentile(size, 20) as 'pctl-20 (size)',
......@@ -234,7 +234,7 @@ freeze pane : D5
[percentile_throughput_128kb]
comment : No. of records per request, with percentiles on throughput (Bytes/sec) for objects >= 128KB
query : SELECT request, count(*),
query : SELECT request, count(*) as count,
min(tp(size, latency)) as 'min(B/sec)',
avg(tp(size, latency)) as 'avg(B/sec)',
max(tp(size, latency)) as 'max(B/sec)',
......@@ -258,7 +258,7 @@ comment : No. of records per Tenant / Namespace / protocol / http code
query : SELECT getTenant(namespace) as Tenant,
getNamespace(path, namespace) as Namespace,
getProtocol(namespace) as Protocol, httpcode,
count(*)
count(*) as count
FROM logrecs GROUP BY getTenant(namespace),
getNamespace(path, namespace),
getProtocol(namespace), httpcode
......@@ -268,7 +268,7 @@ freeze pane : D5
comment : No. of records per Tenant / Namespace / protocol, including percentiles for size and latency
query : SELECT getTenant(namespace) as Tenant,
getNamespace(path, namespace) as Namespace,
getProtocol(namespace) as Protocol, request, count(*),
getProtocol(namespace) as Protocol, request, count(*) as count,
min(size), avg(size), max(size),
percentile(size, 10) as 'pctl-10 (size)',
percentile(size, 20) as 'pctl-20 (size)',
......@@ -306,7 +306,7 @@ comment : No. of records per Tenant / Namespace / protocol / user / http code
query : SELECT getTenant(namespace) as Tenant,
getNamespace(path, namespace) as Namespace,
getProtocol(namespace) as Protocol, user, httpcode,
count(*)
count(*) as count
FROM logrecs GROUP BY getTenant(namespace),
getNamespace(path, namespace),
getProtocol(namespace), user, httpcode
......@@ -317,7 +317,7 @@ comment : No. of records per Tenant / Namespace / protocol / client IP address /
query : SELECT getTenant(namespace) as Tenant,
getNamespace(path, namespace) as Namespace,
getProtocol(namespace) as Protocol, clientip, httpcode,
count(*)
count(*) as count
FROM logrecs GROUP BY getTenant(namespace),
getNamespace(path, namespace),
getProtocol(namespace), clientip, httpcode
......@@ -327,7 +327,7 @@ freeze pane : E5
comment : No. of records per Tenant / protocol / http code
query : SELECT getTenant(namespace) as Tenant,
getProtocol(namespace) as Protocol, httpcode,
count(*)
count(*) as count
FROM logrecs GROUP BY getTenant(namespace),
getProtocol(namespace), httpcode
freeze pane : C5
......@@ -348,4 +348,15 @@ freeze pane : A5
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
freeze pane : A5
[ten_user_ns_req_http]
comment : Tenants with all users accessing Namespaces, incl. request and httpcode
query : SELECT getTenant(namespace) as Tenant, user,
getNamespace(path, namespace) as Namespace,
request, httpcode, count(*) as count
FROM logrecs GROUP BY getTenant(namespace), user,
getNamespace(path, namespace),
request, httpcode
Freeze pane : C5
......@@ -27,8 +27,8 @@ class Gvars:
"""
# version control
s_version = "1.4.4"
s_builddate = '2019-01-14'
s_version = "1.4.5"
s_builddate = '2019-01-23'
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