> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Monitor a Livepeer Gateway on Docker, Linux, or Windows

> Set up production monitoring for a Livepeer Gateway - Prometheus, Grafana, log monitoring, Explorer, and automated alerts on Docker, Linux, or Windows.

# &#x20;Production Monitoring

This guide sets up ongoing observability for a Livepeer Gateway running in production. It covers Prometheus metrics collection, Grafana dashboards, log monitoring, the Livepeer Explorer, and automated health alerts.

*This guide includes:*

* Monitoring setup for {video()}, {ai()} Pipelines and {dual()} service routing
* Installation guides for {docker()} ***(recommended)***, {linux()}, and {windows()}

> [!TIP]
>
> This page is about **ongoing production monitoring** - watching the Gateway over time with metrics, dashboards, and alerts.
> For one-time verification that the Gateway started correctly, see the verify step in the setup journey.

> [tab] Docker
>
> ## &#x20;Docker Monitoring Guide
>
> {dockerGroup()}
>
> ### 1. Enable Metrics
>
> Add the `-monitor` flag to the Gateway's Docker Compose command block. Without it, the `/metrics` endpoint is not exposed.
>
> ```yaml icon="docker" docker-compose.yml theme={null}
> services:
>   gateway:
>     image: livepeer/go-livepeer:master
>     container_name: "gateway"
>     ports:
>       - 8935:8935
>       - 5935:5935
>     command:
>       - "-gateway"
>       - "-monitor"
>       - "-metricsPerStream"
>       - "-httpAddr=0.0.0.0:8935"
>       # ... other flags
> ```
>
> **Monitoring flags:**
>
> <table>
>   <tr>
>     Flag
>
>     Purpose
>
>     Recommendation
>   </tr>
>
>   <tr>
>     `-monitor`
>
>     Enables the `/metrics` Prometheus endpoint
>
>     Always enable in production
>   </tr>
>
>   <tr>
>     `-metricsPerStream`
>
>     Groups metrics by individual stream
>
>     Enable for per-stream debugging; increases metric cardinality
>   </tr>
>
>   <tr>
>     `-metricsClientIP`
>
>     Includes client IP as a metric label
>
>     Enable only for per-client breakdown
>   </tr>
> </table>
>
> Verify metrics are exposed:
>
> ```bash icon="terminal" Verify Metrics theme={null}
> curl http://localhost:8935/metrics | head -30
> ```
>
> Prometheus-format output with `livepeer_` prefixed metric names confirms the endpoint is active.
>
> ### 1. Prometheus and Grafana
>
> The `livepeer/livepeer-monitoring` repository bundles Prometheus, Grafana, and starter dashboard templates in a single Docker deployment.
>
> ```bash icon="terminal" Start Monitoring Stack theme={null}
> git clone https://github.com/livepeer/livepeer-monitoring
> cd livepeer-monitoring
> docker compose up -d
> ```
>
> The stack starts:
>
> * **Prometheus** on port `9090` - scraping the Gateway at `localhost:8935`
> * **Grafana** on port `3000` - default credentials `admin / admin`
>
> Update `prometheus.yml` in the repository to point to the Gateway host if it is not on `localhost`. When the Gateway runs in a Docker container, use the container name or Docker network address instead of `localhost`:
>
> ```yaml icon="terminal" prometheus.yml theme={null}
> scrape_configs:
>   - job_name: 'livepeer-gateway'
>     static_configs:
>       - targets: ['gateway:8935']
>     metrics_path: '/metrics'
>     scrape_interval: 15s
>     labels:
>       node_type: 'dual'
>       environment: 'production'
> ```
>
> > [!TIP]
> >
> > Ensure both the monitoring stack and the Gateway container are on the same Docker network so Prometheus can reach the Gateway's metrics endpoint.
>
> **Enhanced monitoring flags** can be added to the Gateway's Docker Compose command:
>
> ```yaml icon="docker" Additional Compose Flags theme={null}
> command:
>   # ... existing flags
>   - "-metricsPerStream=true"
>   - "-metricsClientIP=true"
> ```
>
> ### 1. Log Monitoring
>
> Monitor Gateway logs in real time:
>
> ```bash icon="terminal" Follow Logs theme={null}
> docker logs -f gateway
> ```
>
> Enable verbose logging by adding `-v=6` to the Docker Compose command block. Key log events to watch:
>
> * `Received live video AI request` - AI job arrived
> * `Orchestrator selected` - routing decision made
> * `Transcoding completed` - job finished
> * Payment processing events
>
> Save logs to a file for later analysis:
>
> ```bash icon="terminal" Save Logs theme={null}
> docker logs gateway > gateway.log 2>&1
> ```
>
> ### 1. Automated Health Notifications
>
> Add a `HEALTHCHECK` to the Docker Compose service definition or Dockerfile to let Docker monitor the Gateway process:
>
> ```yaml icon="docker" docker-compose.yml theme={null}
> services:
>   gateway:
>     # ... existing config
>     healthcheck:
>       test: ["CMD", "curl", "--silent", "--fail", "http://localhost:8935/health"]
>       interval: 30s
>       timeout: 10s
>       retries: 3
> ```
>
> Docker marks the container as `unhealthy` after three consecutive failures. Combine with a restart policy:
>
> ```yaml icon="docker" theme={null}
> restart: unless-stopped
> ```
>
> For email or webhook alerts, use the Prometheus alert rules described below the tabs on this page.
>
> > [card] [Next Step: Troubleshooting](/v2/gateways/guides/monitoring-and-tooling/troubleshooting.md)
> >
> > Fix common Gateway errors by symptom

> [tab] Linux
>
> ## &#x20;Linux Monitoring Guide
>
> {linuxGroup()}
>
> ### 1. Enable Metrics
>
> Add the `-monitor` flag when starting the Gateway. Without it, the `/metrics` endpoint is not exposed.
>
> ```bash icon="terminal" Start with Monitoring theme={null}
> ./livepeer \
>   -gateway \
>   -monitor \
>   -metricsPerStream \
>   -httpAddr 0.0.0.0:8935 \
>   [other flags...]
> ```
>
> If the Gateway runs as a **systemd service**, add `-monitor` to the `ExecStart` line:
>
> ```ini icon="terminal" /etc/systemd/system/livepeer.service theme={null}
> [Unit]
> Description=Livepeer Gateway
>
> [Service]
> Type=simple
> User=livepeer
> Restart=always
> RestartSec=4
> ExecStart=/usr/local/bin/livepeer \
>   -gateway \
>   -monitor \
>   -metricsPerStream \
>   -httpAddr=0.0.0.0:8935 \
>   -v 6
>
> [Install]
> WantedBy=default.target
> ```
>
> ```bash icon="terminal" Reload and Restart theme={null}
> sudo systemctl daemon-reload
> sudo systemctl restart livepeer
> ```
>
> **Monitoring flags:**
>
> <table>
>   <tr>
>     Flag
>
>     Purpose
>
>     Recommendation
>   </tr>
>
>   <tr>
>     `-monitor`
>
>     Enables the `/metrics` Prometheus endpoint
>
>     Always enable in production
>   </tr>
>
>   <tr>
>     `-metricsPerStream`
>
>     Groups metrics by individual stream
>
>     Enable for per-stream debugging; increases metric cardinality
>   </tr>
>
>   <tr>
>     `-metricsClientIP`
>
>     Includes client IP as a metric label
>
>     Enable only for per-client breakdown
>   </tr>
> </table>
>
> Verify metrics are exposed:
>
> ```bash icon="terminal" Verify Metrics theme={null}
> curl http://localhost:8935/metrics | head -30
> ```
>
> Prometheus-format output with `livepeer_` prefixed metric names confirms the endpoint is active.
>
> ### 1. Prometheus Setup
>
> Install Prometheus via the package manager or download the binary.
>
> **Ubuntu/Debian:**
>
> ```bash icon="terminal" Install Prometheus theme={null}
> sudo apt update && sudo apt install -y prometheus
> ```
>
> **Binary (any distro):**
>
> ```bash icon="terminal" Download Prometheus theme={null}
> wget https://github.com/prometheus/prometheus/releases/latest/download/prometheus-*.linux-amd64.tar.gz
> tar xvfz prometheus-*.linux-amd64.tar.gz
> cd prometheus-*
> ```
>
> Create or update `/etc/prometheus/prometheus.yml` to scrape the Gateway:
>
> ```yaml icon="terminal" prometheus.yml theme={null}
> global:
>   scrape_interval: 15s
>   evaluation_interval: 15s
>
> scrape_configs:
>   - job_name: 'livepeer-gateway'
>     static_configs:
>       - targets: ['localhost:8935']
>     metrics_path: '/metrics'
>     scrape_interval: 15s
>     scrape_timeout: 10s
>     labels:
>       node_type: 'dual'
>       environment: 'production'
> ```
>
> Adjust the `node_type` label to match the deployment: `video`, `ai`, or `dual`.
>
> ```bash icon="terminal" Start Prometheus theme={null}
> sudo systemctl enable --now prometheus
> ```
>
> Prometheus runs on port `9090` by default. Confirm the Gateway target appears at `http://localhost:9090/targets`.
>
> ### 1. Grafana Setup
>
> **Ubuntu/Debian:**
>
> ```bash icon="terminal" Install Grafana theme={null}
> sudo apt install -y apt-transport-https software-properties-common
> wget -q -O - https://apt.grafana.com/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/grafana.gpg
> echo "deb [signed-by=/usr/share/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
> sudo apt update && sudo apt install -y grafana
> sudo systemctl enable --now grafana-server
> ```
>
> Access Grafana at `http://localhost:3000` (default credentials `admin / admin`).
>
> **Add Prometheus as a data source:**
>
> 1. Navigate to **Configuration > Data Sources > Add data source**
> 2. Select **Prometheus**
> 3. Set the URL to `http://localhost:9090`
> 4. Click **Save & Test**
>
> Import the Livepeer starter dashboards from the `livepeer/livepeer-monitoring` repository, or build custom panels using the metrics described below the tabs on this page.
>
> ### 1. Log Monitoring
>
> If the Gateway runs as a **systemd service**, use `journalctl`:
>
> ```bash icon="terminal" Follow Logs theme={null}
> journalctl -u livepeer -f
> ```
>
> If running the binary directly, pipe output to a log file:
>
> ```bash icon="terminal" Log to File theme={null}
> ./livepeer -gateway -monitor [flags] 2>&1 | tee /var/log/livepeer-gateway.log
> ```
>
> Enable verbose logging with `-v 6`. Key log events to watch:
>
> * `Received live video AI request` - AI job arrived
> * `Orchestrator selected` - routing decision made
> * `Transcoding completed` - job finished
> * Payment processing events
>
> ### 1. Automated Health Notifications
>
> Create a health check script that runs on a schedule via cron:
>
> ```bash icon="terminal" /usr/local/bin/gateway-health.sh theme={null}
> #!/usr/bin/env bash
> # gateway-health.sh - run every 5 minutes via cron
> GATEWAY_PORT="${1:-8935}"
> ALERT_EMAIL="ops@example.com"
>
> if ! curl --silent --fail --max-time 5 \
>   http://localhost:${GATEWAY_PORT}/health > /dev/null 2>&1; then
>   echo "Gateway on port ${GATEWAY_PORT} is not responding" | \
>     mail -s "ALERT: Livepeer Gateway Down" "$ALERT_EMAIL"
> fi
> ```
>
> ```bash icon="terminal" Add to Crontab theme={null}
> chmod +x /usr/local/bin/gateway-health.sh
> # Add to crontab
> (crontab -l 2>/dev/null; echo "*/5 * * * * /usr/local/bin/gateway-health.sh 8935") | crontab -
> ```
>
> For richer alerting (Slack, PagerDuty, webhook), configure Prometheus Alertmanager with the alert rules described below the tabs on this page.
>
> > [card] [Next Step: Troubleshooting](/v2/gateways/guides/monitoring-and-tooling/troubleshooting.md)
> >
> > Fix common Gateway errors by symptom

