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]
|
[sources.observe_nokiy_net_metrics]
|
||||||
type = "prometheus_scrape"
|
type = "prometheus_scrape"
|
||||||
endpoints = ["${OTLP_URI}/metrics"]
|
endpoints = ["http://openobserve:5080/metrics"]
|
||||||
|
|
||||||
[sinks.observe_nokiy_net]
|
[sinks.openobserve_logs]
|
||||||
type = "opentelemetry"
|
inputs = ["observe_nokiy_net_logs"]
|
||||||
inputs = ["observe_nokiy_net_logs", "observe_nokiy_net_metrics"]
|
type = "http"
|
||||||
protocol.type = "http"
|
uri = "${OTLP_URI}/api/default/observe_nokiy_net_metrics/_json"
|
||||||
protocol.encoding.codec = "json"
|
method = "post"
|
||||||
protocol.uri = "${OTLP_URI}/api/default"
|
auth.strategy = "basic"
|
||||||
protocol.auth.strategy = "basic"
|
auth.user = "${OTLP_USER}"
|
||||||
protocol.auth.user = "${OTLP_USER}"
|
auth.password = "${OTLP_PASSWORD}"
|
||||||
protocol.auth.password = "${OTLP_PASSWORD}"
|
compression = "gzip"
|
||||||
protocol.headers.stream-name = "observe_nokiy_net"
|
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