-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vector V0.35.0 does not seem to be recognizing the all_metrics field in the log_to_metric transform and gives an error upon its inclusion. #19633
Comments
@a-patos I think you want to leave out the Also, if the goal is just to send metrics to Kafka, that can be achieved by configuring |
My goal is to retrieve the metrics stored in Kafka topics and send them to different Prometheus instances. Sending metrics is working with this configuration: metric: but the opposite don't work :( |
I'm a little confused since:
Is this Vector configuration? Or configuration for another tool? |
@jszwedko : { I attached a small schema for your reference In my schema, it is the "Vector Reader" part that is causing an error :(" with Vector ReaderConfig: : sources: sinks: i got : with Vector ReaderConfig: : sources: transforms: i got : with Vector ReaderConfig: : sources: transforms: i got : |
Thanks @a-patos . I'd recommend taking a look at https://vector.dev/highlights/2022-03-31-native-event-codecs/#sending-events-between-vector-instances . It discusses basically this exact use-case. The recommendation is to use the |
Which would mean removing the |
Oh great! It works perfectly, a big thank you for your help! 🥇 Can I ask one more thing, Is it possible for me to implement a number of controls on the labels before sending the metrics? |
A
A I'll close this out since I think the issue is resolved, but feel free to open GitHub Discussions if you have additional usage questions! |
@a-patos Could you share a working configuration of both Vector Agents? Prometheus <-- Vector Agent -> GCP PubSub <-- Vector Aggregator (Prometheus exporter sink) <-- Prometheus
|
A note for the community
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Problem
Vector V0.35.0 does not seem to be recognizing the all_metrics field in the log_to_metric transform and gives an error upon its inclusion.
Configuration
Version
vector 0.35.0 (aarch64-unknown-linux-gnu e57c0c0 2024-01-08 14:42:10.103908779)
Debug Output
Example Data
No response
Additional Context
Hello, I'm trying to implement a Kafka bus that centralizes all my metric collects from several Prometheus, and I need to route my metrics to different backends.
No problem to do the source.prometheus_remote_write to sinks.kafka,
but the reverse doesn't seem to be possible without this all_metrics, if I understood correctly.
References
#19625
The text was updated successfully, but these errors were encountered: