Hello Team, I have a question. I have a fluenbit c...
# general
d
Hello Team, I have a question. I have a fluenbit container with opentelemetry input plugin. I want to send OTLP format metrics in protobuf format. As such I am sending the data (OTLP format metrics, note: a single data record may have multiple metrics/datapoints) in protobuf format to v1/metrics. after ingestion i have lua, modify and rewrite_tag filters setup and output is stdout. however, for some reason the data (metrics) is ingested but it doesn't go through the filters. To check if metric can reach output or not, I setup a catch-all stdout plugin, due to which I see each metric separately as a json log as it is. Due to some reason the data isn't passing through the filters. I would be grateful if anyone can guide me on this issue. Thank You
p
Yup, all the legacy filters do not handle metrics. You want metric specific processors to do that: https://docs.fluentbit.io/manual/data-pipeline/processors
d
I checked it out. but i think, I wont be able to use them. I will be receiving metrics. i need to check if certain list of field are present or not, make sure their value is not null. And then route the metrics based on if the validations pass or not. any way we can do it with processors.
p
well you can choose metrics to keep or discard, that seems like what you want: https://docs.fluentbit.io/manual/data-pipeline/processors/metrics-selector
routing wise you do not have to route by value but can just add a processor to each output to keep/discard appropriately
so route them all to every output and then on the output you can allow/prevent metrics going through by a specific processor that can have different config per output
the input can discard metrics that are invalid for all outputs (e.g. null) via a processor too
@hhatake knows the most around this though but I think what you want to do sounds like just a set of processors for input and output configured with whatever rules you want