61 lines
1.2 KiB
Plaintext
61 lines
1.2 KiB
Plaintext
// recivers
|
|
otelcol.receiver.otlp "otlp_receiver" {
|
|
grpc {
|
|
endpoint = "0.0.0.0:4317"
|
|
}
|
|
http {
|
|
endpoint = "0.0.0.0:4318"
|
|
}
|
|
output {
|
|
metrics = [otelcol.processor.batch.otlp_batcher.input]
|
|
logs = [otelcol.processor.batch.otlp_batcher.input]
|
|
traces = [otelcol.exporter.loadbalancing.otel.input]
|
|
}
|
|
}
|
|
|
|
otelcol.processor.batch "otlp_batcher" {
|
|
output {
|
|
metrics = [otelcol.exporter.otlphttp.mimir.input]
|
|
logs = [otelcol.exporter.otlphttp.loki.input]
|
|
}
|
|
}
|
|
|
|
otelcol.exporter.otlphttp "mimir" {
|
|
client {
|
|
endpoint = "http://mimir-nginx.mimir-distributed.svc.clusterset.local/otlp"
|
|
headers = {"X-Scope-OrgID" = "anonymous"}
|
|
tls {
|
|
insecure = true
|
|
}
|
|
}
|
|
}
|
|
otelcol.exporter.otlphttp "loki" {
|
|
client {
|
|
endpoint = "http://loki-gateway.loki-distributed.svc.clusterset.local/otlp"
|
|
tls {
|
|
insecure = true
|
|
}
|
|
}
|
|
}
|
|
otelcol.exporter.loadbalancing "otel" {
|
|
routing_key = "traceID"
|
|
resolver {
|
|
dns {
|
|
hostname = "opentelemetry-admin-prd-headless.opentelemetry.svc.clusterset.local"
|
|
timeout = "5s"
|
|
}
|
|
}
|
|
protocol {
|
|
otlp {
|
|
client {
|
|
tls {
|
|
insecure = true
|
|
}
|
|
}
|
|
queue {
|
|
num_consumers = 100
|
|
queue_size = 100000
|
|
}
|
|
}
|
|
}
|
|
} |