> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/troubleshooting-and-resources/armory/general/gate-metrics-not-available-to-the-monitoring-daemon.md).

# Gate Metrics not Available to the Monitoring-Daemon

### Issue <a href="#issue" id="issue"></a>

There are two issues related to Gate metrics not being available to the monitoring daemon.

* The first issue is that Gate requires auth for `/spectator/metrics` if auth is enabled, including from `localhost`.
* Secondly, Gate metrics are not available when Gate is on the same host as Deck but on a different path due to the generated metrics\_url being wrong (i.e. Deck's URL is [https://myspinnaker.com](https://myspinnaker.com/) and Gate's URL is <https://myspinnaker.com/api/v1>)

### Cause <a href="#cause" id="cause"></a>

The first issue is that Gate requires auth for `/spectator/metrics` if auth is enabled, including from `localhost`. The second issue is because the generated metrics\_url for Gate does not take into context the value of the setting `server.servlet.context-path` in the file `profiles/gate-local.yml`.
