moved queries to subfolder
This commit is contained in:
parent
0beb4a43ff
commit
c2526bc84c
2 changed files with 7 additions and 0 deletions
7
scripts/metrics/SQL_queries/server_statistics.pgsql
Normal file
7
scripts/metrics/SQL_queries/server_statistics.pgsql
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
/* get server uptime statistics in percent */
|
||||
SELECT DATE(timestamp) as date,
|
||||
count(*) as measurements,
|
||||
(100.0*count(CASE WHEN phabricator THEN 1 END)/count(*)) as phabricator_up_prcnt,
|
||||
(100.0*count(CASE WHEN buildbot THEN 1 END)/count(*)) as buildbot_up_prcnt
|
||||
FROM server_status GROUP BY date ORDER BY date ASC;
|
Loading…
Reference in a new issue