---
# APM Challenge — YAML Configuration Audit
# Generated: 2026-09-05T11:49:53Z

cluster:
  name: prod-ap-southeast-1
  version: "1.13.47"
  uptime_hours: 4790
  features:
    rate_limiting: true
    circuit_breaker: true
    auto_scaling: false
    canary_deploy: true

nodes:
  - id: node-1
    host: 10.0.8.155
    status: warning
    cpu_percent: 70.6
    memory_mb: 2217
    labels:
      region: eu-west-1
      tier: data
  - id: node-2
    host: 10.0.5.66
    status: healthy
    cpu_percent: 42.9
    memory_mb: 2523
    labels:
      region: eu-west-1
      tier: data
  - id: node-3
    host: 10.0.8.102
    status: healthy
    cpu_percent: 75.5
    memory_mb: 4089
    labels:
      region: ap-southeast-1
      tier: frontend
  - id: node-4
    host: 10.0.2.6
    status: degraded
    cpu_percent: 30.3
    memory_mb: 1440
    labels:
      region: us-east-1
      tier: data
  - id: node-5
    host: 10.0.5.103
    status: healthy
    cpu_percent: 64.9
    memory_mb: 1477
    labels:
      region: ap-southeast-1
      tier: backend

services:
  - name: api-gateway
    replicas: 1
    port: 7350
    health_check:
      path: /healthz
      interval_seconds: 10
      timeout_ms: 3151
    environment:
      LOG_LEVEL: info
      MAX_CONNECTIONS: 78
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: auth-service
    replicas: 1
    port: 6746
    health_check:
      path: /healthz
      interval_seconds: 60
      timeout_ms: 3308
    environment:
      LOG_LEVEL: info
      MAX_CONNECTIONS: 221
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: db-proxy
    replicas: 1
    port: 4263
    health_check:
      path: /healthz
      interval_seconds: 15
      timeout_ms: 5135
    environment:
      LOG_LEVEL: warn
      MAX_CONNECTIONS: 110
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: cache-layer
    replicas: 5
    port: 6419
    health_check:
      path: /healthz
      interval_seconds: 60
      timeout_ms: 2123
    environment:
      LOG_LEVEL: warn
      MAX_CONNECTIONS: 458
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: scheduler
    replicas: 5
    port: 7268
    health_check:
      path: /healthz
      interval_seconds: 10
      timeout_ms: 4790
    environment:
      LOG_LEVEL: warn
      MAX_CONNECTIONS: 156
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: worker-pool
    replicas: 2
    port: 4891
    health_check:
      path: /healthz
      interval_seconds: 15
      timeout_ms: 4413
    environment:
      LOG_LEVEL: debug
      MAX_CONNECTIONS: 118
      FEATURE_FLAGS: "a]b[c{d}e"

monitoring:
  alerts:
    - name: alert-9723
      severity: warn
      threshold: 41
      target: scheduler
      metadata:
        created_by: ops-team
        revision: 37
        signature: ROUTINE-CHECK
        tags:
          - monitoring
          - eu-central-1
          - priority-1
    - name: alert-5828
      severity: error
      threshold: 86
      target: worker-pool
      metadata:
        created_by: ops-team
        revision: 27
        signature: PERF-NOMINAL
        tags:
          - monitoring
          - ap-southeast-1
          - priority-4
    - name: alert-0746
      severity: info
      threshold: 82
      target: worker-pool
      metadata:
        created_by: ops-team
        revision: 6
        signature: ROUTINE-CHECK
        tags:
          - monitoring
          - eu-west-1
          - priority-2
    - name: alert-1850
      severity: warn
      threshold: 5
      target: worker-pool
      metadata:
        created_by: ops-team
        revision: 18
        signature: SINAINSIGHT-YAML-VERIFIED
        tags:
          - monitoring
          - us-east-1
          - priority-5
    - name: alert-9199
      severity: debug
      threshold: 13
      target: db-proxy
      metadata:
        created_by: ops-team
        revision: 50
        signature: ROUTINE-CHECK
        tags:
          - monitoring
          - us-east-1
          - priority-2
    - name: alert-8876
      severity: debug
      threshold: 25
      target: auth-service
      metadata:
        created_by: ops-team
        revision: 2
        signature: PERF-NOMINAL
        tags:
          - monitoring
          - us-east-1
          - priority-2
    - name: alert-1276
      severity: info
      threshold: 18
      target: cache-layer
      metadata:
        created_by: ops-team
        revision: 5
        signature: ROUTINE-CHECK
        tags:
          - monitoring
          - ap-southeast-1
          - priority-1
    - name: alert-1790
      severity: info
      threshold: 2
      target: scheduler
      metadata:
        created_by: ops-team
        revision: 20
        signature: ROUTINE-CHECK
        tags:
          - monitoring
          - eu-west-1
          - priority-5

pipelines:
  ingestion:
    batch_size: 875
    flush_interval_ms: 2858
    retry_policy:
      max_retries: 3
      backoff_base_ms: 1000
      backoff_multiplier: 2.0
    processors:
      - type: filter
        config:
          drop_debug: true
          sample_rate: 0.1
      - type: transform
        config:
          normalize_timestamps: true
          flatten_nested: false

# Multi-line strings with special characters
certificates:
  tls_cert: |
    -----BEGIN CERTIFICATE-----
    MIIBxTCCAWugAwIBAgIJAKY6e2cL0xmOMA0GCSqGSIb3DQEBCwUA
    MDExCzAJBgNVBAYTAkZSMREwDwYDVQQKDAhTaW5hQXBwczEPMA0G
    A1UEAwwGdGVzdENBMB4XDTI2MDEwMTAwMDAwMFoXDTI3MDEwMTAw
    -----END CERTIFICATE-----
  renewal_schedule: "0 3 * * 1"

# Unicode and special YAML characters test
i18n:
  messages:
    greeting: "Bienvenue sur l'application"
    warning: "Attention: seuil critique depassé — action requise"
    special: "colons: work, {braces}, [brackets], and 'quotes' need escaping"
