InfluxDB decoding in sources #21027
Replies: 2 comments 1 reply
-
Ah, yes, this should work so I'd consider it a bug. I think you are running into this issue because And yes, the docs could benefit from updating too. The vector/website/cue/reference/components/sources/exec.cue Lines 44 to 84 in b2c9f27 Which is why the documentation renders like that. I think we'd need to update any source that is capable of emitting metrics given a metrics codec to have or refactor the docs to enable indicating that a given component can emit different types depending on the codec configured. |
Beta Was this translation helpful? Give feedback.
-
Agree with all of that! And yes, I'd interested (although I think the
That would be awesome. I think we should state this in a issue so this does not get lost. I don't how to express that, do you mind to create the issue about this? Otherwise I could try to create it by myself |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, with the release of the influxDB decoding option in source
decoding.codec=influxdb
I thought I could use it to generate metrics from all kinds of sources, for example, with this config:where sampling.txt are lines of valid influxDB line protocol messages.
It seems that this fails due to the fact that log sources cannot output metric types?
If thats true and metrics cannot be generated from log sources, what are the use cases of the
decoding.codec: influxdb
option? Can that codec be really used in text-based sources? Or am I missing something?For example, I would like to use a kafka source that can only output logs, but parse the messages with the
influxdb
codec.I see this was discussed here #11337 (comment) but I don't see that the limitation of
ty.contains(DataType::Log)
for codecs is lifted in these cases, as the influxdb codec only outputs metrics and would fail for log-only output sourcesI don't think it has sense to limit the output of a source based on the source type (as it is done here
vector/lib/vector-core/src/config/mod.rs
Line 127 in b2c9f27
decoding.codec=native_json
, the Kafka source could output metrics too, and in the documentation it states that the output is exclusivelly logsoutput: logs
I think it would be a better fit that this was called
default output: logs
or so, because the "real" output depends on the codec we are usingIn this case, I think any log-only output source with a metrics-only codec should be valid
Beta Was this translation helpful? Give feedback.
All reactions