forklaunch 1.15.0

Launch faster with forklaunch
# OpenTelemetry Collector — local.
#
# Mirrors the production collector config generated by the deployment agent
# (observability-resources.pulumi.ts). Requires the `-contrib` distribution:
# `prometheus_remote_write` is not in the core `otel/opentelemetry-collector`
# image.
#
# Metrics are PUSHED to Mimir (remote write). This replaces the old pull model,
# where the collector exposed a `prometheus` scrape endpoint on :8889 and
# Prometheus scraped it. Mimir does not scrape.
#
# Every exporter carries X-Scope-OrgID because Loki, Tempo and Mimir all run
# with multitenancy enabled locally, exactly as they do in production. In
# production this value is the application id; locally it is the fixed tenant
# `local`.

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318
  # Local-only: gives a developer something on the dashboards before their own
  # service emits anything. Production does not scrape host metrics.
  host_metrics:
    collection_interval: 15s
    scrapers:
      cpu:
      memory:
      disk:
      filesystem:
      network:

processors:
  batch:
    timeout: 5s
    send_batch_size: 1024
  memory_limiter:
    check_interval: 2s
    limit_percentage: 80
    spike_limit_percentage: 20

exporters:
  otlp_http/loki:
    logs_endpoint: http://loki:3100/otlp/v1/logs
    headers:
      X-Scope-OrgID: local
    tls:
      insecure: true
  otlp_grpc/tempo:
    endpoint: tempo:4317
    headers:
      X-Scope-OrgID: local
    tls:
      insecure: true
  prometheus_remote_write/mimir:
    endpoint: http://mimir:9090/api/v1/push
    headers:
      X-Scope-OrgID: local
    tls:
      insecure: true

extensions:
  health_check:
    endpoint: 0.0.0.0:13133

service:
  extensions: [health_check]
  telemetry:
    logs:
      level: warn
  pipelines:
    logs:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlp_http/loki]
    traces:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlp_grpc/tempo]
    metrics:
      receivers: [otlp, host_metrics]
      processors: [memory_limiter, batch]
      exporters: [prometheus_remote_write/mimir]