receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317

processors:
  memory_limiter:
    check_interval: 1s
    limit_percentage: 80
    spike_limit_percentage: 25
  # Keeps only the attributes dashboards group by, and sums the data points
  # that become identical once the per-request attributes are gone.
  transform/reduce-cardinality:
    error_mode: ignore
    metric_statements:
      - context: metric
        statements:
          - aggregate_on_attributes("sum", ["http.request.method", "http.route", "http.response.status_code"]) where name == "http.server.request.count"
  batch:
    timeout: 5s

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

service:
  pipelines:
    metrics:
      receivers: [otlp]
      processors: [memory_limiter, transform/reduce-cardinality, batch]
      exporters: [otlphttp]
