Skip to content
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

Support changing pod collector annotations #451

Merged
merged 1 commit into from
Oct 6, 2021

Commits on Oct 5, 2021

  1. Support changing pod collector annotations

    This allows setting podAnnotations, e.g:
    ```
    ---
    apiVersion: opentelemetry.io/v1alpha1
    kind: OpenTelemetryCollector
    metadata:
      name: opentelemetry
      annotations:
        foo: "this won't be applied to pods"
    spec:
      mode: deployment
      podAnnotations:
        ad.datadoghq.com/otc-container.check_names: '["openmetrics"]'
        ad.datadoghq.com/otc-container.init_configs: '[{}]'
        ad.datadoghq.com/otc-container.instances: |-
          [
            {
              "prometheus_url": "http://%%host%%:8888/metrics",
              "namespace": "opentelemetry.collector",
              "metrics": [
                {"otelcol_exporter_queue_size": "exporter.queue_size"},
                {"otelcol_exporter_send_failed_spans": "exporter.send_failed_spans"},
                {"otelcol_exporter_sent_spans": "exporter.sent_spans"},
              ]
            }
          ]
      # ...
    ```
    
    Fixes open-telemetry#426
    indrekj committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    5148b55 View commit details
    Browse the repository at this point in the history