> For the complete documentation index, see [llms.txt](https://docs.dropzone.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dropzone.ai/edge/readme/observability.md). Agents can also search and read this documentation through its [MCP server](https://docs.dropzone.ai/~gitbook/mcp).

# Observability

{% hint style="warning" %}
GitBook, our documentation hosting solution, is currently experiencing an outage. We are tracking this via <https://status.gitbook.com> and with our support reps.

Until it is resolved this documentation may be out of date.
{% endhint %}

Dropzone exposes metrics that you can scrape with Prometheus and visualize in Grafana.

## Prometheus Metrics

### Enable Metrics Collection

Set `gather-metrics` to `"enabled"` in your `config.yml`:

```yaml
custom:
  gather-metrics: "enabled"
```

Then restart:

```bash
/opt/dropzone/bin/deploy-dropzone up
```

### Available Metrics Endpoints

Dropzone exposes application metrics on port **9000** via a built-in reverse proxy. Your Prometheus scraper must be able to reach this port on the Dropzone instance.

| Port | Path                   | Metrics                                                                                                                          |
| ---- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| 9000 | `/core-metrics`        | Investigation engine: investigation runtime, concurrency, question permits, alert polling, Flask HTTP request latency and counts |
| 9000 | `/interviewer-metrics` | Interviewer service: active interviews, failed/timed-out interviews, interviewer configuration                                   |

{% hint style="info" %}
Host-level and Docker container metrics are your responsibility to set up and monitor. The two common exporters are listed below for reference.
{% endhint %}

| Port | Exporter                                                                           | Metrics                                            |
| ---- | ---------------------------------------------------------------------------------- | -------------------------------------------------- |
| 9100 | [node\_exporter](https://github.com/prometheus/node_exporter) (install separately) | CPU, memory, disk, network — standard host metrics |
| 8181 | [cAdvisor](https://github.com/google/cadvisor) (install separately)                | Per-container CPU, memory, filesystem, network     |

### Example Prometheus Scrape Configuration

Add the following jobs to the `scrape_configs` section of your `prometheus.yml`. Replace `10.0.0.100` with the IP address of your Dropzone instance.

```yaml
scrape_configs:
  - job_name: 'dropzone-core-metrics'
    metrics_path: /core-metrics
    static_configs:
      - targets: ['10.0.0.100:9000']

  - job_name: 'dropzone-interviewer-metrics'
    metrics_path: /interviewer-metrics
    static_configs:
      - targets: ['10.0.0.100:9000']

  # if node exporter
  - job_name: 'dropzone-host-metrics'
    static_configs:
      - targets: ['10.0.0.100:9100']

  # if cAdvisor
  - job_name: 'dropzone-docker-metrics'
    static_configs:
      - targets: ['10.0.0.100:8181']
```

{% hint style="warning" %}
The host-metrics and docker-metrics jobs require node\_exporter and cAdvisor to be installed on the Dropzone instance. These are not included in the Dropzone deployment.
{% endhint %}

## Grafana Dashboards

Pre-built Grafana dashboards are available for visualizing Dropzone metrics. Import them into your Grafana instance via `Dashboards` > `Import` > `Upload dashboard JSON file`.

### Application Dashboards

These dashboards are purpose-built for Dropzone metrics. Download the JSON files and import them into Grafana:

{% file src="/files/jRTNgOBM5Sp48HuoItex" %}
Core Metrics Dashboard — investigation throughput, runtime distribution, concurrency, alert polling, HTTP request metrics
{% endfile %}

{% file src="/files/1NWSsYhK8U2rJK20wCZQ" %}
Interviewer Metrics Dashboard — active interviews, failures, timeouts, configuration
{% endfile %}

{% hint style="info" %}
After importing, select your Prometheus datasource from the **datasource** dropdown at the top of the dashboard.
{% endhint %}

### Host and Docker Dashboards

For host and container metrics, use these community dashboards from Grafana.com. In Grafana, go to `Dashboards` > `Import` and enter the dashboard ID:

| Dashboard          | Grafana.com ID                                        | Description                                    |
| ------------------ | ----------------------------------------------------- | ---------------------------------------------- |
| Node Exporter Full | [1860](https://grafana.com/grafana/dashboards/1860)   | Comprehensive host metrics from node\_exporter |
| cAdvisor           | [21743](https://grafana.com/grafana/dashboards/21743) | Docker container metrics from cAdvisor         |
