Skip to content

Commit c364efb

Browse files
committed
add podLogs to otlp-gateway test
Signed-off-by: Robbie Lankford <[email protected]>
1 parent 85a9b71 commit c364efb

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

charts/k8s-monitoring/tests/platform/otlp-gateway/deployments/query-test.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ spec:
4444
expect:
4545
value: 1
4646
operator: ==
47+
48+
# pod logs are being delivered
49+
- query: count(count(count_over_time({service_name=~".+"} | cluster="$CLUSTER" [15m])) by (service_name))
50+
type: logql

charts/k8s-monitoring/tests/platform/otlp-gateway/values.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ destinations:
1717
metrics: {enabled: true}
1818
logs: {enabled: true}
1919
traces: {enabled: true}
20+
processors:
21+
transform:
22+
logs:
23+
log:
24+
- set(resource.attributes["service.name"], attributes["container"]) where resource.attributes["service.name"] == nil
2025

2126
integrations:
2227
alloy:
@@ -25,5 +30,11 @@ integrations:
2530
labelSelectors:
2631
app.kubernetes.io/name: ["alloy-metrics"]
2732

33+
podLogs:
34+
enabled: true
35+
2836
alloy-metrics:
2937
enabled: true
38+
39+
alloy-logs:
40+
enabled: true

0 commit comments

Comments
 (0)