Skip to content

feat(kube-stack): Add allowNamespaces and denyNamespaces support to targetAllocator.prometheusCR #1779

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lexicoder
Copy link

Fixes #1765

This PR adds support for allowNamespaces and denyNamespaces fields in the targetAllocator.prometheusCR configuration for the opentelemetry-kube-stack Helm chart. These fields allow users to control which namespaces should be included or excluded from being scraped by the collector via the Target Allocator.

Changes

  • Added allowNamespaces and denyNamespaces fields to the OpenTelemetryTargetAllocatorPrometheusCR schema in values.schema.json
  • Updated values.yaml to include examples of the new fields

Example Usage

collectors:
  scraper:
    targetAllocator:
      prometheusCR:
        allowNamespaces:
          - namespace-1
          - namespace-2
        denyNamespaces:
          - namespace-3
          - namespace-4

Testing Done

  • Verified schema validation works for the new fields
  • Verified the collector template properly passes through TargetAllocator configuration

…argetAllocator.prometheusCR

Fixes open-telemetry#1765

This commit adds support for allowNamespaces and denyNamespaces fields in the targetAllocator.prometheusCR configuration. These fields allow users to control which namespaces should be included or excluded from being scraped by the collector via the Target Allocator.
@lexicoder lexicoder requested review from jaronoff97 and a team as code owners August 1, 2025 01:10
Copy link

linux-foundation-easycla bot commented Aug 1, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

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.

Support allowNamespaces and denyNamespaces in targetAllocator.prometheusCR for opentelemetry-kube-stack
1 participant