mirror of
https://github.com/reonokiy/compose.git
synced 2025-06-14 20:56:47 +02:00
update
This commit is contained in:
parent
ba0ec9384d
commit
714b5a313b
3 changed files with 29 additions and 15 deletions
7
grafana/docker-compose.yaml
Normal file
7
grafana/docker-compose.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
services:
|
||||
grafana:
|
||||
image: grafana/grafana-enterprise
|
||||
container_name: grafana
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '3000:3000'
|
|
@ -23,9 +23,9 @@ services:
|
|||
restart: always
|
||||
command: [ "--config", "/etc/vector/vector.toml" ]
|
||||
environment:
|
||||
OPENOBSERVE_URL: ${OPENOBSERVE_URL}
|
||||
OPENOBSERVE_USER: ${OPENOBSERVE_USER}
|
||||
OPENOBSERVE_PASSWORD: ${OPENOBSERVE_PASSWORD}
|
||||
OTEL_URI: ${OTEL_URI}
|
||||
OTEL_USER: ${OTEL_USER}
|
||||
OTEL_PASSWORD: ${OTEL_PASSWORD}
|
||||
volumes:
|
||||
- ${VECTOR_CONFIG_PATH:-./vector.toml}:/etc/vector/vector.toml:ro
|
||||
- ${DATA_DIR:-./data}/vector:/var/lib/vector:Z
|
||||
|
|
|
@ -11,15 +11,22 @@ include_containers = ["openobserve"]
|
|||
type = "prometheus_scrape"
|
||||
endpoints = ["http://openobserve:5080/metrics"]
|
||||
|
||||
[sinks.openobserve]
|
||||
inputs = ["observe_nokiy_net_logs", "observe_nokiy_net_metrics"]
|
||||
type = "http"
|
||||
uri = "${OPENOBSERVE_URL}"
|
||||
method = "post"
|
||||
auth.strategy = "basic"
|
||||
auth.user = "${OPENOBSERVE_USER}"
|
||||
auth.password = "${OPENOBSERVE_PASSWORD}"
|
||||
compression = "gzip"
|
||||
encoding.codec = "json"
|
||||
encoding.timestamp_format = "rfc3339"
|
||||
healthcheck.enabled = false
|
||||
[sinks.otel_logs]
|
||||
type = "opentelemetry"
|
||||
encoding = "json"
|
||||
inputs = ["observe_nokiy_net_logs"]
|
||||
protocol.type = "http"
|
||||
protocol.uri = "${OTEL_URI}"
|
||||
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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue