Skip to content

Collector's Internal Metrics Not Disabled When Specifying service:telemetry:metrics:level:none #10780

@RaginiDhatric

Description

@RaginiDhatric

Describe the bug

The setting of service: telemetry: metrics: level: none successfully disables basic and normal-level metrics in the OpenTelemetry Collector; however, detailed-level metrics continue to be exported to Stackdriver, Prometheus and managed Prometheus metrics exporters.

Steps to reproduce

  1. Set service:telemetry:metrics:level:none in the OpenTelemetry Collector configuration.
  2. Deploy the Collector with this configuration.
  3. Observe the metrics exported to Google Stackdriver, managed Prometheus and Prometheus noting that detailed-level internal metrics are still being collected and exported.

What did you expect to see?

All internal metrics, including detailed-level metrics, should not be collected or exported

What did you see instead?

Detailed-level metrics are still being collected and exported. Example below
image

What version did you use?

v0.99.0

What config did you use?

(edited by @mx-psi for clarity)

exporters:
googlecloud:
  metric:
    service_resource_labels: false
    instrumentation_library_labels: false
  prometheus:
    endpoint: 0.0.0.0:9090
    metric_expiration: 1m
    add_metric_suffixes: false
  googlemanagedprometheus:
    metric:
      add_metric_suffixes: false
      extra_metrics_config:
        enable_scope_info: false
        enable_target_info: false
    project: test
  logging: {}
processors:
  batch:
    send_batch_size: 200
    timeout: 0s
  memory_limiter:
    check_interval: 5s
    limit_percentage: 80
    spike_limit_percentage: 25
  resourcedetection:
    detectors:
    - gcp
    timeout: 10s
receivers:
  otlp:
    protocols:
      grpc:
        endpoint: ${env:MY_POD_IP}:4317
      http:
        endpoint: ${env:MY_POD_IP}:4318
  zipkin:
     endpoint: 0.0.0.0:9411
service:
  pipelines:
    logs:
      exporters:
      - logging
      processors:
      - memory_limiter
      - batch
      receivers:
      - otlp
    metrics:
      exporters:
      - googlecloud
      - googlemanagedprometheus
      - prometheus
      processors:
      - resourcedetection
      - memory_limiter
      - batch
      receivers:
      - otlp
    traces:
      exporters:
        - otlp
       processors:
        - memory_limiter
        - batch
       receivers:
        - zipkin
        - otlp
  telemetry:
    metrics:
      level: none
    logs:
      encoding: json

Environment

Additional context

Initially by setting metrics:level:none option disabled basic level and normal level metrics listed here but i still continue to see detailed level metrics.
Supported logs:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions