Skip to content

Instantly share code, notes, and snippets.

@ghostflare76
Created July 26, 2022 02:07
Show Gist options
  • Save ghostflare76/f9eaa72d4313bf5d18b3d4dba7a71640 to your computer and use it in GitHub Desktop.
Save ghostflare76/f9eaa72d4313bf5d18b3d4dba7a71640 to your computer and use it in GitHub Desktop.
otel collector
receivers:
otlp:
protocols:
grpc:
exporters:
logging:
zipkin:
endpoint: "http://zipkin-all-in-one:9411/api/v2/spans"
format: proto
jaeger:
endpoint: jaeger-all-in-one:14250
tls:
insecure: true
processors:
tail_sampling:
decision_wait: 10s
policies:
[
{
name: server_error_http,
type: numeric_attribute,
numeric_attribute: {key: http.status_code, min_value: 500, max_value: 511}
},
{
name: slow_latency_3s,
type: latency,
latency: {threshold_ms: 3000}
},
{
name: sampling_10_percent,
type: probabilistic,
probabilistic: {sampling_percentage: 10}
}
]
extensions:
health_check:
pprof:
endpoint: :1888
zpages:
endpoint: :55679
service:
extensions: [pprof, zpages, health_check]
pipelines:
traces:
receivers: [otlp]
processors: [tail_sampling]
exporters: [logging, zipkin, jaeger]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment