Skip to content

feat(opentelemetry-collector): support sampleLimit in servicemonitor#2152

Open
oliviermichaelis wants to merge 3 commits intoopen-telemetry:mainfrom
oliviermichaelis:opentelemetry-collector-samplelimit
Open

feat(opentelemetry-collector): support sampleLimit in servicemonitor#2152
oliviermichaelis wants to merge 3 commits intoopen-telemetry:mainfrom
oliviermichaelis:opentelemetry-collector-samplelimit

Conversation

@oliviermichaelis
Copy link
Copy Markdown

This PR adds support for configuring the sampleLimit in the ServiceMonitor CustomResource (see the docs).
I hope I've bumped the chart version accordingly.

I've used the following command to test the feature locally: helm template test charts/opentelemetry-collector --set serviceMonitor.enabled=true --set image.repository=otel/opentelemetry-collector --set mode=deployment --show-only templates/servicemonitor.yaml --set serviceMonitor.sampleLimit=500000

Thank you! :)

apiVersion: v2
name: opentelemetry-collector
version: 0.150.0
version: 0.151.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please bump the patch version and rerun make generate CHARTS=opentelemetry-collector

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I thought this would be a minor version change (it's a backward-compatible feature, not a bug fix according to semver 2.0), therefore I chose 0.151.0 :)

  • adjusted the version in 080aad4
  • I didn't find a target for generate, I guess you meant to write make generate-examples CHARTS=opentelemetry-collector? I re-generated the examples in f2c2050

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions Bot added the Stale label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants