> For the complete documentation index, see [llms.txt](https://docs.coherence.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coherence.io/2.4/hosting/self-hosting/monitoring.md).

# Monitoring

### API port

The API port is by default 32004 or 64001 depending on if the replication server is running in world or rooms mode. All access to the API with the exception of the `/health` endpoint require an authorization token in the format `"Authorization: Bearer SECRET"` where SECRET is the same secret used in the `--secret` parameter when launching the replication server.

* Health check - the `/health` [API](/2.4/hosting/self-hosting/open-api-reference.md) endpoint returns the health status of the replication server. **No auth token required.**
* Basic status - the `/status` [API](/2.4/hosting/self-hosting/open-api-reference.md) endpoint returns information about the total number of connections and memory stats.
* Shutdown Notice - the `/shutdown-notice` [API](/2.4/hosting/self-hosting/open-api-reference.md) endpoint allows notifying the connected Clients that the replication server will shutdown at a given time. Any Clients that connect after the notice and before the shutdown will also receive the notice. See [OnShutdownNotice](/2.4/manual/components/coherence-bridge.md#onshutdownnotice) for handling the notice on Clients.
* Golang [pprof](https://pkg.go.dev/net/http/pprof) stats - the `/debug/pprof/*` endpoints are available for deeper monitoring and profiling of the active replication server.

### Stats port

The stats port is by default 32000 or 64000 depending on if the application is running in world or rooms mode. This endpoint does not require an authorization token.

* Prometheus Metrics - the `/metrics` endpoint returns scraped [prometheus](https://github.com/prometheus/prometheus) metrics.
