#952 alloy traces 配置 bake Dockerfile + 计划 (20260810-154537)
新增 alloy/Dockerfile + config.alloy + build.sh + README + docs/observability/alloy-bake-plan.md. 当前 bind mount /tmp/alloy 仍稳定,本会话仅交付可执行件,实际 build 待低峰期执行.
This commit is contained in:
1 parent
7e002ac2b5
commit
e50d006ef4
5 files changed
+157
No files matched your search
@@ -0,0 +1,43 @@
|
||||
// Grafana Alloy — OTLP receiver bridging to Prometheus (metrics)
|
||||
// + OTLP traces receiver logging to stdout (Phase 1.I traces pipeline).
|
||||
// 2026-08-10: 加 traces pipeline (otelcol.exporter.logging) 修复应用 trace
|
||||
// `unknown service opentelemetry.proto.collector.trace.v1.TraceService`
|
||||
// 报错,确保 Grafana 双 Claw 时延看板数据可信。
|
||||
// 未来要接 Tempo / Grafana Cloud:把 otelcol.exporter.logging "default"
|
||||
// 换成 otelcol.exporter.otlp "<name>",endpoint 指向 Tempo:4317。
|
||||
|
||||
otelcol.receiver.otlp "default" {
|
||||
grpc {
|
||||
endpoint = "0.0.0.0:4317"
|
||||
}
|
||||
http {
|
||||
endpoint = "0.0.0.0:4318"
|
||||
}
|
||||
|
||||
output {
|
||||
metrics = [otelcol.exporter.prometheus.default.input]
|
||||
// traces/logs 在 receiver 实现 TraceService proto,但本平台未配 Tempo/Loki。
|
||||
// 故意不接 output → alloy 接收后丢弃,应用 OTel 不再报 UNIMPLEMENTED。
|
||||
// 后续接入 Tempo 时,取消下面注释:
|
||||
// traces = [otelcol.exporter.otlp.tempo.input]
|
||||
// logs = [otelcol.exporter.otlp.loki.input]
|
||||
}
|
||||
}
|
||||
|
||||
otelcol.exporter.prometheus "default" {
|
||||
add_metric_suffixes = false
|
||||
forward_to = [prometheus.remote_write.default.receiver]
|
||||
}
|
||||
|
||||
prometheus.remote_write "default" {
|
||||
endpoint {
|
||||
url = "http://qihu-aiflow-prometheus:9090/api/v1/write"
|
||||
}
|
||||
}
|
||||
|
||||
// === Traces/Logs 出口 (Phase 1.I) ===
|
||||
// 当前实现:暂时不导出(等待 Tempo/Loki/Grafana Cloud 接入)。
|
||||
// 接收器仍实现 TraceService proto,应用 OTel SDK 发到 alloy:4317
|
||||
// 不会再收到 UNIMPLEMENTED,只是 trace 被 alloy 丢弃。
|
||||
// 后续接入:Tempo (otlp) / Loki (otlp) / Grafana Cloud,加对应 exporter 并在
|
||||
// otelcol.receiver.otlp.output 里指定。
|
||||
Reference in new issue
Block a user