File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
logging-k8s-stdout-otlp-json Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,22 @@ This example contains
15
15
[ experimental-otlp/stdout] ( https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#in-development-exporter-selection ) logs exporter
16
16
- a OTel collector configuration that uses the
17
17
[ OTLP/JSON connector] ( https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/connector/otlpjsonconnector ) to turn Pod logs into ` OTLP `
18
-
18
+
19
+ ## Architecture
19
20
20
21
![ OTLP/JSON Architecture] ( otlpjson-architecture.png )
21
22
23
+ The OTel Collector pipeline:
24
+
25
+ ![ OTel Collector Pipeline] ( otel-collector-otlpjson-pipeline.png )
26
+
22
27
## Getting Started
23
28
24
29
The k8s directory contains the Kubernetes manifests to deploy the application and the collector.
25
30
26
- Ignore the ` lgtm.yaml ` file, which is only used for running locally and automated testing
27
- using [ OATs] ( https://github.com/grafana/oats ) .
31
+ Ignore the ` lgtm.yaml ` file, which is only used for running locally with
32
+ [ LGTM] ( https://github.com/grafana/docker-otel-lgtm/ )
33
+ and automated testing using [ OATs] ( https://github.com/grafana/oats ) .
28
34
29
35
## Running locally
30
36
Original file line number Diff line number Diff line change 32
32
override: false
33
33
34
34
k8sattributes:
35
- # Config details in
36
- # https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/k8sattributesprocessor
37
- ` `
35
+ # Config details in
36
+ # https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/k8sattributesprocessor
38
37
connectors:
39
38
otlpjson:
40
39
@@ -57,11 +56,11 @@ data:
57
56
pipelines:
58
57
traces:
59
58
receivers: [ otlp ]
60
- processors : [k8sattributes, resourcedetection, batch]
59
+ processors: [ k8sattributes, resourcedetection, batch ]
61
60
exporters: [ otlphttp/traces ]
62
61
metrics:
63
62
receivers: [ otlp, prometheus/collector ]
64
- processors : [k8sattributes, resourcedetection, batch]
63
+ processors: [ k8sattributes, resourcedetection, batch ]
65
64
exporters: [ otlphttp/metrics ]
66
65
logs/raw_otlpjson:
67
66
receivers: [ filelog/otlp-json-logs ]
71
70
exporters: [ otlpjson ]
72
71
logs/otlp:
73
72
receivers: [ otlp, otlpjson ]
74
- processors : [k8sattributes, resourcedetection, batch]
73
+ processors: [ k8sattributes, resourcedetection, batch ]
75
74
exporters: [ otlphttp/logs ]
76
75
# exporters: [ otlphttp/logs, debug/logs ] # Uncomment this line to enable debug logging
You can’t perform that action at this time.
0 commit comments