analytics/test
Adam Rutkowski 867dad6da7
Implement ingest counters (#2693)
* Clickhouse migration: add ingest_counters table

* Configure ingest counters per MIX_ENV

* Emit telemetry for ingest events with rich metadata

* Allow building Request.t() with fake now() - for testing purposes

* Use clickhousex branch where session_id is assigned to each connection

* Add helper function for getting site id via cache

* Add Ecto schema for `ingest_counters` table

* Implement metrics buffer

* Implement buffering handler for `Plausible.Ingestion.Event` telemetry

* Implement periodic metrics aggregation

* Update counters docs

* Add toStartOfMinute() to ordering key

* Reset the sync connection state in `after` clause

* Flush counters on app termination

* Use separate Repo with async settings enabled at config level

* Switch to clickhouse_settings repo root config key

* Add AsyncInsertRepo module
2023-02-23 14:34:24 +01:00
..
e2e Make checkly alert after 5 minutes of downtime (#2599) 2023-01-17 11:58:01 +02:00
load Fix script path for k6 load test (#2068) 2022-07-29 09:00:50 -03:00
plausible Implement ingest counters (#2693) 2023-02-23 14:34:24 +01:00
plausible_web Add visits metric under a feature flag (#2687) 2023-02-22 18:10:18 +02:00
priv Replace Geolix with Locus (#2362) 2023-01-17 12:05:09 -03:00
support Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 2023-02-12 17:50:57 +01:00
workers Fail the CI if tests emit log errors/warnings (#2694) 2023-02-21 10:38:22 +01:00
test_helper.exs Don't rely on Mix.env check in runtime (#2703) 2023-02-23 10:35:46 +01:00