Skip to content

Service and ServiceMonitor target unused exporter port (8888) #1831

@KJone1

Description

@KJone1

The operator's ServiceMonitor configuration targets two ports (ch-metrics:8888 and op-metrics:9999), but the operator pod only exposes port 9999 if exporter is disabled

ServiceMonitor:

spec:
  endpoints:
    - interval: 30s
      port: ch-metrics
    - interval: 30s
      port: op-metrics

same for the Service:

ports:
    - name: ch-metrics
      port: 8888
      protocol: TCP
      targetPort: 8888
    - name: op-metrics
      port: 9999
      protocol: TCP
      targetPort: 9999

Expected Behavior:
The ServiceMonitor should only target the actively used operator metrics port (9999)

also there are those 2 log line on operator startup:
log 1: start serving metrics at: :9999/metrics
log 2: 2025-09-29T13:05:50Z INFO controller-runtime.metrics Metrics server is starting to listen {"addr": ":8080"}

is there a reason 8080 is not scraped?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions