Skip to content

Commit

Permalink
Switch port for internal metrics from 8888 to 8889 (#172)
Browse files Browse the repository at this point in the history
GKE has their own otel-collector installed by default as agent with hostNetwork enabled and using the same default port "8888" for collector's metrics. We have to switch to another port to avoid conflicts in GKE.
  • Loading branch information
dmitryax authored Jul 8, 2021
1 parent 83c85e6 commit f868154
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 27 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Changed

- Change internal metrics port from 8888 to 8889 (#172)

## [0.28.2] - 2021-07-07

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ receivers:
scrape_interval: 10s
static_configs:
- targets:
- "${K8S_POD_IP}:8888"
- "${K8S_POD_IP}:8889"
# Fluend metrics collection disabled by default
# - "${K8S_POD_IP}:24231"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ receivers:
- job_name: 'otel-collector'
scrape_interval: 10s
static_configs:
- targets: ["${K8S_POD_IP}:8888"]
- targets: ["${K8S_POD_IP}:8889"]
signalfx:
endpoint: 0.0.0.0:9943
access_token_passthrough: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ receivers:
- job_name: 'otel-k8s-cluster-receiver'
scrape_interval: 10s
static_configs:
- targets: ["${K8S_POD_IP}:8888"]
- targets: ["${K8S_POD_IP}:8889"]
k8s_cluster:
auth_type: serviceAccount
metadata_exporters: [signalfx]
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/splunk-otel-collector/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ spec:
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
{{- range .Values.otelAgent.extraArgs }}
- {{ . }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
{{- range .Values.otelCollector.extraArgs }}
- {{ . }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
{{- range .Values.otelK8sClusterReceiver.extraArgs }}
- {{ . }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/agent-only/configmap-otel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ data:
scrape_interval: 10s
static_configs:
- targets:
- ${K8S_POD_IP}:8888
- ${K8S_POD_IP}:8889
receiver_creator:
receivers: null
watch_observers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ data:
scrape_interval: 10s
static_configs:
- targets:
- ${K8S_POD_IP}:8888
- ${K8S_POD_IP}:8889
service:
extensions:
- health_check
Expand Down
4 changes: 2 additions & 2 deletions rendered/manifests/agent-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: 163d24e194fdb37e664c8e6b5c52da012bc222a7b0f46a989e74aacf396fb997
checksum/config: 082df91116bf2b839a76c4f77051d9e642fa96c2407882936e5d6a567e16ca0c
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand Down Expand Up @@ -107,7 +107,7 @@ spec:
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
ports:
- name: fluentforward
containerPort: 8006
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ spec:
component: otel-k8s-cluster-receiver
release: default
annotations:
checksum/config: 9aa76e4a0195af8f49772eb3cf50bad809cb3b316a285e4bbcafbb52bd951194
checksum/config: 2b66c3f9e6bdc39bbca429096b3b6a56be8fa5c2d99bdc7d43df96213a871c78
spec:
serviceAccountName: default-splunk-otel-collector
containers:
- name: otel-collector
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
image: quay.io/signalfx/splunk-otel-collector:0.28.1
imagePullPolicy: IfNotPresent
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ data:
scrape_interval: 10s
static_configs:
- targets:
- ${K8S_POD_IP}:8888
- ${K8S_POD_IP}:8889
signalfx:
access_token_passthrough: true
endpoint: 0.0.0.0:9943
Expand Down
4 changes: 2 additions & 2 deletions rendered/manifests/gateway-only/deployment-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ spec:
component: otel-collector
release: default
annotations:
checksum/config: dda51a931806288b38073216eba2a1472c16f28279f4b8b7b8b9a98556ff3eea
checksum/config: 76ac441140e91c848290557e0b9db5b5cb3aa58e2c9062aadd4f407f49417b86
spec:
serviceAccountName: default-splunk-otel-collector
containers:
- name: otel-collector
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
image: quay.io/signalfx/splunk-otel-collector:0.28.1
imagePullPolicy: IfNotPresent
env:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/logs-only/configmap-otel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ data:
scrape_interval: 10s
static_configs:
- targets:
- ${K8S_POD_IP}:8888
- ${K8S_POD_IP}:8889
service:
extensions:
- health_check
Expand Down
4 changes: 2 additions & 2 deletions rendered/manifests/logs-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: fe5a6b9570d81623b8890a819bb4cea087632880a0b5518d41bb4f147ed7d31c
checksum/config: 4e7580a9960f1908803f0b876094c8260d3fb12bab41e1cec41b2f797eff11cc
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand Down Expand Up @@ -107,7 +107,7 @@ spec:
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
ports:
- name: fluentforward
containerPort: 8006
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/metrics-only/configmap-otel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ data:
scrape_interval: 10s
static_configs:
- targets:
- ${K8S_POD_IP}:8888
- ${K8S_POD_IP}:8889
receiver_creator:
receivers: null
watch_observers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ data:
scrape_interval: 10s
static_configs:
- targets:
- ${K8S_POD_IP}:8888
- ${K8S_POD_IP}:8889
service:
extensions:
- health_check
Expand Down
4 changes: 2 additions & 2 deletions rendered/manifests/metrics-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: 2bf47a8a1f16ac2d7c8629c62f2c01a5b3274b69102377b05bef52789a659fae
checksum/config: 48271af374ef42b3f204848a7560fe2e2dfeb3af6a0c4846daefe64c42587bd4
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand All @@ -36,7 +36,7 @@ spec:
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
ports:
- name: otlp
containerPort: 4317
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ spec:
component: otel-k8s-cluster-receiver
release: default
annotations:
checksum/config: 9aa76e4a0195af8f49772eb3cf50bad809cb3b316a285e4bbcafbb52bd951194
checksum/config: 2b66c3f9e6bdc39bbca429096b3b6a56be8fa5c2d99bdc7d43df96213a871c78
spec:
serviceAccountName: default-splunk-otel-collector
containers:
- name: otel-collector
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
image: quay.io/signalfx/splunk-otel-collector:0.28.1
imagePullPolicy: IfNotPresent
env:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/traces-only/configmap-otel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ data:
scrape_interval: 10s
static_configs:
- targets:
- ${K8S_POD_IP}:8888
- ${K8S_POD_IP}:8889
smartagent/signalfx-forwarder:
listenAddress: 0.0.0.0:9080
type: signalfx-forwarder
Expand Down
4 changes: 2 additions & 2 deletions rendered/manifests/traces-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: 5c9f829293fecaa315a656b6da361777818a29607e31fb6d02bc67db9a234b6e
checksum/config: a603fdc8a67dc462b424bcd6ff32f43d367ca79b88407e2edfde0479dce096e3
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand All @@ -36,7 +36,7 @@ spec:
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8888
- --metrics-addr=0.0.0.0:8889
ports:
- name: jaeger-grpc
containerPort: 14250
Expand Down

0 comments on commit f868154

Please sign in to comment.