github.com/openfga/openfga@v1.5.4-rc1/telemetry/otel-collector-config.yaml (about) 1 # https://opentelemetry.io/docs/collector/configuration/ 2 3 # How data gets into the Collector 4 receivers: 5 # Data sources: traces, metrics, logs 6 otlp: 7 protocols: 8 grpc: 9 endpoint: "otel-collector:4317" 10 # Data sources: metrics 11 prometheus: 12 config: 13 scrape_configs: 14 - job_name: openfga/openfga 15 scrape_interval: 1s 16 static_configs: 17 - targets: [ openfga:2112 ] 18 labels: 19 service: openfga 20 21 # How you send data to one or more backends. Configuring an exporter does not enable it. 22 exporters: 23 # Data sources: traces 24 otlp: 25 endpoint: jaeger:4317 26 tls: 27 insecure: true 28 retry_on_failure: 29 enabled: true 30 initial_interval: 5s 31 max_interval: 30s 32 max_elapsed_time: 300s 33 sending_queue: 34 enabled: true 35 num_consumers: 10 36 queue_size: 10000 37 # this should work out to about 8M batches/second for 10s buffer 38 # Data sources: traces, metrics, logs 39 logging: 40 loglevel: debug 41 # Data sources: metrics 42 prometheus: 43 endpoint: otel-collector:2113 44 45 processors: 46 # Data sources: traces, metrics, logs 47 memory_limiter: 48 check_interval: 1s 49 limit_percentage: 30 50 spike_limit_percentage: 6 51 # Data sources: traces, metrics, logs 52 batch: 53 timeout: 2s 54 send_batch_max_size: 32768 55 56 # Tasks that do not involve processing telemetry data. Configuring an extension does not enable it. 57 extensions: 58 memory_ballast: 59 # https://github.com/open-telemetry/opentelemetry-collector/blob/main/extension/ballastextension/README.md 60 size_in_percentage: 10 61 62 service: 63 extensions: [memory_ballast] 64 pipelines: 65 traces: 66 receivers: [otlp] 67 processors: [memory_limiter, batch] 68 exporters: [otlp] 69 metrics: 70 receivers: [prometheus] 71 processors: [batch] 72 exporters: [prometheus]