Packages

A Fair Source multi-agent runtime with deterministic agent scoring and replayable run history.

Current section

Files

Jump to
syntropy lib syntropy_web controllers metrics_controller.ex
Raw

lib/syntropy_web/controllers/metrics_controller.ex

defmodule SyntropyWeb.MetricsController do
use SyntropyWeb, :controller
@doc """
Prometheus scrape endpoint (text exposition format).
"""
@spec index(Plug.Conn.t(), map()) :: Plug.Conn.t()
def index(conn, _params) do
conn
|> put_resp_content_type("text/plain")
|> send_resp(200, SyntropyWeb.Telemetry.scrape())
end
end