Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Prometheus

To enable Prometheus support, you need to add this section to your config.toml:

[observability]
prometheus = true

and add this job

- job_name: 'archivetube'
  static_configs:
    - targets: ['archivetube:8080']
  scrape_interval: 1m

Warning

There is no auth on top of /metrics which means those metrics are public. If you want to add auth, you need to use a reverse proxy

See ‘Adding Basic Auth to Prometheus with Nginx’ on Robust Perception

Metrics

Metric nameDescriptionType
archivetube_archive_sizeTotal bytes of archived videosGauge
archivetube_archived_videos_totalTotal number of archived videosGauge
archivetube_channels_totalTotal number of channelsGauge
archivetube_queue_sizeCurrent queue size (pending + processing)Gauge