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

add loki parser to parse servicePort from config #2437

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

fbuetler
Copy link
Contributor

@fbuetler fbuetler commented Dec 13, 2023

Description:

Add LokiReceiverParser to parse servicePort from config.
By default, only the Otel ports are extracted, parsed, then configured into the collector container's list of service ports.
This feature allows extracting loki ports (grpc:9095/http:3100, see default values) into the container's port list.

Link to tracking Issue:

Resolves #1825

@fbuetler fbuetler requested a review from a team December 13, 2023 12:38
Copy link

linux-foundation-easycla bot commented Dec 13, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: fbuetler / name: Florian Bütler (3d2d3c0)
  • ✅ login: jaronoff97 / name: Jacob Aronoff (b36dbd9)

},
},
},
} {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the formatting here is a bit odd... why have another {?

Copy link
Contributor Author

@fbuetler fbuetler Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where the actual for loop begins. Before that, it was only the array definition.
It is the same formatting as in the OTLP receiver

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah i see, yeah i usually have only seen this in the test blocks so my brain didn't parse that correctly. Thanks for explaining!

@pavolloffay pavolloffay merged commit f15118d into open-telemetry:main Dec 22, 2023
27 checks passed
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
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 this pull request may close these issues.

LokiReceiver ports are not automatically exposed
3 participants