GameServerWeb.PromEx
(game_server_web v1.0.936)
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
| Plugin | What it tracks |
|---|---|
PromEx.Plugins.Beam | VM memory, schedulers, atoms, processes, ports, ETS |
PromEx.Plugins.Phoenix | HTTP request count, duration, status by route |
PromEx.Plugins.Ecto | Query count, duration, queue time per source |
PromEx.Plugins.Application | App 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
Returns a specification to start this module under a supervisor.
See Supervisor.