provisioning/schemas/platform/defaults/deployment/observability-cicd-overrides.ncl

67 lines
1.6 KiB
Text

# Observability Configuration for CI/CD Mode
# Optimized for automated testing with minimal overhead and JSON output
{
# CI/CD mode observability overrides
observability = {
logging = {
# JSON format for log aggregation in CI/CD pipelines
format = "json",
# Warning level to reduce noise (focus on problems)
level = "warn",
# Stdout only (captured by CI/CD runner)
output = {
destination = "stdout",
},
# Minimal fields to reduce log size
fields = {
service_name = true,
timestamp = true,
level = true,
caller = false, # Disabled in CI
spans = false, # Disabled in CI
},
# Sample 50% of logs to manage CI/CD log size
sampling = {
enabled = true,
rate = 0.5,
},
},
metrics = {
# Metrics disabled in CI/CD (not needed for testing)
enabled = false,
},
health = {
# Health checks enabled but no interval (on-demand only)
enabled = true,
interval = 60,
},
tracing = {
# Tracing disabled in CI/CD (overhead not justified)
enabled = false,
},
audit = {
# Audit logs to stdout for CI/CD capture
storage = "file",
log_directory = "/tmp/provisioning/audit",
retention_days = 1, # Keep only during test run
# No PII in CI/CD logs
include_pii = false,
# Only JSONL export (lightweight)
export_formats = ["jsonl"],
# Track workspace operations for test verification
track_workspace_operations = true,
},
},
}