This commit is contained in:
royalcat 2024-04-12 14:21:55 +03:00
parent 007b242e0f
commit 04b83cab36
3 changed files with 13 additions and 13 deletions

View file

@ -1,5 +1,3 @@
version: "3"
services:
otel-collector:
image: otel/opentelemetry-collector-contrib:0.97.0

View file

@ -18,6 +18,13 @@ common:
limits_config:
allow_structured_metadata: true
retention_period: 90d
otlp_config:
log_attributes:
- action: index_label
attributes:
- component
- function
- endpoint
query_range:
results_cache:
@ -52,12 +59,3 @@ schema_config:
ruler:
alertmanager_url: http://localhost:9093
otlp_config:
resource_attributes:
log_attributes:
- action: index_label
attributes:
- component
- function
- endpoint

View file

@ -65,7 +65,9 @@ service:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp/tempo, otlp/grafana_cloud_traces]
exporters:
- otlp/tempo
- otlp/grafana_cloud_traces
metrics:
receivers: [otlp]
processors: [batch]
@ -75,4 +77,6 @@ service:
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/loki, loki/grafana_cloud_logs]
exporters:
- otlphttp/loki
- otlphttp/grafana_cloud_logs