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
/metricswhich 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 name | Description | Type |
|---|---|---|
| archivetube_archive_size | Total bytes of archived videos | Gauge |
| archivetube_archived_videos_total | Total number of archived videos | Gauge |
| archivetube_channels_total | Total number of channels | Gauge |
| archivetube_queue_size | Current queue size (pending + processing) | Gauge |