You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible
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
4 years ago
..
auth Handle duplicate invitations gracefully (#2323) 4 years ago
billing Wrap paddle actions with DB transactions (#2558) 4 years ago
event Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
goal Trim goals when creating and retrieving from the DB (#2382) 4 years ago
google Save city name when importing from GA (#2608) 4 years ago
helpers improve transfer ownership error message (#2651) 4 years ago
imported Save city name when importing from GA (#2608) 4 years ago
ingestion Implement ingest counters (#2693) 4 years ago
sentry Use finch in sentry client (#1996) 4 years ago
session Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
site Implement ingest counters (#2693) 4 years ago
stats Refactor visits metric internals (#2691) 4 years ago
telemetry Gatekeep ingestion pipeline (#2472) 4 years ago
application.ex Implement ingest counters (#2693) 4 years ago
async_insert_repo.ex Implement ingest counters (#2693) 4 years ago
clickhouse_repo.ex Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
geo.ex Stop logging invalid_address errors from Locus (#2604) 4 years ago
goals.ex Improve test coverage (#2392) 4 years ago
http_client.ex Trace external HTTP requests (#2419) 4 years ago
ingest_repo.ex Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
mailer.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
mailer_test.exs Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
open_telemetry.ex Remove ingestion requests and Oban queries from OTEL (#2543) 4 years ago
prom_ex.ex Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
purge.ex Delay stats deletions (#2632) 4 years ago
repo.ex Pagination for sites listing (#994) 6 years ago
site.ex Some changes to the "site taken" copy (#2647) 4 years ago
sites.ex Some changes to the "site taken" copy (#2647) 4 years ago
themes.ex Adds dark mode to entire dashboard (#467) 6 years ago
timezones.ex Fix timezone list when time changes (#2268) 4 years ago