Skip to content

Conversation

@dhruv-shah-sumo
Copy link
Collaborator

@dhruv-shah-sumo dhruv-shah-sumo commented Oct 31, 2025

0.136.* version of otel collector does not support routing processor, the routing processor is being moved to routing connector. This PR changes the routing config for metrics.

OSC-1217

Checklist

  • Changelog updated or skip changelog label added
  • Template tests added for new features
  • Integration tests added or modified for major features

@dhruv-shah-sumo dhruv-shah-sumo requested a review from a team as a code owner October 31, 2025 04:59
@dhruv-shah-sumo dhruv-shah-sumo changed the title chore(deps): Migrate routing processor to routing connector for metri… chore(deps): Migrate routing processor to connector for metrcs collection Oct 31, 2025
@dhruv-shah-sumo dhruv-shah-sumo force-pushed the dhruv/metric-routingc-connector branch from 23298c4 to c88ce92 Compare October 31, 2025 05:26
@dhruv-shah-sumo dhruv-shah-sumo changed the title chore(deps): Migrate routing processor to connector for metrcs collection chore(deps): Migrate routing processor to connector for metrics collection Oct 31, 2025
@dhruv-shah-sumo dhruv-shah-sumo force-pushed the dhruv/metric-routingc-connector branch 4 times, most recently from dca7728 to cbaa141 Compare October 31, 2025 07:15
Copy link
Contributor

@rnishtala-sumo rnishtala-sumo left a comment

Choose a reason for hiding this comment

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

@dhruv-shah-sumo its a good idea for this to be its own PR - lets add a changelog for this. I think this migration should be called out as a feature instead of chore, because it makes non-trivial changes to the otel configuration. This is also currently a breaking change, but it doesn't need to be.

- metrics/sumologic/default
table:
- pipelines:
- metrics/apiserver
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add an additional exporter in the input table and verify that it shows up in the table here?

Copy link
Contributor

Choose a reason for hiding this comment

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

could also put the output in the description ^^ or a jira, so in the future, someone has more visual context

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Could we add an additional exporter in the input table and verify that it shows up in the table here?

metrics routing does not expose options to add custom exporters but logs do. To increase the testing, I have enabled debug exporter so that you can see the metrics/debug pipeline being created & added to the expected output routing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

could also put the output in the description ^^ or a jira, so in the future, someone has more visual context

@chan-tim-sumo Do you mean the after/before config changes for this migration?

Copy link
Contributor

Choose a reason for hiding this comment

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

after config changes (i assume before and after SHOULD be the same anyways)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@chan-tim-sumo No, they will be different. I'll put both.

## ## see routing processor documentation for more details:
## ## https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/aee4b75100530bce7edbf736fbcf76ac4f6ced6d/processor/routingprocessor/README.md#tech-preview-opentelemetry-transformation-language-statements-as-routing-conditions
## ## exporters is an array of the exporter
## exporters:
Copy link
Contributor

@rnishtala-sumo rnishtala-sumo Oct 31, 2025

Choose a reason for hiding this comment

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

},
otelConfig.Service.Pipelines.Metrics.Exporters,
)
assert.Contains(t, otelConfig.Connectors, "routing/default")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be an assertion here to ensure all the expected pipelines are present?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@rnishtala-sumo rnishtala-sumo changed the title chore(deps): Migrate routing processor to connector for metrics collection feat(routing): Migrate routing processor to connector for metrics collection Oct 31, 2025
@dhruv-shah-sumo dhruv-shah-sumo force-pushed the dhruv/metric-routingc-connector branch 3 times, most recently from 35485f2 to a329478 Compare November 3, 2025 12:05
@dhruv-shah-sumo dhruv-shah-sumo force-pushed the dhruv/metric-routingc-connector branch 4 times, most recently from bad9697 to 90e9288 Compare November 21, 2025 08:37
…cs collection

Usage of routing connector is feature flagged and will be kept off/false by default.
After sufficient notices and release notes, the feature flag to use routing connector in
metrics collection will be turned on.

Routing processor is currently removed from the otelcol-contrib version upstream, but
to handle the migration better, sumo is still keeping routing processor in its version
of otel col.

Signed-off-by: Dhruv Shah <[email protected]>
@dhruv-shah-sumo dhruv-shah-sumo force-pushed the dhruv/metric-routingc-connector branch from 90e9288 to 83f3b0a Compare November 21, 2025 08:57
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.

4 participants