MuninnDB

Observability

MuninnDB ships with full observability: Prometheus metrics, structured JSON logging, health/readiness endpoints, and Go pprof profiling.

Health Endpoints

Endpoint Description
GET /health Overall health: all workers running, storage reachable
GET /ready Readiness check: ready to accept traffic
GET /metrics Prometheus metrics scrape endpoint
GET /debug/pprof/ Go pprof profiling (CPU, heap, goroutines)

Prometheus Metrics

Key metrics exported at /metrics:

  • muninn_activate_duration_ms — Activation query latency histogram
  • muninn_store_duration_ms — Write latency histogram
  • muninn_engrams_total — Total engrams by state
  • muninn_decay_worker_last_run — Last decay run timestamp
  • muninn_hebbian_updates_total — Hebbian weight updates count
  • muninn_cache_hits_total — L1 cache hit/miss ratio
  • muninn_triggers_fired_total — Semantic trigger events

Structured Logging

All log output is structured JSON via Go's stdlib slog. Pipe to any log aggregator (Loki, CloudWatch, Datadog).

{"time":"2026-02-21T10:00:00Z","level":"INFO","msg":"activate","vault":"default","duration_ms":12,"results":5,"context_len":24}
← Previous Next →