Monitor Repod's health and read the system logs¶
What you'll learn:
- How to read the Supervision page and what makes the global status change
- What each card tells you: storage, packages, services, scheduled tasks
- How to plug Repod into Prometheus
- How to use the Logs système console to investigate a problem
Time: ~15 minutes
Prerequisites: An administrator account. Nothing else: both pages read the running instance.
Step 1 — Read the global status¶
Open Administration → Supervision. The page refreshes itself every 30 seconds; the time of the last refresh is shown under the title.
Figure 1 — The global status (1) and the manual refresh button (2).
The badge at the top right summarises everything below it. It has three values:
| Status | Meaning |
|---|---|
| Opérationnel | Every check passes |
| Dégradé | Repod works, but something needs attention: a service such as ClamAV is down, a scheduled task is missing, or the disk is 75 % full or more |
| Erreur | A critical component fails: the package store, the manifests or the database |
The disk counts
A disk that fills up silently is the most common cause of a failed upload or backup. The global status turns to Dégradé as soon as /repos reaches 75 % of its capacity, the same threshold as the Stockage card, so the two can no longer disagree.
The same information is available to a load balancer or a monitoring tool without logging in: GET /health returns the full report (HTTP 503 only when the status is unhealthy, shown as Erreur), and GET /health/live answers 200 as long as the process runs.
Step 2 — Read the cards¶
Scroll down to the three cards.
Figure 2 — Storage (1), usage gauge (2), folder sizes (3), package counts (4) and system services (5).
Stockage shows the file system that holds /repos. The gauge is orange from 75 % and red from 90 %. Under it, the Libre and Total figures, then the size of the folders that grow: the Grype vulnerability database, the package pool, the manifests and the audit logs. If the gauge climbs, this list tells you what to prune or move.
Paquets counts the files in the pool per format (.deb, .rpm, .apk), plus the number of manifests and the size of the pool. The two totals differ on purpose: manifests also describe Maven, PyPI, npm and container artifacts, which are not stored in the pool.
Services système lists the components the pipeline depends on: ClamAV with its signature database version, reprepro for the Debian repository, and the GPG key that signs the repositories. If ClamAV is down, uploads cannot be scanned: this is the card to check first when uploads fail.
Step 3 — Check the scheduled tasks¶
Figure 3 — The scheduler status (1), a task name (2) and its next run (3).
Every automatic job appears here with its next run: the SLA check, the compliance scan, the inventory scan, the nightly security sync, the CVE re-matching, the retention policy, the drift scan and others. A task that is paused (a feature you have not enabled) shows En pause in orange instead of a date.
Use this card to answer "will it run tonight?" before you rely on it. If the scheduler is not running, the global status turns to Dégradé. On a high-availability deployment only the leader replica runs the jobs, and a passive replica reports an empty list without raising an alarm.
Step 4 — Plug Repod into Prometheus¶
The block at the top of the page, Métriques Prometheus, gives the address of the /metrics endpoint and a ready-to-copy prometheus.yml job. The metrics exposed are: HTTP requests and their latency, packages per distribution, vulnerabilities per severity, packages waiting for a decision, quarantined packages, uploads (success or failure), and the age of the Grype database and of the ClamAV signatures. The list, with alert rules, is in Health & monitoring.
Access to /metrics is protected. If the variable METRICS_TOKEN is set in backend.env, Prometheus must send it as a bearer token (the bearer_token line of the snippet). If it is empty, the endpoint accepts an auditor's login token instead. Set METRICS_TOKEN for any real scraping job.
Step 5 — Investigate with the logs¶
When a card is not green, the logs tell you why. Open Administration → Logs système.
Figure 4 — Service selector (1), level filters (2), search (3), live stream (4), scroll to bottom (5), download (6) and clear (7).
- Service — Backend (API) for the application's own messages, APT-Repo (nginx) for downloads and errors served to your machines, or both.
- Level — click ERROR to keep only failures, WARNING for things that need attention. INFO includes every request the API served.
- Search — type a package name, a user or an error text to filter the lines on screen.
- Live — the console follows new lines as they arrive. Click it to pause while you read, click again to resume.
- The last three buttons scroll to the bottom, download the displayed lines as a text file (handy for a support request) and clear the screen. Clearing only empties your view: nothing is deleted on the server.
The counter at the top shows how many lines are loaded. The console keeps the most recent 2 000 lines of the backend; for older events, use the Audit page, which keeps one file per day.
A quick routine
When someone reports "the upload failed": check Supervision for a red or orange card, then open Logs système, choose Backend, filter on ERROR, and search for the package name.
What's next¶
- Back up Repod and rehearse a restore: the disk card tells you when to act, the backup protects you when it is too late
- Produce a NIS2 report and use the audit log: the audit trail, the long-term counterpart of the logs
- Keep your data fresh and your platform running: the vulnerability database that the Grype DB figure measures



