GameServerWeb.PromEx (game_server_web v1.0.935)

Copy Markdown

Prometheus metrics exporter using PromEx.

Auto-instruments Phoenix, Ecto, BEAM VM, and Application metrics. Exposes a /metrics endpoint for Prometheus scraping (or Grafana Agent).

Plugins enabled

PluginWhat it tracks
PromEx.Plugins.BeamVM memory, schedulers, atoms, processes, ports, ETS
PromEx.Plugins.PhoenixHTTP request count, duration, status by route
PromEx.Plugins.EctoQuery count, duration, queue time per source
PromEx.Plugins.ApplicationApp info (version, git SHA), uptime

Configuration

Set METRICS_ENABLED=false to disable (default: enabled).

The /metrics endpoint is public by design (Prometheus scrapes it). In production, restrict access at the network/firewall level or via the METRICS_AUTH_TOKEN env var (Bearer token check).

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.