Skip to content
Open
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ metadata:
namespace: default # use a namespace with pods you'd like to inject
spec:
exporter:
endpoint: http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics
endpoint: http://cloudwatch-agent.amazon-cloudwatch.svc.cluster.local:4316/v1/metrics
propagators:
- tracecontext
- baggage
Expand All @@ -147,7 +147,7 @@ spec:
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: "http/protobuf"
- name: OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT
value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"
value: "http://cloudwatch-agent.amazon-cloudwatch.svc.cluster.local:4316/v1/metrics"
EOF
```

Expand Down
4 changes: 2 additions & 2 deletions pkg/instrumentation/defaultinstrumentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ func getDefaultInstrumentation(agentConfig *adapters.CwaConfig, additionalEnvs m
return nil, errors.New("unable to determine nodejs instrumentation image")
}

cloudwatchAgentServiceEndpoint := "cloudwatch-agent.amazon-cloudwatch"
cloudwatchAgentServiceEndpoint := cloudwatchAgentStandardEndpoint
if isWindowsPod {
// Windows pods use the headless service endpoint due to limitations with the agent on host network mode
// https://kubernetes.io/docs/concepts/services-networking/windows-networking/#limitations
cloudwatchAgentServiceEndpoint = "cloudwatch-agent-windows-headless.amazon-cloudwatch.svc.cluster.local"
cloudwatchAgentServiceEndpoint = cloudwatchAgentWindowsEndpoint
}

// set protocol by checking cloudwatch agent config for tls setting
Expand Down
Loading
Loading