analyticsd

command
v0.4.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command analyticsd is experimental: its command-line interface may change in a minor release; see https://nsgo.games/docs/stability/.

Command analyticsd runs the self-hosted analytics collector as a standalone HTTP server, persisting deduplicated events to daily UTC JSON Lines files (-data) or PostgreSQL (-postgres / ANALYTICS_POSTGRES_DSN).

analyticsd init  -config analytics.yaml -catalog catalog.yaml
analyticsd serve -config analytics.yaml -catalog catalog.yaml -keyset keys.yaml -data events -addr :8083
ANALYTICS_POSTGRES_DSN=postgres://... analyticsd serve -config analytics.yaml -catalog catalog.yaml -keyset keys.yaml -addr :8083

init writes a starter collector configuration and optional event catalog YAML without overwriting existing files. serve runs until SIGINT or SIGTERM, serving POST /v1/events (gzip or plain JSON Lines, idempotent by install+seq) and POST /v1/properties (authenticated per-account custom scalar properties). When -keyset is provided, Authorization: Bearer account tokens are verified for the configuration's audience ("analytics" by default) and refused when that audience matches the game servers' audience in the key set. With metrics set in the configuration, serve also serves GET /healthz, GET /readyz and GET /metrics on that dedicated address.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL