-
Notifications
You must be signed in to change notification settings - Fork 558
Closed
Labels
area:collectorIssues for deploying collectorIssues for deploying collectorbugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Component(s)
collector
What happened?
Description
The service.teleemtry.metrics
is not properly handled by the operator and the metrics port is not exposed on the operator pod and in the collector-monitoring
service.
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: 0.0.0.0
port: 3333
In this case the port 8888
is exposed which is incorrect and not active.
Steps to Reproduce
kubectl apply -f - <<EOF
apiVersion: opentelemetry.io/v1beta1
kind: OpenTelemetryCollector
metadata:
name: simplest
namespace: ploffay
spec:
observability:
metrics:
enableMetrics: true
deploymentUpdateStrategy: {}
config:
exporters:
prometheus:
endpoint: "0.0.0.0:9999"
debug: {}
processors:
batch:
send_batch_size: 10000
timeout: 10s
memory_limiter:
check_interval: 1s
limit_percentage: 75
spike_limit_percentage: 15
receivers:
jaeger:
protocols:
grpc: {}
otlp:
protocols:
grpc:
endpoint: '0.0.0.0:4317'
http:
endpoint: '0.0.0.0:4318'
service:
pipelines:
traces:
exporters:
- debug
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
exporters:
- prometheus
receivers:
- otlp
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: 0.0.0.0
port: 3333
EOF
The following ports are exposed on the collector
ports:
- name: metrics
containerPort: 8888
protocol: TCP
- name: otlp-grpc
containerPort: 4317
protocol: TCP
- name: otlp-http
containerPort: 4318
protocol: TCP
- name: prometheus
containerPort: 9999
protocol: TCP
and -monitoring
service
ports:
- name: monitoring
protocol: TCP
port: 8888
targetPort: 8888
Expected Result
exposed 3333
port on the collector pod and monitoring service.
Actual Result
Kubernetes Version
1.32
Operator version
main/HEAD
Collector version
main/head
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
Log output
Additional context
No response
kurarrr and kchygoe
Metadata
Metadata
Assignees
Labels
area:collectorIssues for deploying collectorIssues for deploying collectorbugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists