Skip to content
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

Source type vector not recognized as a metric source #1153

Closed
sgowie opened this issue Nov 5, 2019 · 2 comments · Fixed by #2245
Closed

Source type vector not recognized as a metric source #1153

sgowie opened this issue Nov 5, 2019 · 2 comments · Fixed by #2245
Labels
sink: vector Anything `vector` sink related source: vector Anything `vector` source related type: bug A code related bug.

Comments

@sgowie
Copy link

sgowie commented Nov 5, 2019

According to the documentation, the vector source should provide both log and metrics

The vector source ingests data through another upstream Vector instance and outputs log and metric events.

However, a simple source to sink flow refuses to start due to a data type mismatch.

Example Config

data_dir = "/var/lib/vector"

[sources.debug]
type = "vector"
address = "0.0.0.0:9000"


[sinks.prometheus]
type = "prometheus"
inputs = ["debug"]
namespace = "test"
buckets = [0.0, 10.0, 100.0, 1000.0, 10000.0, 100001.0]
address = "0.0.0.0:9598"

Invocation:

docker run -p 9000:9000 -p 9598:9598 -v $(pwd):/etc/vector -v $(pwd)/data:/var/lib/vector timberio/vector:latest-alpine --config /etc/vector/vector.toml

Result:

Nov 05 22:48:50.226 INFO vector: Log level "info" is enabled.
Nov 05 22:48:50.230 INFO vector: Loading config. path="/etc/vector/vector.toml"
Nov 05 22:48:50.233 INFO vector: Vector is starting. version="0.4.0-dev" git_version="v0.5.0" released="Thu, 10 Oct 2019 18:41:05 GMT" arch="x86_64"
Nov 05 22:48:50.233 ERROR vector::topology: Configuration error: Data type mismatch between debug (Log) and prometheus (Metric)
@binarylogic binarylogic added sink: vector Anything `vector` sink related source: vector Anything `vector` source related type: bug A code related bug. labels Nov 6, 2019
@lukesteensen
Copy link
Member

Sorry about that @sgowie! That would be a bug in our documentation currently, though we do plan to support this.

We have issue #421 to track the actual implementation work that needs to happen before we can support a source that outputs both logs and metrics.

@ghost
Copy link

ghost commented Apr 7, 2020

Closed by #1153.

@ghost ghost closed this as completed Apr 7, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sink: vector Anything `vector` sink related source: vector Anything `vector` source related type: bug A code related bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants