Skip to content

Epic: clean, persistent monitoring & observability #265

Closed

Description

@CoffeeKnyte

Goal

Clean, persistent, operator-friendly monitoring of a Silo deployment. An operator should be able to answer "what happened, and when" after the fact — including across container recreations — and be able to focus on one subsystem without grepping the entire log firehose.

Why

Today Silo logs only to stderr. Under Docker that means:

  • The only record of a run lives in the daemon's json-file log and is deleted on every container recreate (redeploy, image bump, compose up after an edit). Post-incident investigation of anything before the last restart is impossible.
  • There is no persistent on-disk log without hand-editing the container entrypoint.
  • There is no way to isolate one subsystem (jellycompat / transcode / scan / api) — every investigation is a grep over everything.

opslog already persists structured records to Postgres for the admin log viewer, but that is a DB-backed, query-oriented surface — not a durable file an operator can tail -f, ship to a log collector, or retain independently of the database.

Scope / deliverables

  • Persistent file logging — opt-in SILO_LOG_FILE sink with rotation, plus optional per-subsystem split files (SILO_LOG_SPLIT). Replaces the tee/FIFO entrypoint workaround. (PR feat(observability): persistent per-subsystem file logging via SILO_LOG_FILE #264)
  • Deployment wiring — set the env vars in the deployment docker-compose.yml, remove the tee/FIFO entrypoint hack, document the resulting log paths.
  • Broaden per-subsystem tagging — ensure jellycompat / scanner / metadata / transcode roots carry a component attribute so split routing is exhaustive rather than best-effort.
  • Quiet vs. durable capture — decide whether log_quiet should also suppress file records (current) or whether files should capture regardless (tee before the quiet filter).
  • Secret redaction for file/console sinks — opslog redacts before DB persistence; console/file output is currently raw. Decide whether to extend redaction to these sinks.
  • (future) Structured log shipping / metrics endpoint for external monitoring stacks.

Non-goals (for now)

  • Replacing the DB-backed opslog admin viewer.
  • A full metrics/tracing stack — this epic is about logs first.

Capability-level tracking issue. Proposed for v1 scope lock; awaiting triage.

Activity

  1. added
    epic
    v1.0-proposed
    on Jul 2, 2026
  2. darthShadow commented on Jul 2, 2026

    @darthShadow
    Contributor

    I would have preferred some discussion regarding this before committing any effort for it. If we are touching the monitoring/observability, it would have been a lot better if we just went the OpenTelemetry (https://opentelemetry.io/docs/) way rather than custom implementations and sinks.

  3. added
    triaged
    and removed
    triaged
    on Sep 20, 2026
  4. CoffeeKnyte commented on Oct 28, 2026

    @CoffeeKnyte
    ContributorAuthor

    Closing: #290 replaced the plan here with OpenTelemetry. On main (564b906):

    • Logs and traces export over OTLP when SILO_OTEL_ENABLED or OTEL_EXPORTER_OTLP_* is set (internal/telemetry).
    • Log calls carry a component attribute, and opslog falls back to inferring one.
    • internal/logredact redacts stderr and OTLP output with the same key list opslog uses.
    • Prometheus metrics are served from cmd/silo/metrics_listener.go, with a sample dashboard and alert rules in deploy/observability/.

    The file sink from #264 was left out on purpose: docs/architecture/observability.md § Log retention & rotation leaves rotation to the Docker log driver or the OTLP backend. The same doc lists the known gaps: lint can't check that component is present, redaction matches key names only, and log_quiet also suppresses OTLP. Any of those can get its own issue if it needs work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicv1.0-proposed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions