Skip to content

Commit

Permalink
Remove Grafana Alloy for Datadog tracing e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Hartigan <hartigans@live.com>
  • Loading branch information
Hartigan committed Oct 19, 2024
1 parent 3dda52d commit cec2dce
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 80 deletions.
6 changes: 3 additions & 3 deletions charts/gateway-addons-helm/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ dependencies:
version: 1.3.1
- name: opentelemetry-collector
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
version: 0.73.1
digest: sha256:4c16df8d7efc27aff566fa5dfd2eba6527adbf3fc8e94e7e3ccfc0cee7836f1c
generated: "2024-06-20T11:46:59.148579+08:00"
version: 0.108.0
digest: sha256:ea6663bb1358123b96b69d2c5b0b8c20650a43dc39b24c482f0560201fd2cc3a
generated: "2024-10-19T12:59:47.251089661+02:00"
2 changes: 1 addition & 1 deletion charts/gateway-addons-helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ dependencies:
condition: tempo.enabled
- name: opentelemetry-collector
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
version: 0.73.1
version: 0.108.0
condition: opentelemetry-collector.enabled
8 changes: 7 additions & 1 deletion charts/gateway-addons-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,13 @@ opentelemetry-collector:
enabled: false
fullnameOverride: otel-collector
mode: deployment
image:
repository: "otel/opentelemetry-collector-contrib"
config:
exporters:
prometheus:
endpoint: 0.0.0.0:19001
logging:
debug:
verbosity: detailed
loki:
endpoint: "http://loki.monitoring.svc:3100/loki/api/v1/push"
Expand All @@ -207,6 +209,8 @@ opentelemetry-collector:
# Loki will convert this to k8s_pod_name label.
value: k8s.pod.name, k8s.namespace.name
receivers:
datadog:
endpoint: ${env:MY_POD_IP}:8126
zipkin:
endpoint: ${env:MY_POD_IP}:9411
otlp:
Expand All @@ -223,6 +227,7 @@ opentelemetry-collector:
exporters:
- prometheus
receivers:
- datadog
- otlp
logs:
exporters:
Expand All @@ -235,5 +240,6 @@ opentelemetry-collector:
exporters:
- otlp
receivers:
- datadog
- otlp
- zipkin
80 changes: 5 additions & 75 deletions test/e2e/testdata/tracing-datadog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,85 +19,15 @@ spec:
name: datadog-tracing
---
apiVersion: v1
kind: ConfigMap
metadata:
name: alloy-config
namespace: monitoring
data:
config.alloy: |
logging {
level = "debug"
format = "logfmt"
}
otelcol.processor.batch "default" {
output {
metrics = [otelcol.exporter.otlp.default.input]
traces = [otelcol.exporter.otlp.default.input]
}
}
otelcol.processor.deltatocumulative "default" {
max_stale = "5m"
max_streams = 100
output {
metrics = [otelcol.processor.batch.default.input]
}
}
otelcol.exporter.otlp "default" {
client {
endpoint = "otel-collector:4317"
tls {
insecure = true
}
}
}
otelcol.receiver.datadog "default" {
endpoint = "0.0.0.0:8126"
output {
metrics = [otelcol.processor.deltatocumulative.default.input]
traces = [otelcol.processor.batch.default.input]
}
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: alloy-deployment
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
app: alloy
template:
metadata:
labels:
app: alloy
spec:
containers:
- name: alloy
image: grafana/alloy:v1.4.2
volumeMounts:
- name: config-volume
mountPath: /etc/alloy/config.alloy
subPath: config.alloy
command: ["alloy", "run", "--stability.level=experimental", "--server.http.listen-addr=0.0.0.0:12345", "--storage.path=/var/lib/alloy/data", "/etc/alloy/config.alloy"]
volumes:
- name: config-volume
configMap:
name: alloy-config
---
apiVersion: v1
kind: Service
metadata:
name: alloy-collector
name: datadog-agent
namespace: monitoring
spec:
selector:
app: alloy
app.kubernetes.io/instance: eg-addons
app.kubernetes.io/name: opentelemetry-collector
component: standalone-collector
ports:
- protocol: TCP
port: 8126
Expand All @@ -117,7 +47,7 @@ spec:
provider:
type: Datadog
backendRefs:
- name: alloy-collector
- name: datadog-agent
namespace: monitoring
port: 8126
customTags:
Expand Down

0 comments on commit cec2dce

Please sign in to comment.