# PhoenixKitStats v0.2.0 - Table of Contents

> Stats module for PhoenixKit — create per-source metrics groups and collect/chart time-series stats via Barograph.

## Modules

- [PhoenixKitStats](PhoenixKitStats.md): PhoenixKit plugin module for collecting and charting time-series stats.
- [PhoenixKitStats.DatabaseManager](PhoenixKitStats.DatabaseManager.md): Owns every stats group's open Barograph database — a SQLite file plus
a Graphite plaintext ingest listener bound to the group's configured
port.
- [PhoenixKitStats.Errors](PhoenixKitStats.Errors.md): Central mapping from error atoms (returned by `PhoenixKitStats.Groups`
and used across its LiveViews) to translated human-readable strings.
- [PhoenixKitStats.Groups](PhoenixKitStats.Groups.md): Context module for managing stats groups.
- [PhoenixKitStats.Metrics](PhoenixKitStats.Metrics.md): Thin wrapper around Barograph for querying and charting a stats
group's time-series data.
- [PhoenixKitStats.Migrations.Schema](PhoenixKitStats.Migrations.Schema.md): Versioned migration for the Stats module.
- [PhoenixKitStats.Paths](PhoenixKitStats.Paths.md): Centralized path helpers for the Stats module.
- [PhoenixKitStats.Schemas.Group](PhoenixKitStats.Schemas.Group.md): A stats group — one external data source (e.g. `"server1"`). Owns a
dedicated Barograph SQLite database (see `PhoenixKitStats.DatabaseManager`)
and a Graphite plaintext ingest port that a collector on that source
writes metrics to.
- [PhoenixKitStats.Web.GroupFormLive](PhoenixKitStats.Web.GroupFormLive.md): Create/edit form for stats groups: name, key, port, template, description.
- [PhoenixKitStats.Web.GroupShowLive](PhoenixKitStats.Web.GroupShowLive.md): Chart page for a stats group: shows the collector endpoint + an
example command, lets the admin pick a metric + time range + bucket +
aggregation, and renders the resulting Barograph SVG chart.

- [PhoenixKitStats.Web.GroupsLive](PhoenixKitStats.Web.GroupsLive.md): Admin list page for stats groups: create, pause/resume, delete, and
jump to a group's chart page or edit form.

