Skip to content

Commit 7a86186

Browse files
committed
debug v2 endpoints: fmt logs and change endpoint
1 parent 2a2ff1d commit 7a86186

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

otelcol-config.yaml

+17-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,19 @@ processors:
6666
send_batch_size: 100
6767
resourcedetection:
6868
detectors: [ecs, ec2, system, env]
69+
attributes:
70+
actions:
71+
- action: insert
72+
key: loki.attribute.labels
73+
value: event.domain
74+
resource:
75+
attributes:
76+
- action: insert
77+
key: loki.resource.labels
78+
value: service.name
79+
- action: insert
80+
key: loki.format
81+
value: logfmt
6982

7083
exporters:
7184
debug:
@@ -92,9 +105,12 @@ exporters:
92105
# enabled: false // its sending emtrics, lets test the otlp/v1/metrics now along with logs
93106

94107
otlphttp/loki:
95-
endpoint: "https://logs-prod-021.grafana.net:3100/otlp/vi/logs"
108+
endpoint: https://logs-prod-021.grafana.net:3100/loki/api/vi/push
96109
auth:
97110
authenticator: basicauth/otlp
111+
default_labels_enabled:
112+
exporter: false
113+
job:
98114

99115
service:
100116
extensions: [health_check, pprof, zpages, basicauth/grafana_cloud, basicauth/otlp, basicauth/prometheus]

0 commit comments

Comments
 (0)