-
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
Panic when http_server using native decoding receives metric #17056
Comments
Thanks for the report @dekelpilli . I was able to reproduce that with your provided config and example data (much appreciated). The sources that support the Checking the source code of Snippet from the full backtrace:
|
I have a use case for collecting metrics and logs in a Vector aggregator from an untrusted Vector agent, and I'd love to be able to use an http source to collect both metrics and logs (so that I can authenticate payloads). I hit this error myself, too. Any prioritization update? |
We have not yet queued this one into the short term roadmap, so it's hard to give an accurate timeline for it. Do add a "👍" to the initial comment to "vote" on it, that does help. |
We also accept PRs 🙂 This one should involve updating any places in the |
Thanks, no worries.
I upvoted the PR description, assuming that's what you meant.
That doesn't sound too bad. I'm still in a prototype/demo stage for my project at the moment, but if I get further and still need this I may take a crack at it. |
Hi here! I'm really glad we got this so fast, do we know if this fix will be include in the next release like v0.34.0? |
Yep! |
A note for the community
Problem
Vector panics when receiving native metrics via the http_server source, because it tries to coerce the event into a log event (but can't). This is interesting, because I tried linking the
http_server
source tometric_to_log
and gotConfiguration error. error=Data type mismatch between h (Log) and x (Metric)
, but when I changed the decoding to usenative_json
, it was able to start up, which indicates to me that it is intended be able to output metrics. If this is not the case, I'd be happy to open another issue to request that as a feature.Configuration
Version
vector 0.28.1 (x86_64-apple-darwin ff15924 2023-03-06)
Debug Output
Example Data
Additional Context
No response
References
The text was updated successfully, but these errors were encountered: