Skip to content

feat(run-integration-test): Ship OTLP logs to Loki #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,25 @@ resources:
- ../../bases/opentelemetry-collectors

patches:
# Update all collectors to set the exporter endpoints and any other common overrides.
# Update collectors to set the exporter endpoints.
- path: patch-container-log-scrape.yaml
- path: patch-kubernetes-events.yaml

# Update all collectors to set common overrides.
- target:
group: opentelemetry.io
version: v1beta1
kind: OpenTelemetryCollector
patch: |-
- op: add
path: /spec/config/exporters/otlp~1grpc/endpoint
value: 212.227.162.207:30171
- op: add
path: /spec/config/exporters/otlp~1grpc/tls
value:
insecure: true
- op: add
path: /spec/envFrom/-
value:
configMapRef:
name: integration-test-info
- op: add
path: /spec/config/processors/attributes
path: /spec/config/processors/resource
value:
actions:
attributes:
- action: upsert
key: k8s.cluster.name
value: ${env:KUBERNETES_CLUSTER_NAME}
Expand All @@ -35,7 +32,7 @@ patches:
value: ${env:TRIGGERED_BY}
- op: add
path: /spec/config/service/pipelines/logs/processors/-
value: attributes
value: resource

# Specifically override config for the kubernetes-events collector.
- target:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: opentelemetry.io/v1beta1
kind: OpenTelemetryCollector
metadata:
name: container-log-scrape
namespace: opentelemetry-operator
spec:
config:
exporters:
otlp/grpc:
$patch: delete
otlphttp:
endpoint: https://loki.nick.stackable.build/otlp
service:
pipelines:
logs:
exporters:
- otlphttp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: opentelemetry.io/v1beta1
kind: OpenTelemetryCollector
metadata:
name: kubernetes-events
namespace: opentelemetry-operator
spec:
config:
exporters:
otlp/grpc:
$patch: delete
otlphttp:
endpoint: https://loki.nick.stackable.build/otlp
service:
pipelines:
logs:
exporters:
- otlphttp
Loading