Commit Graph

1550 Commits

Author SHA1 Message Date
Karsten Loesing
3fcbcf84c9 Estimate direct users based on dirreq responses.
Estimate relay users by country based on responses to directory
requests to reduce the overall effect of binning and to make relay and
bridge user estimates more comparable.

Implements #18203.
2020-04-11 08:20:15 +02:00
Karsten Loesing
da604d9c11 Add error code and message for code 400 responses.
Fixes #32683.
2020-04-08 08:15:39 +02:00
Karsten Loesing
abf7e92e31 Update to latest metrics-lib. 2020-04-06 11:49:59 +02:00
Karsten Loesing
d00bdbf577 Fix a couple style issues found by lintr.
- style: Lines should not be more than 80 characters.
 - style: Only use double-quotes.
 - style: Put spaces around all infix operators.
 - style: Trailing blank lines are superfluous.
 - warning: local variable ‘...’ assigned but may not be used

Also leave a comment to run lintr after making non-trivial changes.
2020-04-06 11:45:34 +02:00
Karsten Loesing
0f43eba6e8 Add simplified logging configuration to .war file.
Still part of #33549.
2020-04-02 12:50:58 +02:00
Karsten Loesing
157174ff31 Add first/last published months to CollecTor page.
Implements #24941.
2020-04-02 12:40:04 +02:00
Karsten Loesing
9844bc523c Set default locale US and default time zone UTC.
Part of these changes have already been made in earlier commits as
part of #24532. This commit makes remaining changes as part of #33655.
2020-04-01 12:45:49 +02:00
Karsten Loesing
334550d6d5 Simplify logging configuration.
Implements #33549.
2020-03-31 10:30:46 +02:00
Karsten Loesing
a0bd8d03bc Update to latest metrics-lib. 2020-03-19 09:02:17 +01:00
Karsten Loesing
dfea0c8403 Add links to BridgeDB's info page.
Remaining part of #33008.
2020-03-19 08:59:29 +01:00
Karsten Loesing
cff715e388 Add icon for StaleDesc flag.
The new icon is based on clock, solid style in Font Awesome Free
5.21.1. It was converted using Inkscape 0.92.4 using the command:
`inkscape -z -e clock.png -w 16 -h 16 clock.svg`.

Fixes #33453.
2020-03-09 17:31:41 +01:00
Iain R. Learmonth
1bef5acf3b Adds ant task to update fallback directories in RS 2020-03-09 11:29:13 +01:00
Karsten Loesing
395a8204d4 Avoid vertical flags in narrow browser windows.
Fix provided by RaBe.

Fixes #28317.
2020-03-09 11:13:12 +01:00
Karsten Loesing
d8871b3487 squash! Update directory bytes graph to include authorities.
- Handle missing dates correctly.
2020-03-08 08:27:05 +01:00
Karsten Loesing
c52b7ce61c Update directory bytes graph to include authorities.
Implements #33065.
2020-03-03 13:03:09 +01:00
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