mix monitorex. install
(monitorex v0.8.0)
Copy Markdown
Installs Monitorex into a Phoenix application.
This task is run automatically when you add Monitorex with mix igniter.install monitorex.
It detects from the host application's AST:
- which sources to enable (
:tesla,:finchand/or:req, based on the dep tree) - whether dedup is needed (a
config :tesla, adapter: {Tesla.Adapter.Finch, _}setsclients: [:tesla, :finch]) - whether an existing
scope "/api"in the router makes the built-in REST API redundant (it is disabled withapi_path: falseeither way) - where to mount (a
--pathoption, defaulting to/monitoring, warned about when it collides with an existing scope) - whether
:req_telemetryshould be added (:reqpresent but:req_telemetryabsent)
The mount uses a dedicated :monitoring pipeline — deliberately not your
:browser pipeline. :browser includes protect_from_forgery, which rejects the
cross-origin app.js asset request with a 403; the :monitoring pipeline omits it
(see the installation guide).
Options
--path- the path to mount the dashboard at (default:/monitoring)--yes- automatically answer yes to all prompts