fix
This commit is contained in:
parent
f8131d0b0c
commit
f92056e605
2 changed files with 10 additions and 11 deletions
|
@ -52,3 +52,12 @@ schema_config:
|
||||||
|
|
||||||
ruler:
|
ruler:
|
||||||
alertmanager_url: http://localhost:9093
|
alertmanager_url: http://localhost:9093
|
||||||
|
|
||||||
|
otlp_config:
|
||||||
|
resource_attributes:
|
||||||
|
log_attributes:
|
||||||
|
- action: index_label
|
||||||
|
attributes:
|
||||||
|
- component
|
||||||
|
- function
|
||||||
|
- endpoint
|
||||||
|
|
|
@ -26,16 +26,6 @@ receivers:
|
||||||
|
|
||||||
processors:
|
processors:
|
||||||
batch: # https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/batchprocessor
|
batch: # https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/batchprocessor
|
||||||
attributes:
|
|
||||||
actions:
|
|
||||||
- action: insert
|
|
||||||
key: loki.attribute.labels
|
|
||||||
value: [component, function, endpoint]
|
|
||||||
resource:
|
|
||||||
attributes:
|
|
||||||
- action: insert
|
|
||||||
key: loki.resource.labels
|
|
||||||
value: [host.name, service.name, service.namespace]
|
|
||||||
|
|
||||||
exporters:
|
exporters:
|
||||||
otlp/tempo:
|
otlp/tempo:
|
||||||
|
@ -84,5 +74,5 @@ service:
|
||||||
- prometheusremotewrite/grafana_cloud_metrics
|
- prometheusremotewrite/grafana_cloud_metrics
|
||||||
logs:
|
logs:
|
||||||
receivers: [otlp]
|
receivers: [otlp]
|
||||||
processors: [attributes, resource, batch]
|
processors: [batch]
|
||||||
exporters: [otlphttp/loki, loki/grafana_cloud_logs]
|
exporters: [otlphttp/loki, loki/grafana_cloud_logs]
|
||||||
|
|
Loading…
Reference in a new issue