Conditional Routing for service-map data is not working. #5304
Unanswered
arundanegoudar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue:
We're implementing a conditional based routing for trace data for creating dynamic indexes(multiple sinks) based upon one of the field present in the dataset (tenant_name). The conditional routing is working for traces, but not for the service-map data. The template for the service-map doesn't contain more fields and adding of custom fields is also not possible. So the service-map data is not going to relevant dynamic indexes like the trace data, which is causing issues while stitching the data at user interface level.
Reproduce:
Have multiple sinks for trace & service-map data depending upon the tenant_name (tenant1, tenant2 & tenant3 ... tenantN) field.
The service-map data won't follow the same routing like trace data.
Expected behavior
The trace & service-map data need to follow the similar kind of dynamic routing.
Config: pipelines.yaml for trace & service-map data
################################################################################
traces-entry-pipeline:
workers: 1
delay: "100"
source:
otel_trace_source:
ssl: false
buffer:
bounded_blocking:
route:
sink:
name: "traces-svcmaps-pipeline-t1"
routes: [tenant1_traces_svcmaps]
name: "traces-svcmaps-pipeline-t2"
routes: [tenant2_traces_svcmaps]
name: "traces-svcmaps-pipeline-t3"
routes: [tenant3_traces_svcmaps]
traces-svcmaps-pipeline-t1:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-entry-pipeline"
buffer:
bounded_blocking:
sink:
name: "trace-raws-pipeline-t1"
name: "service-maps-pipeline-t1"
traces-svcmaps-pipeline-t2:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-entry-pipeline"
buffer:
bounded_blocking:
sink:
name: "trace-raws-pipeline-t2"
name: "service-maps-pipeline-t2"
traces-svcmaps-pipeline-t3:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-entry-pipeline"
buffer:
bounded_blocking:
sink:
name: "trace-raws-pipeline-t3"
name: "service-maps-pipeline-t3"
trace-raws-pipeline-t1:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-svcmaps-pipeline-t1"
buffer:
bounded_blocking:
processor:
sink:
hosts: ["http://opensearch:9200"]
cert:
ssl_verification_enabled: false
insecure: true
username:
password:
index: acn_tenant1_traces-%{yyyy.MM.dd} # Dynamically creates index based on route
service-maps-pipeline-t1:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-svcmaps-pipeline-t1"
buffer:
bounded_blocking:
processor:
sink:
hosts: ["http://opensearch:9200"]
cert:
ssl_verification_enabled: false
insecure: true
username:
password:
index: acn_tenant1_servicemap-%{yyyy.MM.dd} # Dynamically creates index based on route
trace-raws-pipeline-t2:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-svcmaps-pipeline-t2"
buffer:
bounded_blocking:
buffer_size: 128 # 10240
batch_size: 8 # 160
processor:
sink:
hosts: ["http://opensearch:9200"]
cert:
ssl_verification_enabled: false
insecure: true
username:
password:
index: acn_tenant2_traces-%{yyyy.MM.dd} # Dynamically creates index based on route
service-maps-pipeline-t2:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-svcmaps-pipeline-t2"
buffer:
bounded_blocking:
processor:
sink:
hosts: ["http://opensearch:9200"]
cert:
ssl_verification_enabled: false
insecure: true
username:
password:
index: acn_tenant2_servicemap-%{yyyy.MM.dd} # Dynamically creates index based on route
trace-raws-pipeline-t3:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-svcmaps-pipeline-t3"
buffer:
bounded_blocking:
processor:
sink:
hosts: ["http://opensearch:9200"]
cert:
ssl_verification_enabled: false
insecure: true
username:
password:
index: acn_tenant3_traces-%{yyyy.MM.dd} # Dynamically creates index based on route
service-maps-pipeline-t3:
workers: 1
delay: "100"
source:
pipeline:
name: "traces-svcmaps-pipeline-t3"
buffer:
bounded_blocking:
processor:
sink:
hosts: ["http://opensearch:9200"]
cert:
ssl_verification_enabled: false
insecure: true
username:
password:
index: acn_tenant3_servicemap-%{yyyy.MM.dd} # Dynamically creates index based on route
################################################################################
Beta Was this translation helpful? Give feedback.
All reactions