Skip to content

Monitoring & Alerting

RUSEON Core exposes standard Prometheus metrics to monitor video streams, disk IO, and network usage.

Prometheus Setup

Add the following scrape configuration to your prometheus.yml:

yaml
scrape_configs:
  - job_name: 'ruseon-core'
    scrape_interval: 15s
    static_configs:
      - targets: ['ruseon-core:8080']

Grafana Dashboard Ideas

You can visualize the metrics to create a comprehensive NOC dashboard:

  • Active Streams: Gauge showing ruseon_active_streams.
  • Throughput: Rate of ruseon_network_receive_bytes_total vs ruseon_disk_write_bytes_total.
  • Stability: Rate of ruseon_stream_reconnects_total.
  • System Drops: Alerts on ruseon_ringbuffer_drops_total.
yaml
groups:
- name: RUSEON Alerts
  rules:
  - alert: HighStreamReconnects
    expr: rate(ruseon_stream_reconnects_total[5m]) > 1
    for: 2m
    labels:
      severity: warning
    annotations:
      summary: "High reconnect rate on streams"

  - alert: ArchiveErrors
    expr: rate(ruseon_archive_errors_total[5m]) > 0
    for: 1m
    labels:
      severity: critical
    annotations:
      summary: "Disk archive is failing to write segments"

Released under the MIT License.