mirror of
https://github.com/reonokiy/compose.git
synced 2025-06-15 13:12:54 +02:00
update
This commit is contained in:
parent
6694e39fa7
commit
55148f604f
1 changed files with 21 additions and 11 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue