Quader Docs 0.176.0

Monitor

Watch Quader through its probes, metrics, logs and the System status screen, and follow one request through all of them.

On this page
A request through the listeners, the logs and the metricsA client's request reaches the main listener of a replica, whose answer carries X-Request-Id; the same value is the trace_id of the request log and the Trace ID of its audit events. The kubelet probes and Prometheus scrapes the ops listener of the same replica on port 8081.a replica of api or packagesrequest; answer withX-Request-Id/healthz, /readyz/metricsClientmain listenerops listener:8081log request:trace_idaudit event:Trace IDkubeletPrometheus

The ops listener

Every api, packages and worker process serves probes and metrics on port 8081 (server.ops_listen), over TLS with the chart's defaults. It has no sign-in; the chart's NetworkPolicy admits it only from the namespace monitoring and from networkPolicy.probeCIDRs.

Path Answer
GET /healthz 200 {"status":"alive"} while the replica's loops make progress; 503 names the stuck ones. The startup and liveness probe
GET /readyz 200 {"status":"ready"}, with "degraded":[…] when a reported check fails; 503 {"status":"unready","failing":[…]}. The readiness probe
GET /readyz?verbose=1 Also the replica, its role and each check with its status, a fixed reason code and its latency; never addresses or error texts
GET /metrics Prometheus text; off with metrics.enabled: false; with metrics.auth: static it needs the Bearer token of secrets.metricsToken, read on every scrape

Readiness checks

Check Holds the replica unready while
startup start-up runs, including the wait for Valkey's first answer (at most valkey.startup_answer_timeout)
database, schema, invalidation PostgreSQL is unreachable, the schema is behind this version, or the change log cannot be read; after the first readiness an outage within health.database_outage_grace only shows as degraded
tls, outbound a listener certificate, or a CA file of proxy.outbound.tls.ca_files, has not loaded once
objectStore the start check has not passed on a connection without drain: true; later only with health.require_object_store: true, otherwise a failing connection is degraded (unavailable: <id>)
valkey never, but for a configuration error at start (auth_failed, config_error); otherwise degraded with a reason such as connecting, no_sentinel or circuit_open
draining a shutdown has begun
vulnScannerTrivy, malwareScannerClamav, malwareUpdaterFreshclam on a scanner pod: its certificate or its tool has not loaded (ClamAV: also its first signature database), or it drains. A worker reports a missing scanner as degraded

Metrics

The families are named quader_*, beside the Go runtime's. With the Prometheus operator installed, the chart renders a ServiceMonitor that scrapes every pod of the ops Service and copies role and pool onto every series.

yaml
metrics:
  serviceMonitor:
    enabled: true                    # default: false
    labels:                          # example: what Prometheus selects by
      release: kube-prometheus-stack
Area Families to watch first
Readiness quader_ready, quader_build_info{role}
Requests quader_http_requests_total, quader_http_request_duration_seconds, quader_http_requests_shed_total{reason}
Jobs quader_jobs_queued, quader_jobs_oldest_queued_age_seconds
PostgreSQL quader_db_pool_acquire_duration_seconds, quader_db_retries_total{kind}
Change log quader_cluster_poll_last_success_timestamp_seconds
Valkey quader_valkey_available, quader_valkey_circuit_open
Object store quader_storage_s3_circuit_open{connection}, quader_storage_blobs_damaged_total
TLS quader_tls_certificate_expiry_timestamp_seconds, quader_tls_reload_errors_total
Spool quader_spool_used_bytes, quader_spool_free_bytes
Audit quader_audit_events_dropped_total

Gauges read from PostgreSQL, such as quader_jobs_queued, come from every replica: aggregate them with max, not sum.

Logs

Quader writes one JSON object per line to standard output (log.format: text for a readable form). Every record has time, level, msg, replica, role and log, the stream:

log Content
app start-up, warnings, errors; component names the part of Quader
request one record per request: endpoint, host, method, path, status, duration, bytes, principal, token, repository, client address, trace_id
upstream one record per request Quader sends to an upstream
audit a copy of every audit event

Tokens, passwords, cookies, URL credentials and the query parameters of log.request.redact_query_params are redacted. Probes and scrapes are logged only with log.request.ops_listener: true. The keys: log.

Follow one request

Every answer carries X-Request-Id; a problem answer repeats it as requestId, and the UI shows it as Request ID. The same value is the trace_id of the request's log records, the trace ID of its spans, and the Trace ID of its audit events (GET /api/v1/audit/events?traceId=<id>).

System status

Who
holders of settings:read (roles admin, security-admin, auditor); Run now needs settings:write
Where
Admin area › System › System status

The tabs Status, Jobs and Backups refresh every 15 seconds; Pause automatic refresh stops that, Refresh now reloads.

Part Shows
Summary line The worst first: No ready replica of the role …, Replicas unready, Lost without draining, Degraded, No ready replica of a scanner; else All roles ready. Not drain-safe when a role has fewer than two ready replicas or all on one node
Installation, Database Version, Base URL and its source, the replica that answered; the server and schema version
Replicas by role Each replica's node, version, state (ready, starting, draining, unready, lost) with failing checks, heartbeat and Valkey state
scanner Each pod of vuln-scanner-trivy and malware-scanner-clamav with its tool and version; a Trivy pod also with its advisory database (Database in use, Older database)
Valkey, Stored-secret keys Mode, primary, Sentinels, disagreement between replicas; the active key ID, compatible key rings and Re-encrypt now
Scheduled tasks, Recent jobs Each task's schedule (UTC), next and last run, Run now; the last ten jobs

A replica that stops shows draining and then disappears; one lost without a drain stays lost until the task replica-registry-prune removes it a day later (Runbook). Quader holds no Kubernetes permissions, so the screen cannot see disruption budgets or free nodes.

Jobs

The tab Jobs lists background jobs newest first with their state (Queued, Running, Cancelling, Succeeded, Failed, Cancelled); Filters narrows by kind and state. A holder of settings:write, or whoever started a job, can Cancel it; a running job stops at its next checkpoint. The Result of a failed job says why, with Attempt n of m and Technical details, the server's error text cut to 2,000 bytes. Others see only the jobs they started, from a repository screen.

Downloads from upstreams

Who
holders of content:metadata-read (roles admin, auditor)
Where
the button Downloads in the top bar, and GET /api/v1/system/upstream-downloads

The panel lists what remote repositories fetch from their upstreams now, and the last 100 that ended (none older than seven days, never in a backup). A number on the button counts the running ones.

Counts as one download Does not count
What a person asked for: an image with all its parts, a version's package, a queue row of a repository, a mirror pass's version, the scanning's database Listings and indexes, files answered from the cache, HEAD, an upstream's error, an upstream search, what a Bastion or the ClamAV updater fetches, the advisory sync
List Shows
Waiting for an upstream Repositories whose queue an upstream's rate limit holds, how many wait and until when; Show in queue
Running Package and version, bytes against size where known, speed, duration, repository, and what caused it (Client and who, a queue row, Mirror pass, Vulnerability database)
Finished Size, duration, average speed, and Failed with its class, Cancelled or Interrupted

Hide all hides the finished rows on this device only. Every replica writes its running downloads every proxy.upstream_downloads.publish_interval; the upstream's address, headers and the client's address are never kept.

Alerts

With metrics.prometheusRule.enabled: true the chart renders one PrometheusRule with every alert of the Runbook, scoped to the release's namespace. Leave one out by name in metrics.prometheusRule.disabledAlerts (an unknown name fails the install); append your own in extraRules. The values: Helm values.