Im looking in to the opentelemetry input and tried...
# fluent-bit
e
Im looking in to the opentelemetry input and tried to find if there was a way to get the http header sent to the input to be able to dynamically decide where to send the output. I wasn’t able to find a way of doing it so wanted to hear if anyone knows here instead?
a
You could do tag from URI?
Instead of header it would be the trailing request
e
Do you mean it would be possible to send e.g. metrics to
/v1/metrics/:tenant
? I have tried but getting connection refused so it does only seem to allow
/v1/metrics
c
I think you can put multiple opentelemetry output and set metrics_uri differently and route based on tag accordingly
OK probably you have multiple tenants sending their metrics to fluent bit otlp endpoint end you want to understand which tenant's sent this metric and route accordingly, am I right? then multiple opentelemetry input also with tag_from_uri. But it might be possible to tag also using lua as otlp request include service..name, service.id etc so you can process that info with lua and tag
bu I didn't test it just a theory
e
Yes, tenants is dynamic so i was hoping to be able to have one endpoint for all tenants and be able to send to a dynamic opentelemetry output as well. I don’t control the tenants request so I can’t be 100% a certain field that identifies them will be there. Ok thanks for your help. Doesn’t seem to be an obvious solution 🙏