p4rca.yaml.example #1

  • //
  • p4mona/
  • dev/
  • p4-rca-agent/
  • config/
  • p4rca.yaml.example
  • View
  • Commits
  • Open Download .zip Download (1 KB)
# p4rca configuration template
# Copy to /p4/common/config/p4rca.yaml (SDP) or /etc/p4rca/p4rca.yaml

# --- P4LOG tailing ---
tailer:
  log_path: /p4/1/logs/log          # P4LOG path (SDP: $LOGS/log)
  log2sql_bin: /usr/local/bin/log2sql
  db_path: /var/lib/p4rca/rolling.db
  window_minutes: 15                 # Rolling retention window

# --- Monitor collection ---
collector:
  interval_s: 30
  p4_bin: /p4/common/bin/p4
  p4port: 1666
  p4user: svc-p4rca

# --- Anomaly detection ---
detector:
  wedge:
    enabled: true
    lock_wait_threshold_ms: 5000
    min_waiting_processes: 3
  slow_command:
    enabled: true
    compute_threshold_ms: 30000
  connection_spike:
    enabled: true
    sigma_threshold: 3.0

# --- Action policy ---
action:
  max_tier: 1                        # 0=observe, 1=alert, 2=recommend, 3=act_timeout, 4=autonomous
  audit_log: /var/log/p4rca/audit.jsonl

# --- SLM (Phase 2) ---
# slm:
#   ollama_url: http://localhost:11434/api/chat
#   model: phi4

# --- RAG (Phase 3) ---
# rag:
#   vector_db_path: /var/lib/p4rca/rag.db
#   top_k: 5
# Change User Description Committed
#1 32636 bot_Claude_Anthropic Scaffold p4-rca-agent repo: directory structure, data models, layer stubs, test fixtures, config, docs.
Covers briefing tasks 2 and 3.
#review-32637 @robert_cowham @tom_tyler