mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-10-30 18:26:25 +00:00
* Update span metrics processor * update stage for auto enable * Use the default sanitization
87 lines
3.1 KiB
YAML
87 lines
3.1 KiB
YAML
# This example demonstrates all possible configuration parameters to
|
|
# the spanprocessor config.
|
|
receivers:
|
|
jaeger:
|
|
protocols:
|
|
thrift_http:
|
|
endpoint: "0.0.0.0:14278"
|
|
|
|
otlp:
|
|
protocols:
|
|
grpc:
|
|
endpoint: "localhost:55677"
|
|
|
|
# Dummy receiver that's never used, because a pipeline is required to have one.
|
|
otlp/spanmetrics:
|
|
protocols:
|
|
grpc:
|
|
endpoint: "localhost:12345"
|
|
|
|
exporters:
|
|
prometheus:
|
|
endpoint: "0.0.0.0:8889"
|
|
|
|
jaeger:
|
|
endpoint: "localhost:14250"
|
|
tls:
|
|
insecure: true
|
|
|
|
otlp/spanmetrics:
|
|
endpoint: "localhost: 55677"
|
|
tls:
|
|
insecure: true
|
|
|
|
processors:
|
|
batch:
|
|
signozspanmetrics:
|
|
metrics_exporter: otlp/spanmetrics
|
|
latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 100ms, 250ms]
|
|
dimensions_cache_size: 1500
|
|
|
|
# Additional list of dimensions on top of:
|
|
# - service.name
|
|
# - operation
|
|
# - span.kind
|
|
# - status.code
|
|
dimensions:
|
|
|
|
# If the span is missing http.method, the processor will insert
|
|
# the http.method dimension with value 'GET'.
|
|
# For example, in the following scenario, http.method is not present in a span and so will be added as a dimension to the metric with value "GET":
|
|
# - signoz_calls_total{http_method="GET",operation="/Address",service_name="shippingservice",span_kind="SPAN_KIND_SERVER",status_code="STATUS_CODE_UNSET"} 1
|
|
- name: http.method
|
|
default: GET
|
|
|
|
# If a default is not provided, the http.status_code dimension will be omitted
|
|
# if the span does not contain http.status_code.
|
|
# For example, consider a scenario with two spans, one span having http.status_code=200 and another missing http.status_code. Two metrics would result with this configuration, one with the http_status_code omitted and the other included:
|
|
# - signoz_calls_total{http_status_code="200",operation="/Address",service_name="shippingservice",span_kind="SPAN_KIND_SERVER",status_code="STATUS_CODE_UNSET"} 1
|
|
# - signoz_calls_total{operation="/Address",service_name="shippingservice",span_kind="SPAN_KIND_SERVER",status_code="STATUS_CODE_UNSET"} 1
|
|
- name: http.status_code
|
|
|
|
# The aggregation temporality of the generated metrics.
|
|
# Default: "AGGREGATION_TEMPORALITY_CUMULATIVE"
|
|
aggregation_temporality: "AGGREGATION_TEMPORALITY_DELTA"
|
|
|
|
service:
|
|
pipelines:
|
|
traces:
|
|
receivers: [jaeger]
|
|
# spanmetrics will pass on span data untouched to next processor
|
|
# while also accumulating metrics to be sent to the configured 'otlp/spanmetrics' exporter.
|
|
processors: [signozspanmetrics, batch]
|
|
exporters: [jaeger]
|
|
|
|
# This pipeline acts as a proxy to the 'metrics' pipeline below,
|
|
# allowing for further metrics processing if required.
|
|
metrics/spanmetrics:
|
|
# This receiver is just a dummy and never used.
|
|
# Added to pass validation requiring at least one receiver in a pipeline.
|
|
receivers: [otlp/spanmetrics]
|
|
exporters: [otlp/spanmetrics]
|
|
|
|
metrics:
|
|
receivers: [otlp]
|
|
# The metrics_exporter must be present in this list.
|
|
exporters: [prometheus]
|