This commit is contained in:
reonokiy 2025-05-16 18:27:52 +08:00
parent 4548ff398d
commit 47f64bf6fb
Signed by: reonokiy
SSH key fingerprint: SHA256:2VjKpUxMIe0QYY3OVnOMuPiB0X5pvrIpJ+UiyFhxtq0
3 changed files with 11 additions and 20 deletions

View file

@ -13,6 +13,7 @@ services:
DB_CONNECTION_URI: postgres://infisical:${POSTGRES_PASSWORD:-infisical}@postgres:5432/infisical
REDIS_URL: redis://redis:6379
SITE_URL: ${SITE_URL:-http://localhost}
TELEMETRY_ENABLED: false
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-6c1fe4e407b8911c104518103505b218}
AUTH_SECRET: ${AUTH_SECRET:-5lrMXKKWCVocS/uerPsl7V+TX/aaUaI7iDkgl3tSmLE=}
# SMTP_HOST: ${SMTP_HOST}
@ -45,7 +46,7 @@ services:
postgres:
container_name: postgres
image: postgres:${POSTGRES_VERSION:-14-alpine}
image: postgres:${POSTGRES_VERSION:-14}
restart: always
environment:
POSTGRES_DB: infisical

View file

@ -23,9 +23,9 @@ services:
restart: always
command: [ "--config", "/etc/vector/vector.toml" ]
environment:
OTEL_URI: ${OTEL_URI}
OTEL_USER: ${OTEL_USER}
OTEL_PASSWORD: ${OTEL_PASSWORD}
OTLP_URI: ${OTLP_URI}
OTLP_USER: ${OTLP_USER}
OTLP_PASSWORD: ${OTLP_PASSWORD}
volumes:
- ${VECTOR_CONFIG_PATH:-./vector.toml}:/etc/vector/vector.toml:ro
- ${DATA_DIR:-./data}/vector:/var/lib/vector:Z

View file

@ -11,22 +11,12 @@ include_containers = ["openobserve"]
type = "prometheus_scrape"
endpoints = ["http://openobserve:5080/metrics"]
[sinks.otel_logs]
[sinks.observe_nokiy_net]
type = "opentelemetry"
encoding = "json"
inputs = ["observe_nokiy_net_logs"]
inputs = ["observe_nokiy_net_logs", "observe_nokiy_net_metrics"]
protocol.type = "http"
protocol.uri = "${OTEL_URI}"
protocol.uri = "${OTLP_URI}/api/default"
protocol.auth.strategy = "basic"
protocol.auth.user = "${OTEL_USER}"
protocol.auth.password = "${OTEL_PASSWORD}"
protocol.compression = "zstd"
# [sinks.otel_metrics]
# type = "opentelemetry"
# inputs = ["my-source-or-transform-id"]
# [sinks.otel_traces]
# type = "opentelemetry"
# inputs = ["my-source-or-transform-id"]
protocol.auth.user = "${OTLP_USER}"
protocol.auth.password = "${OTLP_PASSWORD}"
protocol.headers.stream-name = "observe_nokiy_net"