compose/openobserve/vector.toml
2025-05-16 23:15:29 +08:00

33 lines
857 B
TOML

data_dir = "/var/lib/vector"
[api]
enabled = false
[sources.observe_nokiy_net_logs]
type = "docker_logs"
include_containers = ["openobserve"]
[sources.observe_nokiy_net_metrics]
type = "prometheus_scrape"
endpoints = ["http://openobserve:5080/metrics"]
[sinks.openobserve_logs]
inputs = ["observe_nokiy_net_logs"]
type = "http"
uri = "${OTLP_URI}/api/default/observe_nokiy_net_metrics/_json"
method = "post"
auth.strategy = "basic"
auth.user = "${OTLP_USER}"
auth.password = "${OTLP_PASSWORD}"
compression = "gzip"
encoding.codec = "json"
encoding.timestamp_format = "rfc3339"
healthcheck.enabled = false
[sinks.openobserve_metrics]
type = "prometheus_remote_write"
inputs = ["observe_nokiy_net_metrics"]
endpoint = "${OTLP_URI}/api/default/prometheus/api/v1/write"
auth.strategy = "basic"
auth.user = "${OTLP_USER}"
auth.password = "${OTLP_PASSWORD}"