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

Better error message when topology components don't match supported types #3273

Open
binarylogic opened this issue Jul 30, 2020 · 3 comments
Labels
domain: config Anything related to configuring Vector domain: observability Anything related to monitoring/observing Vector domain: setup Anything related to setting up or installing Vector domain: topology Anything related to Vector's topology code have: should We should have this feature, but is not required. It is medium priority. type: enhancement A value-adding code change that enhances its existing functionality.

Comments

@binarylogic
Copy link
Contributor

I recently helped a user fix a topology error, where they had a prometheus source (metrics) connected to a rename_fields transform (logs). They received the following error:

Jul 30 19:44:26.948 ERROR vector::topology: Configuration error: Data type mismatch between aws_meta (Log) and aws_env (Metric)
Jul 30 19:44:26.948 ERROR vector::topology: Configuration error: Data type mismatch between mystique (Metric) and aws_meta (Log)

I think we can improve this error message and also link to our docs explaining what it is (ref #978).

@binarylogic binarylogic added type: enhancement A value-adding code change that enhances its existing functionality. domain: topology Anything related to Vector's topology code domain: observability Anything related to monitoring/observing Vector have: should We should have this feature, but is not required. It is medium priority. labels Jul 30, 2020
@binarylogic binarylogic added domain: config Anything related to configuring Vector domain: setup Anything related to setting up or installing Vector Epic Larger, user-centric issue that contains multiple sub-issues and removed Epic Larger, user-centric issue that contains multiple sub-issues labels Aug 8, 2020
@LinTechSo
Copy link

HI, same issue, any updates?

@jszwedko
Copy link
Member

jszwedko commented Feb 10, 2022

HI, same issue, any updates?

Can you share your configuration and the error message you got? Seemingly you have two incompatible components connected.

@omers
Copy link

omers commented Aug 13, 2023

Same Issue here.

---
sources:
  data_in:
    type: http_server
    address: 0.0.0.0:8686
    encoding: json
    method: POST
    path: /influx
    path_key: influx
transforms:
  sanity:
    type: remap
    inputs:
      - data_in
    source: |
      .timestamp = to_unix_timestamp(now())
sinks:
  to_influx:
    type: influxdb_metrics
    inputs: 
      - data_in
    bucket: sls
    endpoint: http://**:8086
    token: "***"
    org: ***
    batch:
      timeout_secs: 1
curl localhost:8686/influx -XPOST -d '{
  "metric": {
    "counter": {
      "value": 1.5
    },
    "kind": "incremental",
    "name": "logins",
    "tags": {
      "host": "my-host.local"
    }
  }
}'

Error:

2023-08-13T13:38:23.632958Z ERROR vector::cli: Configuration error. error=Data type mismatch between data_in (Log) and to_influx (Metric)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: config Anything related to configuring Vector domain: observability Anything related to monitoring/observing Vector domain: setup Anything related to setting up or installing Vector domain: topology Anything related to Vector's topology code have: should We should have this feature, but is not required. It is medium priority. type: enhancement A value-adding code change that enhances its existing functionality.
Projects
None yet
Development

No branches or pull requests

5 participants