# `PromEx.MetricsServer.Plug`
[🔗](https://github.com/akoutmos/prom_ex/blob/master/lib/prom_ex/metrics_server/plug.ex#L2)

This plug is used to serve metrics when PromEx is run in a
standalone server configuration. This plug supports the
following options:

* `:path` - The route that should expose the metrics (default is "/metrics")
* `:prom_ex_module` - The PromEx module that this plug will expose

In order to use this standalone metrics server plug you need to have `:plug` and `:plug_cowboy`
as dependencies in your project.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