> [tab] Windows
>
> ## &#x20;Windows Monitoring Guide
>
> Video Only
>
> > [!NOTE]
> >
> > The AI Gateway binary is not available for Windows. For AI or Dual monitoring on Windows, use [Docker via WSL2](/v2/gateways/setup/install.md) and follow the Docker tab instead.
>
> ### 1. Enable Metrics
>
> Add `-monitor=true` to the Gateway `.bat` file or startup command. Without it, the `/metrics` endpoint is not exposed.
>
> ```batch icon="terminal" gateway.bat theme={null}
> livepeer.exe ^
>   -gateway ^
>   -monitor=true ^
>   -metricsPerStream=true ^
>   -httpAddr=0.0.0.0:8935 ^
>   -v=6
> PAUSE
> ```
>
> **Monitoring flags:**
>
> <table>
>   <tr>
>     Flag
>
>     Purpose
>
>     Recommendation
>   </tr>
>
>   <tr>
>     `-monitor`
>
>     Enables the `/metrics` Prometheus endpoint
>
>     Always enable in production
>   </tr>
>
>   <tr>
>     `-metricsPerStream`
>
>     Groups metrics by individual stream
>
>     Enable for per-stream debugging; increases metric cardinality
>   </tr>
>
>   <tr>
>     `-metricsClientIP`
>
>     Includes client IP as a metric label
>
>     Enable only for per-client breakdown
>   </tr>
> </table>
>
> Verify metrics are exposed (PowerShell):
>
> ```powershell icon="terminal" Verify Metrics theme={null}
> Invoke-WebRequest -Uri http://localhost:8935/metrics | Select-Object -First 30
> ```
>
> Or via WSL2:
>
> ```bash icon="terminal" Verify Metrics (WSL2) theme={null}
> curl http://localhost:8935/metrics | head -30
> ```
>
> Prometheus-format output with `livepeer_` prefixed metric names confirms the endpoint is active.
>
> ### 1. Prometheus Setup
>
> Download the Prometheus Windows binary from the [Prometheus releases page](https://github.com/prometheus/prometheus/releases).
>
> 1. Extract the archive to a directory (e.g. `C:\prometheus\`)
> 2. Create or update `prometheus.yml` in that directory:
>
> ```yaml icon="terminal" prometheus.yml theme={null}
> global:
>   scrape_interval: 15s
>   evaluation_interval: 15s
>
> scrape_configs:
>   - job_name: 'livepeer-gateway'
>     static_configs:
>       - targets: ['localhost:8935']
>     metrics_path: '/metrics'
>     scrape_interval: 15s
>     scrape_timeout: 10s
>     labels:
>       node_type: 'video'
>       environment: 'production'
> ```
>
> 3. Start Prometheus:
>
> ```powershell icon="terminal" Start Prometheus theme={null}
> cd C:\prometheus
> .\prometheus.exe --config.file=prometheus.yml
> ```
>
> Prometheus runs on port `9090` by default. Confirm the Gateway target appears at `http://localhost:9090/targets`.
>
> > [!TIP]
> >
> > To run Prometheus as a Windows service, use [NSSM](https://nssm.cc/):
> >
> > ```powershell icon="terminal" theme={null}
> > nssm install Prometheus C:\prometheus\prometheus.exe --config.file=C:\prometheus\prometheus.yml
> > nssm start Prometheus
> > ```
>
> ### 1. Grafana Setup
>
> Download the Grafana Windows installer from the [Grafana downloads page](https://grafana.com/grafana/download?platform=windows).
>
> Run the installer and start the Grafana service. Access Grafana at `http://localhost:3000` (default credentials `admin / admin`).
>
> **Add Prometheus as a data source:**
>
> 1. Navigate to **Configuration > Data Sources > Add data source**
> 2. Select **Prometheus**
> 3. Set the URL to `http://localhost:9090`
> 4. Click **Save & Test**
>
> Import the Livepeer starter dashboards from the `livepeer/livepeer-monitoring` repository, or build custom panels using the metrics described below the tabs on this page.
>
> ### 1. Log Monitoring
>
> If running via `.bat` file, the console window displays logs in real time.
>
> Redirect output to a log file for later analysis:
>
> ```batch icon="terminal" gateway-with-logs.bat theme={null}
> livepeer.exe -gateway -monitor=true -v=6 > gateway.log 2>&1
> ```
>
> Key log events to watch:
>
> * `Orchestrator selected` - routing decision made
> * `Transcoding completed` - job finished
> * Payment processing events
>
> **Process monitoring:**
>
> Check if the Gateway is running via Task Manager or PowerShell:
>
> ```powershell icon="terminal" Check Process theme={null}
> Get-Process livepeer -ErrorAction SilentlyContinue
> ```
>
> Check port availability:
>
> ```powershell icon="terminal" Check Port theme={null}
> netstat -ano | findstr :8935
> ```
>
> ### 1. Automated Health Notifications
>
> Use Windows Task Scheduler to run a health check script on a schedule.
>
> Create `gateway-health.ps1`:
>
> ```powershell icon="terminal" gateway-health.ps1 theme={null}
> $port = 8935
> try {
>     $response = Invoke-WebRequest -Uri "http://localhost:$port/health" `
>       -TimeoutSec 5 -ErrorAction Stop
>     if ($response.StatusCode -ne 200) { throw "Non-200 response" }
> } catch {
>     # Replace with your preferred notification method
>     Write-EventLog -LogName Application -Source "Livepeer" `
>       -EventId 1001 -EntryType Error `
>       -Message "Livepeer Gateway on port $port is not responding"
> }
> ```
>
> **Add to Task Scheduler:**
>
> 1. Open Task Scheduler and select **Create Basic Task**
> 2. Set a trigger to run every 5 minutes
> 3. Set the action to run `powershell.exe -File C:\path\to\gateway-health.ps1`
>
> For richer alerting (Slack, PagerDuty, webhook), configure Prometheus Alertmanager with the alert rules described below the tabs on this page.
>
> > [card] [Next Step: Troubleshooting](/v2/gateways/guides/monitoring-and-tooling/troubleshooting.md)
> >
> > Fix common Gateway errors by symptom

## Livepeer Explorer

The [Livepeer Explorer](https://explorer.livepeer.org/gateways) provides a network-level view of all registered Gateways on Arbitrum One. It is accessible from any OS and requires no local installation.

[Livepeer Gateway Explorer](https://explorer.livepeer.org/gateways)

### Explorer columns

The Gateway Explorer table displays the following for each registered Gateway:

<table>
  <tr>
    Column

    What it shows

    Why it matters
  </tr>

  <tr>
    **Address**

    The Gateway's Ethereum wallet address on Arbitrum

    Search for this address to confirm the Gateway is registered on-chain. Matches the ETH Account shown in `livepeer_cli` Option 1
  </tr>

  <tr>
    **Deposit**

    ETH locked in the TicketBroker contract as the Gateway's working balance (in ETH)

    When this reaches zero, job routing stops silently. Compare against the `livepeer_gateway_deposit` Prometheus metric to verify node-reported values match chain state
  </tr>

  <tr>
    **Reserve**

    ETH held in reserve for ticket redemption (in ETH)

    Required for Orchestrators to redeem winning tickets. If zero, Orchestrators reject payment tickets and jobs fail
  </tr>

  <tr>
    **Total Volume**

    Cumulative ETH volume processed by the Gateway since first activation

    Indicates the Gateway's lifetime throughput. Useful for benchmarking against other operators on the network
  </tr>

  <tr>
    **90-Day Volume**

    ETH volume processed in the last 90 days

    Shows recent activity level. A Gateway with high total volume but zero 90-day volume is inactive
  </tr>

  <tr>
    **First Active**

    Date the Gateway first appeared on-chain

    Indicates operator tenure on the network
  </tr>

  <tr>
    **Last Active**

    Date of the Gateway's most recent on-chain activity

    Confirms the Gateway is still operational. A stale date indicates the node may be offline or the deposit is exhausted
  </tr>
</table>

> [!TIP]
>
> After registering an on-chain Gateway, it may take a few minutes to appear in the Explorer. Search by the ETH address shown in `livepeer_cli` Option 1 (under **BROADCASTER STATS**).

For off-chain Gateways, the Explorer does not show the node directly. Use [Livepeer Tools](https://tools.livepeer.cloud) for network-wide AI Orchestrator visibility instead.

> [card] [Gateway Explorer](https://explorer.livepeer.org/gateways)
>
> View registered Gateways, deposit balances, and network activity on Arbitrum.

> [card] [Livepeer Tools](https://tools.livepeer.cloud)
>
> Community dashboard for Gateway performance metrics and AI Orchestrator status.

## Key Metrics Reference

All Gateway types (Video, AI, Dual) expose metrics on the same `-httpAddr` port (default 8935). A single Prometheus scrape job covers all workload types.

Full metric table: [Prometheus Metrics Reference](/v2/gateways/resources/reference/technical/go-livepeer/prometheus-metrics)

> [tab] Video
>
> Video - on-chain Gateways.
>
> **Performance metrics:**
>
> <table>
>   <tr>
>     Metric
>
>     What it shows
>
>     Alert threshold
>   </tr>
>
>   <tr>
>     `livepeer_segment_transcoded_total`
>
>     Successfully transcoded segments (counter)
>
>     Calculate success rate (see queries below)
>   </tr>
>
>   <tr>
>     `livepeer_transcode_overall_latency_seconds`
>
>     End-to-end transcoding latency
>
>     Alert when avg `> 5s`
>   </tr>
>
>   <tr>
>     `livepeer_segment_transcode_failed_total`
>
>     Cumulative failed transcode count
>
>     Alert on rate increase
>   </tr>
>
>   <tr>
>     `livepeer_current_sessions_total`
>
>     Active transcoding sessions
>
>     Capacity planning
>   </tr>
> </table>
>
> **Payment metrics:**
>
> <table>
>   <tr>
>     Metric
>
>     What it shows
>
>     Alert threshold
>   </tr>
>
>   <tr>
>     `livepeer_gateway_deposit`
>
>     Remaining ETH deposit (wei)
>
>     Alert when `< 0.01 ETH`
>   </tr>
>
>   <tr>
>     `livepeer_gateway_reserve`
>
>     Remaining ETH reserve (wei)
>
>     Alert when `< 0.005 ETH`
>   </tr>
>
>   <tr>
>     `livepeer_payment_create_errors`
>
>     Failed ticket creation
>
>     Alert on any increase
>   </tr>
> </table>
>
> > [!WARNING]
> >
> > When the deposit reaches zero, job routing stops immediately with no warning to clients.
> > Monitor `livepeer_gateway_deposit` proactively.
>
> **Useful queries:**
>
> ```promql icon="terminal" theme={null}
> # Success rate over last 5 minutes
> rate(livepeer_segment_transcoded_total[5m]) /
> rate(livepeer_segment_source_appeared_total[5m])
>
> # ETH deposit remaining in ETH (not wei)
> livepeer_gateway_deposit / 1e18
>
> # Average transcoding latency
> rate(livepeer_transcode_overall_latency_seconds_sum[5m]) /
> rate(livepeer_transcode_overall_latency_seconds_count[5m])
>
> # Deposit depletion rate (wei per second)
> deriv(livepeer_gateway_deposit[1h])
> ```

> [tab] AI
>
> AI Both on-chain and off-chain Gateways.
>
> <table>
>   <tr>
>     Metric
>
>     What it shows
>
>     Alert threshold
>   </tr>
>
>   <tr>
>     `livepeer_current_sessions_total`
>
>     Active AI sessions
>
>     Capacity planning
>   </tr>
>
>   <tr>
>     `livepeer_max_sessions_total`
>
>     Configured session limit
>
>     Alert when `current > 0.8 x max`
>   </tr>
>
>   <tr>
>     `livepeer_discovery_errors_total`
>
>     Orchestrator discovery failures
>
>     Alert on any increase
>   </tr>
>
>   <tr>
>     `livepeer_segment_source_upload_failed_total`
>
>     Failed job submissions
>
>     Alert on rate increase
>   </tr>
> </table>
>
> > [!NOTE]
> >
> > AI-specific inference latency (per-pipeline, per-model) is not currently exposed via `/metrics`. For AI inference latency, use [Livepeer Tools](https://tools.livepeer.cloud) or instrument the application layer.
>
> **Useful queries:**
>
> ```promql icon="terminal" theme={null}
> # Sessions approaching capacity
> livepeer_current_sessions_total / livepeer_max_sessions_total
>
> # Discovery error rate
> rate(livepeer_discovery_errors_total[5m])
> ```

> [tab] Dual
>
> Dual - on-chain Gateways running both video and AI.
>
> Run all video metrics AND all AI metrics. The additional concern is GPU resource contention.
>
> **GPU monitoring via HTTP API:**
>
> ```bash icon="terminal" theme={null}
> # Poll hardware stats every 30 seconds
> watch -n 30 'curl -s http://localhost:8935/hardware/stats | python3 -m json.tool'
> ```
>
> Key fields to watch:
>
> * `gpu_memory_used` / `gpu_memory_total` - approach to 100% precedes model load failures
> * `gpu_utilization` - sustained 100% during low-volume periods indicates a bottleneck
>
> **When to separate workloads:**
>
> Consider splitting video and AI onto separate nodes when:
>
> * GPU memory is consistently above 85%
> * AI model loading causes video transcoding latency spikes
> * `livepeer_orchestrator_swaps` rate increases during AI inference peaks
>
> See [Scaling](/v2/gateways/guides/advanced-operations/scaling.md) for architecture patterns.

## Grafana Dashboards

The `livepeer/livepeer-monitoring` Docker stack includes three starter Grafana dashboards:

> [accordion] Node overview
>
> Active sessions, success rate, transcoding latency, and Orchestrator connectivity. The primary operational dashboard for day-to-day monitoring.

> [accordion] Payment overview
>
> ETH deposit and reserve over time, ticket value sent, and payment creation errors. Critical for on-chain Gateways to track deposit depletion rate.

> [accordion] Transcoding performance
>
> Realtime ratios, latency distribution (p50, p95, p99), and segment success/failure breakdown. Useful for identifying quality degradation patterns.

**Custom panels to consider adding:**

* Deposit depletion forecast (linear regression on `livepeer_gateway_deposit` over 24h)
* Session count vs `-maxSessions` limit as a percentage gauge
* AI discovery error rate overlaid with session count (correlation check)

## Alert Rules

Configure these rules in Prometheus to receive automated notifications when the Gateway needs attention.

### &#x20;Critical

```yaml icon="circle-exclamation" Critical Alerts theme={null}
groups:
  - name: livepeer-gateway-critical
    rules:
      - alert: GatewayDown
        expr: up{job=~"livepeer.*"} == 0
        for: 1m
        labels:
          severity: critical
        annotations:
          summary: "Livepeer Gateway is unreachable"

      - alert: DepositExhausted
        expr: livepeer_gateway_deposit < 10000000000000000
        for: 5m
        labels:
          severity: critical
        annotations:
          summary: "Gateway ETH deposit critically low ({{ $value | humanize }} wei)"

      - alert: SuccessRateCritical
        expr: |
          rate(livepeer_segment_transcoded_total[5m]) /
          rate(livepeer_segment_source_appeared_total[5m]) < 0.90
        for: 5m
        labels:
          severity: critical
        annotations:
          summary: "Transcoding success rate below 90%"
```

### &#x20;Warning

```yaml icon="warning" Warning Alerts theme={null}
      - alert: DepositLow
        expr: livepeer_gateway_deposit < 50000000000000000
        for: 10m
        labels:
          severity: warning
        annotations:
          summary: "Gateway ETH deposit below 0.05 ETH - top up soon"

      - alert: HighTranscodeLatency
        expr: |
          rate(livepeer_transcode_overall_latency_seconds_sum[5m]) /
          rate(livepeer_transcode_overall_latency_seconds_count[5m]) > 5
        for: 5m
        labels:
          severity: warning
        annotations:
          summary: "Average transcoding latency exceeds 5 seconds"

      - alert: PaymentCreateErrors
        expr: rate(livepeer_payment_create_errors[5m]) > 0
        for: 2m
        labels:
          severity: warning
        annotations:
          summary: "Ticket creation errors - check Arbitrum RPC health"

      - alert: AIDiscoveryErrors
        expr: rate(livepeer_discovery_errors_total[5m]) > 0
        for: 5m
        labels:
          severity: warning
        annotations:
          summary: "Orchestrator discovery failing - check -orchAddr list"
```

## Related Pages

> [card] [Prometheus Metrics](/v2/gateways/resources/reference/technical/go-livepeer/prometheus-metrics)
>
> Full table of all livepeer\_\* metrics.

> [card] [On-Chain Metrics](/v2/gateways/guides/monitoring-and-tooling/on-chain-metrics.md)
>
> TicketBroker events and Arbitrum contract monitoring.

> [card] [Tools & Dashboards](/v2/gateways/guides/monitoring-and-tooling/tools-and-dashboards.md)
>
> Explorer, Livepeer Tools, livepeer\_cli.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.