Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the metrics port according to the OTEL Collector config #1931

Closed
iblancasa opened this issue Jul 17, 2023 · 0 comments · Fixed by #1950
Closed

Expose the metrics port according to the OTEL Collector config #1931

iblancasa opened this issue Jul 17, 2023 · 0 comments · Fixed by #1950

Comments

@iblancasa
Copy link
Contributor

If somebody creates an OpenTelemetry Collector instance with the following configuration:

apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
  name: deployment
spec:
  mode: deployment
  config: |
    ...
    service:
      telemetry:
        metrics:
          level: detailed
          address: 0.0.0.0:9090
      pipelines:

The metrics port endpoint will be 9090 instead of 8888 (the default one). The operator will expose the 8888 without taking into account the user configuration:

Ports: []corev1.ServicePort{{
Name: "monitoring",
Port: 8888,
}},

Note
This issue was created from this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant