Commit Graph

1535 Commits

Author SHA1 Message Date
Karsten Loesing
714b2ee0cc Rewrite insert_bwhist in SQL.
The old PL/pgSQL version of this function made three lookups in the
bwhist table to 1) check whether a row already exists, 2) insert or
update the row, and 3) update the row once again with array sums. The
new SQL version uses the INSERT ON CONFLICT statement introduced in
PostgreSQL 9.5 (Debian stretch has 9.6, buster has 11). The
performance gain measured using metrics-test is impressive, computed
aggregates are equivalent.
2020-03-03 11:34:28 +01:00
Karsten Loesing
efa490efdf Extract directory authority bytes per day.
Implements #33065.
2020-03-03 11:34:22 +01:00
Karsten Loesing
cfd670a944 Remove dead code from bwhist module. 2020-03-03 11:28:07 +01:00
Karsten Loesing
2dfd743e3c Update and sort flags in RS advanced search.
Fixes #33335.
2020-02-25 21:08:02 +01:00
Karsten Loesing
90617fc63a Update news.json to version 359 of doc/MetricsTimeline. 2020-02-24 15:15:38 +01:00
Karsten Loesing
efb86141eb Set default time zone UTC. 2020-02-21 18:22:03 +01:00
Karsten Loesing
9cd3ac5aa2 Set default locale US.
Fixes #24532.
2020-02-21 18:21:52 +01:00
Karsten Loesing
1fcd996092 Update Onionoo specification to version 8.0. 2020-02-20 21:12:30 +01:00
Karsten Loesing
45ae585ebf Revert "Fix unknown issue with spread() function."
This reverts commit b3e80fce17 and also
reverts a similar workaround made after that commit.

The spread() function works fine again using buster's r-cran-tidyr
0.8.2-1 package, whereas it was previously broken with stretch's
r-cran-tidyr 0.6.1-1 package.

Fixes #30351.
2020-02-17 12:26:04 +01:00
Karsten Loesing
2708d2ee7a Display a bridge's distribution mechanism in RS.
Another part of #33008.
2020-02-14 16:32:03 +01:00
Karsten Loesing
ebb494ab43 Update Onionoo page for bridgedb_distributor field.
Part of #33008.
2020-02-14 16:31:56 +01:00
Karsten Loesing
cc60eede3e Introduce the term "server" in the glossary.
On the metrics website we're using the term "server" for both relays
and bridges and the term "node" for both clients and servers.

Fixes #26068.
2020-02-14 10:07:44 +01:00
Karsten Loesing
2ce63d57a6 Always show 1 decimal digit in dirbytes graph.
Fixes #33066.
2020-01-27 12:29:00 +01:00
Karsten Loesing
e7f73a2814 Update fallback directories in Relay Search.
Fixes #31332.
2020-01-22 17:54:28 +01:00
Karsten Loesing
c775b66867 Schedule Onionoo version 8.0, and remove old news. 2020-01-20 16:15:26 +01:00
Karsten Loesing
5cbb25ee57 Explain onion service traffic graphs a bit better.
As discussed on the ticket, we can explain better which cells are
counted for onion service traffic graphs: it's cells relayed by
rendezvous points.

It was also confusing to say "per day" in the graph description when
bandwidth is in gigabits per second. Removed that part.

Finally, there's now a glossary entry for "rendezvous points" that is
based on the glossary entry in torspec.

Fixes #26171.
2020-01-20 12:05:34 +01:00
Karsten Loesing
af1af0a911 Update metrics-lib and ExoneraTor versions.
Also configure a base URL in order to turn ExoneraTor's permanent
links into https:// links.
2020-01-16 09:35:29 +01:00
Karsten Loesing
a59139b846 Update copyright to 2020. 2020-01-15 21:56:00 +01:00
Karsten Loesing
0ff66bd977 Update to latest metrics-base. 2020-01-15 09:04:29 +01:00
Karsten Loesing
ac802316cb Document known inaccuracy in onion service stats.
As discussed on #23367.
2020-01-14 16:09:44 +01:00
Karsten Loesing
572e957c1c Update to latest metrics-lib. 2020-01-13 09:52:45 +01:00
Karsten Loesing
8695704b70 Make Jetty host configurable.
Related to #24222.
2020-01-13 09:49:50 +01:00
Karsten Loesing
dc18a18b7c Use the browser's date selector for start/end date.
Implements #30793.
2020-01-08 14:32:16 +01:00
Karsten Loesing
1e056fc82a Add two BridgeDB request graphs.
Implements #32135.
2019-12-18 20:51:18 +01:00
Karsten Loesing
36db100883 Update news.json to version 356 of doc/MetricsTimeline. 2019-12-06 11:56:21 +01:00
Karsten Loesing
b1b1aa97fc Update to latest metrics-lib. 2019-12-02 16:46:44 +01:00
Karsten Loesing
4448f5fc0d Improve runtime performance of hidserv module.
Fixes #25924.
2019-12-02 16:46:15 +01:00
Karsten Loesing
267678c574 Remove dependency on metrics-lib's index package.
We shouldn't depend on metrics-lib's implementation classes but only
on its provided interfaces. In this case, downloading and parsing an
index.json file is something that we can easily build ourselves using
a POJO and Jackson. Removing this dependency will make it much easier
to refactor metrics-lib.
2019-11-25 16:34:54 +01:00
Karsten Loesing
b1a6c60a81 Remove unnecessary declaration. 2019-11-21 13:55:24 +01:00
Karsten Loesing
c44822c1f1 Remove unnecessary casts. 2019-11-20 16:47:17 +01:00
Karsten Loesing
61a61ac839 Remove exception that is never thrown. 2019-11-20 16:47:17 +01:00
Karsten Loesing
603a64bd1a Replace several <code>...</code> with {@code}. 2019-11-20 16:47:10 +01:00
Karsten Loesing
1d7691bba2 Fix logging bugs. 2019-11-20 12:46:22 +01:00
Karsten Loesing
4259a6dffe Document newly added index.json fields.
Still part of #31204.
2019-11-11 15:06:25 +01:00
Karsten Loesing
f760f191e9 Add BridgeDB metrics to CollecTor page.
Still part of #19332.
2019-11-10 20:08:11 +01:00
Karsten Loesing
2a3c01588d Update news.json to version 351 of doc/MetricsTimeline. 2019-11-10 11:54:02 +01:00
Karsten Loesing
4ae4da944d Bump version to 1.3.0-dev. 2019-11-09 22:46:28 +01:00
Karsten Loesing
d4581513c4 Prepare for 1.3.0 release. 2019-11-09 21:43:49 +01:00
Karsten Loesing
9d34311e53 Update to metrics-lib 2.9.1 and ExoneraTor 4.2.0. 2019-11-09 20:38:51 +01:00
Karsten Loesing
66a657078b Add @type annotation for HS v3.
Also update to latest metrics-base/-lib.

Implements #31481.
2019-11-04 12:24:38 +01:00
Karsten Loesing
a15b169a00 Update documentation of bridge or_addresses.
Fixes #32322.
2019-10-31 14:42:14 +01:00
Karsten Loesing
e2940260a1 Upgrade to latest metrics-base and -lib. 2019-10-02 14:35:54 +02:00
Karsten Loesing
cba1711544 Add "Tor Browser updates by release channel" graph.
Implements #31755.
2019-10-02 12:36:21 +02:00
Karsten Loesing
c30b25acbd Use ant tasks to fetch metrics dependencies.
Implements part of #31649.
2019-09-27 09:50:42 +02:00
Karsten Loesing
7ccae10c5c Re-add recent bridge pool assignments. 2019-09-19 16:30:16 +02:00
Karsten Loesing
3a663e8ff6 Update to latest metrics-base and metrics-lib.
This update includes an update of PostgreSQL JDBC driver version to
42.2.5.
2019-09-17 10:05:27 +02:00
Karsten Loesing
37190035e6 Update to latest metrics-lib. 2019-09-16 16:39:37 +02:00
Karsten Loesing
5d98d4806e Fix two issues found using metrics-test.
- Make unit test locale-independent, similar to Onionoo's 860228c.

 - Replace deprecated method Class.newInstance().
2019-09-16 16:37:16 +02:00
Karsten Loesing
412ac16376 Update CollecTor page to include snowflake stats.
Implements #29461.
2019-09-12 11:59:19 +02:00
Iain R. Learmonth
d4086dde65 Adds GitLab CI for tests and checks
Configuration is held in the .gitlab-ci.yml file.

Fixes: #31402
2019-09-05 13:57:23 +01:00