-
This is my configurationdata_dir = "/opt/vector" [transforms.json] [transforms.gauge] [[transforms.gauge.metrics]]
[[transforms.gauge.metrics]]
[[transforms.gauge.metrics]]
[sinks.print] [sinks.prom] running[root@mydev config]# ../bin/vector -c gau.toml Insert Logecho '{"load_avg_15m": 48.7,"load_avg_1m": 78.2,"load_avg_5m": 56.2,"host": "10.22.11.222","message": "CPU activity sample"}' >>metric.log I can't find the data in prometheus! when endpoint = "http://192.168.159.133:9090/" 2023-02-03T08:55:20.045388Z ERROR vector::topology::builder: msg="Healthcheck failed." error=Unexpected status: 302 Found component_kind="sink" component_type="prometheus_remote_write" component_id=prom component_name=prom Again, I didn't find the data in prometheus Is there a mistake in my configuration? tks! Version & Commandprometheus, version 2.36.2 /opt/prometheus/prometheus --config.file=/opt/prometheus/prometheus.yml --web.read-timeout=5m --web.max-connections=10 --storage.tsdb.retention=15d --storage.tsdb.path=/opt/prometheus/data --query.max-concurrency=20 --query.timeout=2m --web.enable-admin-api --web.enable-lifecycle --web.enable-remote-write-receiver |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @FengZh61 ! I think for endpoint you just want |
Beta Was this translation helpful? Give feedback.
Hi @FengZh61 !
I think for endpoint you just want
http://192.168.159.133:9090/api/v1
as Vector appears to add/write
to that.