Skip to content

Commit

Permalink
update ports used by the cloudwatch agent otlp receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
movence committed Sep 25, 2023
1 parent 98589de commit 462f28a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions pkg/collector/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ import (
var CloudwatchAgentPorts = []corev1.ServicePort{
{
Name: "otlp-grpc",
Port: 4317,
Port: 4315,
},
{
Name: "otlp-http",
Port: 4318,
Port: 4316,
},
{
Name: "aws-proxy",
Port: 2000,
},
}
4 changes: 2 additions & 2 deletions pkg/instrumentation/podmutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

const (
defaultExporterEndpoint = "http://amazon-cloudwatch-agent.amazon-cloudwatch:4317"
defaultExporterEndpoint = "http://amazon-cloudwatch-agent.amazon-cloudwatch:4315"
defaultJavaImage = "160148376629.dkr.ecr.us-west-2.amazonaws.com/aws-apm-preview:latest"
defaultAPIVersion = "cloudwatch.aws.amazon.com/v1alpha1"
defaultInstrumenation = "java-instrumentation"
Expand All @@ -34,7 +34,7 @@ const (
otelTracesSamplerKey = "OTEL_TRACES_SAMPLER"
otelTracesSamplerDefaultValue = "parentbased_traceidratio"
otelExporterTracesEndpointKey = "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"
otelExporterTracesEndpointDefaultValue = "http://amazon-cloudwatch-agent.amazon-cloudwatch:4317"
otelExporterTracesEndpointDefaultValue = "http://amazon-cloudwatch-agent.amazon-cloudwatch:4315"
)

var (
Expand Down

0 comments on commit 462f28a

Please sign in to comment.