# Monitoring and Troubleshooting

## HTTPS Collector Web Interface <a href="#https-collector-web-interface" id="https-collector-web-interface"></a>

The HTTPS Collector has a web interface available at `https://<Collector Url>:<port>/web` and provides you:

1. Flows: Full view of all incoming messages to the collector (including a full test search in all content and headers)
2. Agents and NodeJS Agents: A full detailed page for each Agent that is created for aggregation (including Node JS NYC collector)
3. Logs: Ability to stream and manipulate all the logs from the collector with options like full filters, saving…
4. About page on the collector, its version…

<table data-header-hidden><thead><tr><th width="115.33331298828125"></th><th></th></tr></thead><tbody><tr><td><strong>Flows</strong></td><td><div><figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2F4z7VXTvzCMVA7bcz55Gk%2Fimage.png?alt=media&#x26;token=766c3e17-495c-48c1-ae84-ba883a90bd8f" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2FD32BmB8k24afgYWTYfLs%2Fimage.png?alt=media&#x26;token=9e6c0f85-e2f7-4652-8a3b-a73ff5e1fbc0" alt=""><figcaption></figcaption></figure></div></td></tr><tr><td><strong>Agents</strong></td><td><div><figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2FYGvKrI50inuAWAsXdxt2%2Fimage.png?alt=media&#x26;token=b9d6310a-f05d-4d65-86f5-dd6823cc47a2" alt=""><figcaption></figcaption></figure></div><div><figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2FzuN0q4q7daWpUeluixJa%2Fimage.png?alt=media&#x26;token=614959f4-da4e-4f98-afa2-f3181f42845e" alt=""><figcaption></figcaption></figure></div></td></tr><tr><td><strong>Logs</strong></td><td><div><figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2F4r27Z8ryj1q2rsIb3Onn%2Fimage.png?alt=media&#x26;token=97c4c31c-dd63-4326-9f45-6796b76135d6" alt=""><figcaption></figcaption></figure></div></td></tr><tr><td><strong>About</strong></td><td><div><figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2F3E5pQnjRfqFaA91HNz3v%2Fimage.png?alt=media&#x26;token=e6bd17b9-5f86-4c98-9153-c909ff40dc75" alt=""><figcaption></figcaption></figure></div></td></tr></tbody></table>

Note, there is a separate web interface for both the standard collector port and the proxy port

## Health API Endpoint <a href="#health-api-endpoint" id="health-api-endpoint"></a>

Each collector exposes a health endpoint at: `https://{collector-host}:{collector-port}/health` and the result of the call will be JSON with metadata, statistics, and timestamps of collector operations.

If health works correctly and you still have problems, check that `https://{collector-host}:{collector-port}/api` is reachable. If not, something is blocking the collector from reaching SeaLights Cloud Services.

## Open Telemetry Metrics <a href="#open-telemetry-metrics" id="open-telemetry-metrics"></a>

The HTTPS Collector supports exporting HTTP metrics using the **OpenTelemetry Protocol (OTLP)**.\
This allows metrics to be sent to **any OTLP-compatible observability backend**, including platforms such as **Datadog**, **Grafana**, and **Prometheus (via an OpenTelemetry Collector)**.

Turning on this feature can be done by adding the `otel` section for the respective functionality in the `config.yaml` file. See [Configuration File Reference](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/download-and-installation#configuration-file-reference) more details

The metrics that are exported are:

<table><thead><tr><th width="274">Metric Name</th><th width="152">Type</th><th width="92">Unit</th><th>Description</th></tr></thead><tbody><tr><td><code>http.server.request.duration</code></td><td>Histogram</td><td>seconds</td><td>Duration of HTTP requests</td></tr><tr><td><code>http.server.request.body.size</code></td><td>Counter</td><td>bytes</td><td>Size of HTTP request bodies</td></tr><tr><td><code>http.server.response.body.size</code></td><td>Counter</td><td>bytes</td><td>Size of HTTP response bodies</td></tr><tr><td><code>http.server.active_requests</code></td><td>UpDownCounter</td><td>requests</td><td>Number of active HTTP requests</td></tr></tbody></table>
