Skip to content

Add enabled config for internal signals #14328

@outsinre

Description

@outsinre

Component(s)

  1. Internal Signals.
  2. Collector Version: Docker container 1.42.0.

Is your feature request related to a problem? Please describe.

I can use configure internal metrics as follows:

services:
  telemetry:
    metrics:
      level: detailed
      readers:
      - pull:
          exporter:
            prometheus:
              host: '0.0.0.0'
              port: 8888
      - periodic:
          exporter:
            otlp:
              protocol: http/protobuf
              temporality_preference: cumulative
              endpoint: http://127.0.0.1:4318
              headers:
                Authorization: "Basic foobar"

But sometimes I want to disable internal metrics temporarily. Is there an option like enabled: false to do that?

Without this option, I had to remove that config block or comment out the whole block - difficult to maintain the config.

Describe the solution you'd like

An configuration option like enabled: false to disable internal signals.

Describe alternatives you've considered

Remove that config block or comment out the whole block

Additional context

This requirement also applies to other components, like receivers, exporters, etc.

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions