receivers:
  hostmetrics:
    collection_interval: 30s
    # On a host, set root_path: /hostfs when the collector runs in a container
    # with the host's / mounted there; on a VM leave it out.
    scrapers:
      cpu: {}
      memory: {}
      disk: {}
      filesystem: {}
      network: {}
      load: {}
      process:
        # Without this the scraper logs an error every interval for every
        # process whose owner it cannot resolve (see the gotcha).
        mute_process_user_error: true
        mute_process_exe_error: true
        mute_process_io_error: true

processors:
  memory_limiter:
    check_interval: 1s
    limit_percentage: 80
    spike_limit_percentage: 25
  batch:
    timeout: 5s

exporters:
  otlphttp:
    endpoint: https://your-backend:4318

service:
  pipelines:
    metrics:
      receivers: [hostmetrics]
      processors: [memory_limiter, batch]
      exporters: [otlphttp]
