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

cluster:
  name: prod-eu-west-1
  version: "2.4.11"
  uptime_hours: 7080
  features:
    rate_limiting: true
    circuit_breaker: true
    auto_scaling: false
    canary_deploy: true

nodes:
  - id: node-1
    host: 10.0.6.32
    status: warning
    cpu_percent: 57.1
    memory_mb: 4882
    labels:
      region: eu-central-1
      tier: data
  - id: node-2
    host: 10.0.5.199
    status: warning
    cpu_percent: 92.9
    memory_mb: 3890
    labels:
      region: eu-central-1
      tier: frontend
  - id: node-3
    host: 10.0.8.31
    status: degraded
    cpu_percent: 35.5
    memory_mb: 2350
    labels:
      region: us-east-1
      tier: frontend
  - id: node-4
    host: 10.0.5.33
    status: healthy
    cpu_percent: 64.5
    memory_mb: 1749
    labels:
      region: ap-southeast-1
      tier: frontend
  - id: node-5
    host: 10.0.8.25
    status: healthy
    cpu_percent: 0.8
    memory_mb: 4923
    labels:
      region: us-east-1
      tier: frontend

services:
  - name: api-gateway
    replicas: 5
    port: 4309
    health_check:
      path: /healthz
      interval_seconds: 10
      timeout_ms: 2096
    environment:
      LOG_LEVEL: error
      MAX_CONNECTIONS: 387
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: auth-service
    replicas: 3
    port: 6564
    health_check:
      path: /healthz
      interval_seconds: 60
      timeout_ms: 1084
    environment:
      LOG_LEVEL: debug
      MAX_CONNECTIONS: 300
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: db-proxy
    replicas: 5
    port: 5562
    health_check:
      path: /healthz
      interval_seconds: 10
      timeout_ms: 2024
    environment:
      LOG_LEVEL: warn
      MAX_CONNECTIONS: 549
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: cache-layer
    replicas: 5
    port: 6098
    health_check:
      path: /healthz
      interval_seconds: 60
      timeout_ms: 636
    environment:
      LOG_LEVEL: warn
      MAX_CONNECTIONS: 493
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: scheduler
    replicas: 3
    port: 6993
    health_check:
      path: /healthz
      interval_seconds: 30
      timeout_ms: 1919
    environment:
      LOG_LEVEL: warn
      MAX_CONNECTIONS: 341
      FEATURE_FLAGS: "a]b[c{d}e"
  - name: worker-pool
    replicas: 3
    port: 6162
    health_check:
      path: /healthz
      interval_seconds: 10
      timeout_ms: 1654
    environment:
      LOG_LEVEL: warn
      MAX_CONNECTIONS: 269
      FEATURE_FLAGS: "a]b[c{d}e"

monitoring:
  alerts:
    - name: alert-8824
      severity: warn
      threshold: 74
      target: worker-pool
      metadata:
        created_by: ops-team
        revision: 47
        signature: BASELINE-OK
        tags:
          - monitoring
          - eu-central-1
          - priority-2
    - name: alert-1706
      severity: warn
      threshold: 73
      target: db-proxy
      metadata:
        created_by: ops-team
        revision: 9
        signature: BASELINE-OK
        tags:
          - monitoring
          - eu-west-1
          - priority-3
    - name: alert-1496
      severity: info
      threshold: 93
      target: auth-service
      metadata:
        created_by: ops-team
        revision: 19
        signature: STANDARD-MONITOR
        tags:
          - monitoring
          - ap-southeast-1
          - priority-2
    - name: alert-7822
      severity: error
      threshold: 15
      target: scheduler
      metadata:
        created_by: ops-team
        revision: 7
        signature: BASELINE-OK
        tags:
          - monitoring
          - eu-west-1
          - priority-3
    - name: alert-9837
      severity: debug
      threshold: 5
      target: scheduler
      metadata:
        created_by: ops-team
        revision: 24
        signature: NORMAL-ALERT
        tags:
          - monitoring
          - eu-central-1
          - priority-3
    - name: alert-4017
      severity: debug
      threshold: 43
      target: scheduler
      metadata:
        created_by: ops-team
        revision: 10
        signature: ROUTINE-CHECK
        tags:
          - monitoring
          - us-east-1
          - priority-3
    - name: alert-4847
      severity: error
      threshold: 91
      target: worker-pool
      metadata:
        created_by: ops-team
        revision: 12
        signature: BASELINE-OK
        tags:
          - monitoring
          - eu-central-1
          - priority-2
    - name: alert-0439
      severity: warn
      threshold: 8
      target: api-gateway
      metadata:
        created_by: ops-team
        revision: 37
        signature: SINAINSIGHT-YAML-VERIFIED
        tags:
          - monitoring
          - ap-southeast-1
          - priority-3

pipelines:
  ingestion:
    batch_size: 718
    flush_interval_ms: 1990
    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"
