Skip to content

Problem with connecting prometheus in v0.3 #855

@romvarac

Description

@romvarac

Hi Team, I try to connect sinks prometheus in document v.03 but not work. May be in v.03 not using sinks promethes ???

  1. vector.toml in https://docs.vector.dev/v/v0.3/usage/configuration/sinks/prometheus.
[sinks.out]
      inputs = [<source-id>]
      type = "prometheus"
      address = "0.0.0.0:9090"

      [sinks.<source-id>.buffer]
        type = "disk"
        max_size = 100000000

Error: vector::topology: Configuration error: missing field when_full for key sinks.out.buffer
2. Changed config

[sinks.out]
      inputs = [<source-id>]
      type = "prometheus"
      address = "0.0.0.0:9090"

      [sinks.<source-id>.buffer]
        type = "disk"
        max_size = 100000000

       when_full = "block"
       num_items = 500

ERROR vector::topology: Configuration error: Sink "out": Must set data_dir to use on-disk buffering.
ERROR vector::topology: Configuration error: Data type mismatch between in (Log) and out (Metric)

I try to by pass, but empty log_to_metric in doc (https://docs.vector.dev/v/v0.3/usage/configuration/transforms/log_to_metric).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions