Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall committed Dec 10, 2024
1 parent 302b407 commit 3c67889
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 34 deletions.
2 changes: 1 addition & 1 deletion charts/k8s-monitoring/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ dependencies:
repository: https://grafana.github.io/helm-charts
version: 0.10.1
digest: sha256:e2eab36a3b814d7ec09942c3fe46a5c76d606f7c3022628905c41fba7a47b405
generated: "2024-12-09T19:06:04.597148-06:00"
generated: "2024-12-09T20:10:53.818921-06:00"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ data:
action = "upsert"
value = "otlp-gateway-test"
}
action {
key = "random"
action = "upsert"
value = sys.env("RANDOM_NUMBER")
}
output {
metrics = [otelcol.processor.transform.otlp_gateway.input]
logs = [otelcol.processor.transform.otlp_gateway.input]
Expand Down Expand Up @@ -491,11 +486,6 @@ data:
action = "upsert"
value = "otlp-gateway-test"
}
action {
key = "random"
action = "upsert"
value = sys.env("RANDOM_NUMBER")
}
output {
metrics = [otelcol.processor.transform.otlp_gateway.input]
logs = [otelcol.processor.transform.otlp_gateway.input]
Expand Down Expand Up @@ -603,6 +593,9 @@ data:
role = "pod"
field = "spec.nodeName=" + env("HOSTNAME")
}
namespaces {
names = ["default"]
}
}
discovery.relabel "filtered_pods_with_paths" {
Expand All @@ -623,6 +616,7 @@ data:
loki.source.file "pod_logs" {
targets = local.file_match.pod_logs.targets
tail_from_end = true
forward_to = [loki.process.pod_logs.receiver]
}
Expand Down Expand Up @@ -1049,9 +1043,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
envFrom:
- configMapRef:
name: test-variables
ports:
- containerPort: 12345
name: http-metrics
Expand Down Expand Up @@ -1172,9 +1163,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
envFrom:
- configMapRef:
name: test-variables
ports:
- containerPort: 12345
name: http-metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ spec:
- configMapRef: {name: test-variables}
queries:
# Metrics are being delivered
- query: alloy_build_info{cluster="otlp-gateway-test", random="$RANDOM_NUMBER"}
- query: alloy_build_info{cluster="$CLUSTER"}
type: promql

# Logs are being delivered
- query: '{cluster="otlp-gateway-test", pod="k8s-monitoring-alloy-metrics-0", random="$RANDOM_NUMBER"}'
- query: count_over_time({cluster="$CLUSTER", pod=~".*alloy-metrics-0"}[1h])
type: logql

Check failure on line 43 in charts/k8s-monitoring/tests/platform/otlp-gateway/deployments/query-test.yaml

View workflow job for this annotation

GitHub Actions / runner / yamllint

[yamllint] reported by reviewdog 🐶 [error] no new line character at the end of file (new-line-at-end-of-file) Raw Output: ./charts/k8s-monitoring/tests/platform/otlp-gateway/deployments/query-test.yaml:43:24: [error] no new line character at the end of file (new-line-at-end-of-file)
18 changes: 3 additions & 15 deletions charts/k8s-monitoring/tests/platform/otlp-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ destinations:
metrics: {enabled: true}
logs: {enabled: true}
traces: {enabled: true}
processors:
attributes:
actions:
- key: random
action: upsert
valueFrom: sys.env("RANDOM_NUMBER")

podLogs:
enabled: true
namespace: default
namespaces: [default]
volumeGatherSettings:
onlyGatherNewLogLines: true

integrations:
alloy:
Expand All @@ -35,14 +31,6 @@ integrations:

alloy-metrics:
enabled: true
alloy:
envFrom:
- configMapRef:
name: test-variables

alloy-logs:
enabled: true
alloy:
envFrom:
- configMapRef:
name: test-variables

0 comments on commit 3c67889

Please sign in to comment.