Skip to content

Prototype Option 2: Component-Specific Configuration for Metrics Ports#2277

Draft
rafaelwestphal wants to merge 1 commit intomasterfrom
westphalrafael/port-config-service
Draft

Prototype Option 2: Component-Specific Configuration for Metrics Ports#2277
rafaelwestphal wants to merge 1 commit intomasterfrom
westphalrafael/port-config-service

Conversation

@rafaelwestphal
Copy link
Copy Markdown
Contributor

This commit implements the prototype for component-specific port configuration in the Ops Agent. It allows users to set independent metrics ports for Fluent Bit and OpenTelemetry Collector in their respective service blocks in config.yaml.

  • Added MetricsPort field to LoggingService and MetricsService.
  • Updated confgenerator to use these ports.
  • Fixed mergeConfigs to copy MetricsPort.
  • Updated tests and golden files.

TAG=agy
CONV=062b1ae6-6d88-486e-a584-a82f970e5ae4

Description

Related issue

How has this been tested?

Checklist:

  • Unit tests
    • Unit tests do not apply.
    • Unit tests have been added/modified and passed for this PR.
  • Integration tests
    • Integration tests do not apply.
    • Integration tests have been added/modified and passed for this PR.
  • Documentation
    • This PR introduces no user visible changes.
    • This PR introduces user visible changes and the corresponding documentation change has been made.
  • Minor version bump
    • This PR introduces no new features.
    • This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
    • This PR bumps the version.

This commit implements the prototype for component-specific port configuration
in the Ops Agent. It allows users to set independent metrics ports for Fluent Bit
and OpenTelemetry Collector in their respective service blocks in config.yaml.

- Added MetricsPort field to LoggingService and MetricsService.
- Updated confgenerator to use these ports.
- Fixed mergeConfigs to copy MetricsPort.
- Updated tests and golden files.

TAG=agy
CONV=062b1ae6-6d88-486e-a584-a82f970e5ae4
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.

1 participant