diff --git a/openobserve/vector.toml b/openobserve/vector.toml index f86b5d5..322b387 100644 --- a/openobserve/vector.toml +++ b/openobserve/vector.toml @@ -9,15 +9,25 @@ include_containers = ["openobserve"] [sources.observe_nokiy_net_metrics] type = "prometheus_scrape" -endpoints = ["${OTLP_URI}/metrics"] +endpoints = ["http://openobserve:5080/metrics"] -[sinks.observe_nokiy_net] -type = "opentelemetry" -inputs = ["observe_nokiy_net_logs", "observe_nokiy_net_metrics"] -protocol.type = "http" -protocol.encoding.codec = "json" -protocol.uri = "${OTLP_URI}/api/default" -protocol.auth.strategy = "basic" -protocol.auth.user = "${OTLP_USER}" -protocol.auth.password = "${OTLP_PASSWORD}" -protocol.headers.stream-name = "observe_nokiy_net" +[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}"